Comments (11)
Kyle,
$response->getTransactionReference();
should do it for you. Let me know if you have any further questions.
from omnipay-authorizenet.
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.
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.
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.
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.
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.
woops sorry its not the getAuthorizationCode() but getTransactionReference()
see this pr
pollen8#1
from omnipay-authorizenet.
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.
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.
Can this be closed? It looks like it is working as it should.
from omnipay-authorizenet.
Yes it can be - thank you.
from omnipay-authorizenet.
Related Issues (20)
- Add support for retail data to AIMAuthorizeRequest HOT 3
- Add support for track data to AIMAuthorizeRequest HOT 1
- Array to string conversion in CIMAbstractResponse HOT 7
- Add Line Items HOT 2
- Omnipay 3.0 support? HOT 3
- Laravel 5.6 failed HOT 5
- AIMRequest simplexml_load_string chokes HOT 6
- Error on refund
- Error on refund HOT 6
- Add customer info to transaction. HOT 6
- SIM complete purchase response HOT 2
- InvalidArgumentException: Invalid header syntax HOT 1
- Support HMAC SHA-512 hash rather than md5 (urgent) HOT 19
- Invalid paths for AIM query messages HOT 10
- Deprecated API HOT 4
- Need of Full example with all options (optional options also) HOT 1
- Unable to make few partial refunds for transaction
- Show example of passing CreditCard with auth.net HOT 2
- Sale Tax HOT 1
- Declined transactions being passed as successful
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from omnipay-authorizenet.