Solved

Pass variable x_line_item through authorize.net

Posted on 2014-03-04
6
563 Views
Last Modified: 2014-03-05
I'm using the SIM method for an authorize.net payment page.  x_line_item is working fine to pass information into the Authorize.net payment page.  But after the transaction is completed, I need to store the x_line_item information into my database.  

Does anyone know how to get the x_line_item information out after the transaction is completed?

Thanks,

Steve
0
Comment
Question by:stkoontz
  • 3
  • 2
6 Comments
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 39903359
Why not put the x_line_item into the data base before the transaction is sent to Authorize.net?  Then you have a record of both successful and failed transactions.
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39903419
The only option is what Ray suggests.  You can get data back using the Relay Response but the  x_line_item is not one of those things.
0
 
LVL 2

Author Comment

by:stkoontz
ID: 39903423
Thanks, Ray, for the suggestion.  I could do that.  I'd just need to write the code to check if the transaction exists and run an update instead of an insert if the user changes their order.

I was hoping there would be an easier way and inserting x_line_item into the database once after the transaction was completed seemed to be that way.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 108

Expert Comment

by:Ray Paseur
ID: 39903462
If you're using MySQL you might find REPLACE INTO to be useful.  Not sure - it would depend on your design, but it's kind of a helpful concept.
0
 
LVL 2

Author Closing Comment

by:stkoontz
ID: 39907560
Ray: thanks for the helpful response and teaching me a new command.  REPLACE INTO is working great.

Steve
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 39907618
Steve: Thanks for the points and thanks for using EE,  Best, ~Ray
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
The viewer will learn how to count occurrences of each item in an array.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now