-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transaction ID #17
Comments
Kyle,
|
Thank you Kayla! :) On Fri, Mar 6, 2015 at 1:16 PM, Kayla Daniels notifications@github.com
|
Sorry, but this did not work for the Authorize.net AIM api On Fri, Mar 6, 2015 at 2:01 PM, Kyle Dye kyle.dye@gmail.com wrote:
|
The function should exist on your response object, as seen here. Is it giving you a specific error, or just not working? |
I'm having the same issue for me it returns "0" $gateway->setTestMode(true); The response variable seems to be an array and the transaction reference index at 37, not 4 as used in AIMResponse.php (line 46):
so I changed that to
and for the test environment that works. I don't yet have a live account set up to test this on live though |
ok a quick look at the docs states that it is index 37. |
woops sorry its not the getAuthorizationCode() but getTransactionReference() see this pr |
The current code works for me. To get a non-zero transaction ID turn test mode off. Provided developer mode is still on, you can use the test credit card numbers listed here for successful transactions. Click the response tab of the docs for charging a card and scroll down to the transId row...
|
Can confirm, in test mode the transactionReference (sent as x_trans_id) will always be zero (for AIM and SIM at least). Similarly, the x_auth_code will be "000000". Some gateways will send you a validly formatted transaction reference even in test mode, but not this one. |
Can this be closed? It looks like it is working as it should. |
Yes it can be - thank you. |
Hello,
I am trying to integrate Omnipay into CodeIgniter - I'm a seasoned PHP developer, but I am having some difficulty getting a transaction id from a Purchase or Authorization using the Authorize.net module. If I run the ->getData() method on the response, I get a large array of values, which can be a little overwhelming. Could you tell me which index is the TransactionID or if there is a method defined to get the transaction id from the response?
Thanks,
Kyle
The text was updated successfully, but these errors were encountered: