cancel
Showing results for 
Search instead for 
Did you mean: 

Who Me Too'd this topic

getTransactionListRequest returning duplicate results (development environment)

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?

justinbmiller
Member
Who Me Too'd this topic