-
Notifications
You must be signed in to change notification settings - Fork 11
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 not populating #12
Comments
It should be working. The Do you have any further details that would help me reproduce this issue? I assume you are using the AJAX front end to get the opaque data? |
@jeffster9 did you get an email linked to this issue from Vlad Lesovskiy at github with the text:
I got one and have no idea why. |
Yes, I am using AcceptUI.js within a Vue app. All the data is being sent as expected from the Vue app to the Symfony API. However... |
In the Omnipay world:
So both point to the same transaction, but are IDs owned by different systems. Now, every gateway gives these things different names, but the idea of Omnipay is to normalise them for your merchant application. That's a bit of background, and does not discount any bugs you may have possibly found. We just need something that is reproducable. |
So, I looked The request: 'request' =>
Omnipay\AuthorizeNetApi\Message\PurchaseRequest::__set_state(array(
'endpointSandbox' => 'https://apitest.authorize.net/xml/v1/request.api',
'endpointLive' => 'https://api.authorize.net/xml/v1/request.api',
'parameters' =>
Symfony\Component\HttpFoundation\ParameterBag::__set_state(array(
'parameters' =>
array (
'authName' => '.....',
'transactionKey' => '.....',
'mobileDeviceId' => NULL,
'refId' => NULL,
'testMode' => true,
'signatureKey' => NULL,
'disableWebhookSignature' => false,
'amount' => '140',
'currency' => 'USD',
'customerId' => '12345',
'customerType' => 'individual',
'transactionId' => 962058365,
'description' => 'payment for inv #40',
'opaqueDataDescriptor' => 'COMMON.ACCEPT.INAPP.PAYMENT',
'opaqueDataValue' => 'eyJjb2RlIjoiN...',
)
)),
...
)) The Response: 'transactionResponse' => Academe\AuthorizeNet\Response\Model\TransactionResponse::__set_state(array(
'responseCode' => '1',
'rawResponseCode' => NULL,
'authCode' => 'K6GP9X',
'avsResultCode' => 'Y',
'cvvResultCode' => 'P',
'cavvResultCode' => '2',
'transId' => '60120875895',
'refTransID' => NULL,
'transHash' => '',
'testRequest' => '0',
'accountNumber' => 'XXXX0027',
'entryMode' => NULL,
'accountType' => 'Visa',
'splitTenderId' => NULL,
'prePaidCard' => NULL,
'transactionMessages' =>
Academe\AuthorizeNet\Response\Collections\TransactionMessages::__set_state(array(
'items' =>
array (
0 =>
Academe\AuthorizeNet\Response\Model\TransactionMessage::__set_state(array(
'code' => '1',
'text' => 'This transaction has been approved.',
'objectName' => NULL,
'objectNameSuffix' => '',
'data' =>
array (
'code' => '1',
'description' => 'This transaction has been approved.',
),
)),
),
'objectName' => NULL,
'objectNameSuffix' => '',
'data' =>
array (
0 =>
array (
'code' => '1',
'description' => 'This transaction has been approved.',
),
),
)),
'errors' => NULL,
'splitTenderPayments' => NULL,
'userFields' => NULL,
'shipTo' => NULL,
'secureAcceptance' => NULL,
'emvResponse' => NULL,
'transHashSha2' => NULL,
'profile' => NULL,
'objectName' => NULL,
'objectNameSuffix' => '',
'data' =>
array (
'responseCode' => '1',
'authCode' => 'K6GP9X',
'avsResultCode' => 'Y',
'cvvResultCode' => 'P',
'cavvResultCode' => '2',
'transId' => '60120875895',
'refTransID' => '',
'transHash' => '',
'testRequest' => '0',
'accountNumber' => 'XXXX0027',
'accountType' => 'Visa',
'messages' =>
array (
0 =>
array (
'code' => '1',
'description' => 'This transaction has been approved.',
),
),
'transHashSha2' => '',
'SupplementalDataQualificationIndicator' => 0,
),
'refTransId' => NULL,
)) In Auth.net:
I would like to see the following populated (if possible): Either way, I do not see the transactionId (962058365) populated anywhere within the transaction details in Auth.net. Any idea what I'm missing? [JJ: edited for formatting] |
Some gateway drivers do put the A shop may also allow multiple partial payments for a single invoice, or a subscription. So in short, the Now, looking at your data, there are some |
If you set the |
Have a quick play with this: https://omnipay.acadweb.co.uk/authorizenet-api-3x/test3.php It uses Accept.JS to make a payment against the sandbox. The card details are already set up to save you some time. The |
Many thanks for the assist, JJ :) So, Regardless, adding the |
For the record |
I'm using a sandbox acct in auth.net and sending a customerId, like so...
$response = $gateway->purchase([
...
'transactionId' => '12345',
'customerType' => \Academe\AuthorizeNet\Request\Model\Customer::CUSTOMER_TYPE_INDIVIDUAL,
'opaqueDataDescriptor' => $opaqueDataDescriptor,
'opaqueDataValue' => $opaqueDataValue,
...
])->send();
...but the value transactionId is not populating in auth.net in the transaction details (neither is the customerType value). Is this a known issue or is there anything I am missing?
Any assistance is appreciated :)
The text was updated successfully, but these errors were encountered: