I'm using the SimpleXML PHP solution from Auth.net's GitHub page. When I use either the out-of-the-box code or my own PHP script, I still seem to have the same issue.
If I look at the Simple XML object for transactions in a batch, I'm given duplicates of everything. Here is an example of the data inside a "transactions" container:
[transactions] => SimpleXMLElement Object ( [transaction] => Array ( [0] => SimpleXMLElement Object ( [transId] => 2219427240 [submitTimeUTC] => 2014-09-11T03:07:24Z [submitTimeLocal] => 2014-09-10T21:07:24 [transactionStatus] => settledSuccessfully [firstName] => Joe [lastName] => Doe [accountType] => Discover [accountNumber] => XXXX0012 [settleAmount] => 1.00 [marketType] => eCommerce [product] => Card Not Present [subscription] => SimpleXMLElement Object ( [id] => 2063902 [payNum] => 11 ) ) [1] => SimpleXMLElement Object ( [transId] => 2219427240 [submitTimeUTC] => 2014-09-11T03:07:24Z [submitTimeLocal] => 2014-09-10T21:07:24 [transactionStatus] => settledSuccessfully [firstName] => Joe [lastName] => Doe [accountType] => Discover [accountNumber] => XXXX0012 [settleAmount] => 1.00 [marketType] => eCommerce [product] => Card Not Present [subscription] => SimpleXMLElement Object ( [id] => 2063902 [payNum] => 11 ) ) [2] => SimpleXMLElement Object ( [transId] => 2219422237 [submitTimeUTC] => 2014-09-11T02:58:59Z [submitTimeLocal] => 2014-09-10T20:58:59 [transactionStatus] => settledSuccessfully [firstName] => John [lastName] => Conde [accountType] => Discover [accountNumber] => XXXX0012 [settleAmount] => 1.00 [marketType] => eCommerce [product] => Card Not Present [subscription] => SimpleXMLElement Object ( [id] => 1730942 [payNum] => 10 ) ) [3] => SimpleXMLElement Object ( [transId] => 2219422237 [submitTimeUTC] => 2014-09-11T02:58:59Z [submitTimeLocal] => 2014-09-10T20:58:59 [transactionStatus] => settledSuccessfully [firstName] => John [lastName] => Conde [accountType] => Discover [accountNumber] => XXXX0012 [settleAmount] => 1.00 [marketType] => eCommerce [product] => Card Not Present [subscription] => SimpleXMLElement Object ( [id] => 1730942 [payNum] => 10 ) ) [4] => SimpleXMLElement Object ( [transId] => 2219421398 [submitTimeUTC] => 2014-09-11T02:56:18Z [submitTimeLocal] => 2014-09-10T20:56:18 [transactionStatus] => settledSuccessfully [firstName] => Subhadeep [lastName] => Chowdhury [accountType] => Visa [accountNumber] => XXXX0027 [settleAmount] => 39.99 [marketType] => eCommerce [product] => Card Not Present [subscription] => SimpleXMLElement Object ( [id] => 1672276 [payNum] => 18 ) ) [5] => SimpleXMLElement Object ( [transId] => 2219421398 [submitTimeUTC] => 2014-09-11T02:56:18Z [submitTimeLocal] => 2014-09-10T20:56:18 [transactionStatus] => settledSuccessfully [firstName] => Subhadeep [lastName] => Chowdhury [accountType] => Visa [accountNumber] => XXXX0027 [settleAmount] => 39.99 [marketType] => eCommerce [product] => Card Not Present [subscription] => SimpleXMLElement Object ( [id] => 1672276 [payNum] => 18 ) ) ) )
Instead of returning 3 records, it's returning 6. This is true for every single batch returned. Is this an issue of the development environment or am I calling the data incorrectly?
01-07-2016 02:32 PM
Hi justinbmiller,
Both production and sandbox environments will only return one record of transaction ID in the response. We tested this ourselves to confirm and our own tests directly to the API are not seeing this behavior. It is possible that something is causing the duplicate transaction IDs in your response within your code. I would recommend double checking this on your end.
Thanks,
Joy
01-08-2016 02:02 PM
I can confirm that this is happening in the sandbox environment. When I make the following request I receive duplicates of all transactions:
URL: https://apitest.authorize.net/xml/v1/request.api
XML:
<?xml version="1.0" encoding="utf-8"?> <getTransactionListRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> <merchantAuthentication> <name>{omitted for security}</name> <transactionKey>{omitted for security}</transactionKey> </merchantAuthentication> <batchId>4449661</batchId> </getTransactionListRequest>
I receive the following results:
<transactions> <transaction> <transId>2236136983</transId> <submitTimeUTC>2015-07-02T22:02:49Z</submitTimeUTC> <submitTimeLocal>2015-07-02T15:02:49</submitTimeLocal> <transactionStatus>settledSuccessfully</transactionStatus> <firstName>{omitted for security}</firstName> <lastName>{omitted for security}</lastName> <accountType>Visa</accountType> <accountNumber>XXXX0027</accountNumber> <settleAmount>11.99</settleAmount> <marketType>eCommerce</marketType> <product>Card Not Present</product> </transaction> <transaction> <transId>2236136983</transId> <submitTimeUTC>2015-07-02T22:02:49Z</submitTimeUTC> <submitTimeLocal>2015-07-02T15:02:49</submitTimeLocal> <transactionStatus>settledSuccessfully</transactionStatus> <firstName>{omitted for security}</firstName> <lastName>{omitted for security}</lastName> <accountType>Visa</accountType> <accountNumber>XXXX0027</accountNumber> <settleAmount>11.99</settleAmount> <marketType>eCommerce</marketType> <product>Card Not Present</product> </transaction> <transaction> <transId>2236136713</transId> <submitTimeUTC>2015-07-02T21:55:36Z</submitTimeUTC> <submitTimeLocal>2015-07-02T14:55:36</submitTimeLocal> <transactionStatus>settledSuccessfully</transactionStatus> <firstName>{omitted for security}</firstName> <lastName>{omitted for security}</lastName> <accountType>Visa</accountType> <accountNumber>XXXX0027</accountNumber> <settleAmount>10.00</settleAmount> <marketType>eCommerce</marketType> <product>Card Not Present</product> </transaction> <transaction> <transId>2236136713</transId> <submitTimeUTC>2015-07-02T21:55:36Z</submitTimeUTC> <submitTimeLocal>2015-07-02T14:55:36</submitTimeLocal> <transactionStatus>settledSuccessfully</transactionStatus> <firstName>{omitted for security}</firstName> <lastName>{omitted for security}</lastName> <accountType>Visa</accountType> <accountNumber>XXXX0027</accountNumber> <settleAmount>10.00</settleAmount> <marketType>eCommerce</marketType> <product>Card Not Present</product> </transaction> <transaction> <transId>2236136530</transId> <submitTimeUTC>2015-07-02T21:48:57Z</submitTimeUTC> <submitTimeLocal>2015-07-02T14:48:57</submitTimeLocal> <transactionStatus>settledSuccessfully</transactionStatus> <accountType>Visa</accountType> <accountNumber>XXXX0027</accountNumber> <settleAmount>5.00</settleAmount> <marketType>eCommerce</marketType> <product>Card Not Present</product> </transaction> <transaction> <transId>2236136530</transId> <submitTimeUTC>2015-07-02T21:48:57Z</submitTimeUTC> <submitTimeLocal>2015-07-02T14:48:57</submitTimeLocal> <transactionStatus>settledSuccessfully</transactionStatus> <accountType>Visa</accountType> <accountNumber>XXXX0027</accountNumber> <settleAmount>5.00</settleAmount> <marketType>eCommerce</marketType> <product>Card Not Present</product> </transaction> <transaction> <transId>2236136133</transId> <submitTimeUTC>2015-07-02T21:39:11Z</submitTimeUTC> <submitTimeLocal>2015-07-02T14:39:11</submitTimeLocal> <transactionStatus>settledSuccessfully</transactionStatus> <firstName>{omitted for security}</firstName> <lastName>{omitted for security}</lastName> <accountType>Visa</accountType> <accountNumber>XXXX0027</accountNumber> <settleAmount>10.00</settleAmount> <marketType>eCommerce</marketType> <product>Card Not Present</product> </transaction> <transaction> <transId>2236136133</transId> <submitTimeUTC>2015-07-02T21:39:11Z</submitTimeUTC> <submitTimeLocal>2015-07-02T14:39:11</submitTimeLocal> <transactionStatus>settledSuccessfully</transactionStatus> <firstName>{omitted for security}</firstName> <lastName>{omitted for security}</lastName> <accountType>Visa</accountType> <accountNumber>XXXX0027</accountNumber> <settleAmount>10.00</settleAmount> <marketType>eCommerce</marketType> <product>Card Not Present</product> </transaction> <transaction> <transId>2236136020</transId> <submitTimeUTC>2015-07-02T21:34:19Z</submitTimeUTC> <submitTimeLocal>2015-07-02T14:34:19</submitTimeLocal> <transactionStatus>settledSuccessfully</transactionStatus> <firstName>{omitted for security}</firstName> <lastName>{omitted for security}</lastName> <accountType>Visa</accountType> <accountNumber>XXXX0027</accountNumber> <settleAmount>10.00</settleAmount> <marketType>eCommerce</marketType> <product>Card Not Present</product> </transaction> <transaction> <transId>2236136020</transId> <submitTimeUTC>2015-07-02T21:34:19Z</submitTimeUTC> <submitTimeLocal>2015-07-02T14:34:19</submitTimeLocal> <transactionStatus>settledSuccessfully</transactionStatus> <firstName>{omitted for security}</firstName> <lastName>{omitted for security}</lastName> <accountType>Visa</accountType> <accountNumber>XXXX0027</accountNumber> <settleAmount>10.00</settleAmount> <marketType>eCommerce</marketType> <product>Card Not Present</product> </transaction> <transaction> <transId>2236135229</transId> <submitTimeUTC>2015-07-02T21:13:09Z</submitTimeUTC> <submitTimeLocal>2015-07-02T14:13:09</submitTimeLocal> <transactionStatus>settledSuccessfully</transactionStatus> <firstName>{omitted for security}</firstName> <lastName>{omitted for security}</lastName> <accountType>Visa</accountType> <accountNumber>XXXX0027</accountNumber> <settleAmount>10.00</settleAmount> <marketType>eCommerce</marketType> <product>Card Not Present</product> </transaction> <transaction> <transId>2236135229</transId> <submitTimeUTC>2015-07-02T21:13:09Z</submitTimeUTC> <submitTimeLocal>2015-07-02T14:13:09</submitTimeLocal> <transactionStatus>settledSuccessfully</transactionStatus> <firstName>{omitted for security}</firstName> <lastName>{omitted for security}</lastName> <accountType>Visa</accountType> <accountNumber>XXXX0027</accountNumber> <settleAmount>10.00</settleAmount> <marketType>eCommerce</marketType> <product>Card Not Present</product> </transaction> </transactions>
06-28-2016 04:55 AM