After a user fills out my credit card payment form, they are redirected to https://secure2.authorize.net/gateway/transact.dll to pay. If it goes through, I want to get the transaction id and the success notice that they paid.
Something like this for the status (gives an error, not sure how to get this)
string status = AuthorizeNet.TransactionStatus.ToString();
And something like this for TransactionID (TransactionId does not exist in API... this is just dummy code to show what I want)
int transId = AuthorizeNet.TransactionId;
And then how do I tie this altogether to make sure I get these submitted values AFTER the form is submitted? I'm using asp.net and c#.
01-07-2016 11:35 AM - edited 01-07-2016 11:38 AM
Are you using their github API?
you can look at their test code here
https://github.com/AuthorizeNet/sdk-dotnet/tree/master/AuthorizeNETtest/Api/Controllers/SampleTest
Or if you are using SIM or AIM, read the doc
http://developer.authorize.net/api/upgrade_guide/
01-07-2016 11:41 AM
Thanks, I am using SIM. Isn't there a quick way to do it instead of having to write an entire class to get the transaction info? I want to get the info right after the form is submitted rather than generating a report on a seperate page.
01-07-2016 12:04 PM
SIM use relay response, read the SIM doc. It bascially a form post back to your relay response url
01-07-2016 12:20 PM
I checked out the sample code. Looks like an ID is needed, which I cannot give. I need to dynamically get the ID as my form submits.
// unique batch id string batchId = "4551107";
^ How can I get a batchId when Authorize.Net is autogenerating one when the user hits submit?
01-11-2016 01:13 PM
01-11-2016 01:40 PM - edited 01-11-2016 01:42 PM
That Info is in the relay response
http://developer.authorize.net/api/upgrade_guide/
http://www.authorize.net/content/dam/authorize/documents/SIM_guide.pdf
page 68 x_trans_id
read this too about relay response
01-11-2016 04:22 PM