Giter Club home page Giter Club logo

Comments (11)

greydnls avatar greydnls commented on June 24, 2024

Kyle,

$response->getTransactionReference(); should do it for you. Let me know if you have any further questions.

from omnipay-authorizenet.

 avatar commented on June 24, 2024

Thank you Kayla! :)

On Fri, Mar 6, 2015 at 1:16 PM, Kayla Daniels [email protected]
wrote:

Kyle,

$response->getTransactionReference(); should do it for you. Let me know
if you have any further questions.


Reply to this email directly or view it on GitHub
#17 (comment)
.

from omnipay-authorizenet.

 avatar commented on June 24, 2024

Sorry, but this did not work for the Authorize.net AIM api

On Fri, Mar 6, 2015 at 2:01 PM, Kyle Dye [email protected] wrote:

Thank you Kayla! :)

On Fri, Mar 6, 2015 at 1:16 PM, Kayla Daniels [email protected]
wrote:

Kyle,

$response->getTransactionReference(); should do it for you. Let me know
if you have any further questions.


Reply to this email directly or view it on GitHub
#17 (comment)
.

from omnipay-authorizenet.

greydnls avatar greydnls commented on June 24, 2024

The function should exist on your response object, as seen here.
https://github.com/thephpleague/omnipay-authorizenet/blob/master/src/Message/AIMResponse.php#L54-L57

Is it giving you a specific error, or just not working?

from omnipay-authorizenet.

pollen8 avatar pollen8 commented on June 24, 2024

I'm having the same issue for me it returns "0"
I'm currently just testing so have the following:

$gateway->setTestMode(true);
$gateway->setDeveloperMode(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):

public function getAuthorizationCode()
{
    return $this->data[4];
}

so I changed that to

public function getAuthorizationCode()
{
    return $this->data[37];
}

and for the test environment that works. I don't yet have a live account set up to test this on live though

from omnipay-authorizenet.

pollen8 avatar pollen8 commented on June 24, 2024

ok a quick look at the docs states that it is index 37.
http://www.authorize.net/support/AIM_guide.pdf
see the section "Table 17 Payment Gateway Response Fields "

from omnipay-authorizenet.

pollen8 avatar pollen8 commented on June 24, 2024

woops sorry its not the getAuthorizationCode() but getTransactionReference()

see this pr
pollen8#1

from omnipay-authorizenet.

 avatar commented on June 24, 2024

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...

When testRequest is set to a positive response, or when Test Mode is enabled on the payment gateway, this value will be 0.

from omnipay-authorizenet.

judgej avatar judgej commented on June 24, 2024

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.

from omnipay-authorizenet.

judgej avatar judgej commented on June 24, 2024

Can this be closed? It looks like it is working as it should.

from omnipay-authorizenet.

 avatar commented on June 24, 2024

Yes it can be - thank you.

from omnipay-authorizenet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.