We just finished developing our application using the developers gateway. The response was always returned in XML. So we coded to handle XML.
Now we have switched to the live/production gateway, and suddenly its throwing errors. Apparently you have to have either x_relay_response or x_delim_data has to be true, while the other has to be false. So regardless I can't get XML back?
Can someone help me understand this? Why would the developer gateway allow it and production not?
I understand that this gateway is used for multiple api types.. But surely there is a way to get XML back? We've spent weeks on this. Makes no sense to now have to go in and write a function to parse a delimited string.
Thanks,
Solved! Go to Solution.
04-30-2013 02:53 PM
We were using https://test.authorize.net/gateway/transact.dll
We may have had something present that makes it return xml. I'm not sure. The code has changed since that point, while trying to debug it and get it to put out xml on the production.
Regardless. XML should be an option.
05-01-2013 07:37 AM - edited 05-01-2013 07:38 AM
04-30-2013 03:52 PM
No we are submitting POST vars. As the AIM documentation details doing. Using the gateway the AIM documentation recommends. https://secure.authorize.net/gateway/transact.dll
Unless its possible to submit POST vars in non XML to the XML api.
04-30-2013 07:28 PM
Shouldn't be able to post vars and get result in XML. Probably a bug in the test server setup on authorize.net
What AIM fields are you sending to the test server?
05-01-2013 04:15 AM
Simply leaving off both x_relay_response and x_delim_data on the test server returns XML. The production one fails with out one of the two.
For sure need to either make this consistant and use xml or the test gateway needs to respond like the production gateway.
Opted to just parse the delimited string. Which just seems dirty. XML is so much cleaner to parse.
05-01-2013 06:59 AM - edited 05-01-2013 06:59 AM
If I do that on the test server I get (92) The gateway no longer supports the requested method of integration.
05-01-2013 07:10 AM
We were using https://test.authorize.net/gateway/transact.dll
We may have had something present that makes it return xml. I'm not sure. The code has changed since that point, while trying to debug it and get it to put out xml on the production.
Regardless. XML should be an option.
05-01-2013 07:37 AM - edited 05-01-2013 07:38 AM