cancel
Showing results for 
Search instead for 
Did you mean: 

E00124 : The provided access token is invalid

Hi,

I have registered for Visa Checkout with authorize.net .

On visa checkout  success event i'm get  encPaymentData,encKey and callid .

 

But when I'm calling  method createVisaCheckoutTransaction() or decryptVisaCheckoutData()

 Its response is:

 

Transaction Failed
Error code  : E00124
Error message : The provided access token is invalid

 

I properly added login id, txn key & visa API Key.

have not found any help for this Error Code.

 

Please help.

My API Login ID is: 6uGxF97v

 

Regards

 

prakash-nityo
Member
12 REPLIES 12

Are you posting to the Sandbox or Production API URL?

Sandbox URL: https://apitest.authorize.net/xml/v1/request.api

Production URL: https://api.authorize.net/xml/v1/request.api

Powered by NexWebSites.com -
Certified Authorize.net developers
NexusSoftware
Trusted Contributor

Using : https://apitest.authorize.net/xml/v1/request.api

for sandbox visa checkout 

Any update on my Issue.

Hello @prakash-nityo

 

I've reported your issue to the product team for analysis.

I'd recommend subscribing to this topic so that you'll be alerted via email if there are updates. To subscribe, click Topic Options at the top of this thread and then select Subscribe. You'll then receive an email once anyone replies to your post.

Thanks,

Richard

@prakash-nityo could you please post your full request with anything sensitive removed?

 

Richard

Hi RichardH,

 

My Request is :

 

net\authorize\api\contract\v1\CreateTransactionRequest Object
(
[transactionRequest:net\authorize\api\contract\v1\CreateTransactionRequest:private] => net\authorize\api\contract\v1\TransactionRequestType Object
(
[transactionType:net\authorize\api\contract\v1\TransactionRequestType:private] => authCaptureTransaction
[amount:net\authorize\api\contract\v1\TransactionRequestType:private] => 100
[currencyCode:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[payment:net\authorize\api\contract\v1\TransactionRequestType:private] => net\authorize\api\contract\v1\PaymentType Object
(
[creditCard:net\authorize\api\contract\v1\PaymentType:private] =>
[bankAccount:net\authorize\api\contract\v1\PaymentType:private] =>
[trackData:net\authorize\api\contract\v1\PaymentType:private] =>
[encryptedTrackData:net\authorize\api\contract\v1\PaymentType:private] =>
[payPal:net\authorize\api\contract\v1\PaymentType:private] =>
[opaqueData:net\authorize\api\contract\v1\PaymentType:private] => net\authorize\api\contract\v1\OpaqueDataType Object
(
[dataDescriptor:net\authorize\api\contract\v1\OpaqueDataType:private] => COMMON.VCO.ONLINE.PAYMENT
[dataValue:net\authorize\api\contract\v1\OpaqueDataType:private] => 1VQ4pxtXBK61UFOP9zZbv3msI7ZJ6nGnPIWk d6OC3OkuXLkktnmm288rAjstcGJ6ZVz8jMeC5erBynaHoNNpVw 2Bxoddib2SwCm5uTY2mjwhZFB4BkU 18Fei6wn07NJo9BZ45sIiFSLv1UyGVzNOH KXXOY24xayLZBvHexdoHlqKI5ogf nLwzDmX9 hOBv68gpYhFXQtDKIQ517p5RCD2rDFxnZ5r654LOtFxErvHM8IwGGBC5s2IvjIhTGgP/RHc24ZPNPWpKFTuecQUu2TruY8m2BTM5rBmn0e963cL5b9wVn/rBpONMlGmiDStTcYe7mTJPuuOAMvULByi0SJU10ZUuiDWkaj0eG/FsmL9wiu4fSzYtGnjyLMoQfhZnEdKIJR1KNzHqkWTNwuv34x6le4MRXTbpDpDfFTClvBLqeTN9GYBynzvCEjyzii9FwuGQz9oDnGitufeF46VPaqvxkk/BucV yvW4R6X9q42UsNeJaqITbw ibDgvP8RNWNKRsxzSMaz5npTTfNq/yKgLH2bkyPlIYmy rlMG9A qsRv/Avm4JctoEG8WbiUjfo6GijElEOj6yki8nW9or1Qgmum3JCOClUYvN2zPZkfjXPf6v9M3lCXp1KULly9C/U3ROnEUFZ8vNihrUejE7GtcSTy8cX33VvjG31Xwtq82caIFv3PcrtVO6c39gqF4JScFb9dPEb1BF/W7V/FiQ 1weYDk2yCNqfIRIALlQmX9RR65nwtsKBCLr iu0V 6df0c13FX2iy1YmXrHVqE KMwGGrKdre4s/YbhZSm5EegwA1ZcCFXWrV5OVe4ac8OH1O0ivqW64KBu8ixvWkVnwOFiuPxPC8WVIO4ZyItcQ2g/ ltAoFGyeu1ZAk4BNSIWVXGTUh 2m1y/R8Q4z1B OVuwLptNTSDMn6e4c1HFldoLbe4oMJZ9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QT24YCUyRHAiuF5J35Zh3CcvW7CaVkTJT/rdsGKL1H2cu2F1SWcp14jWKgJFcfTxOfky0YzM3gCcQ7NtivUg55KtN6OhZfl8A3STQzg0k9LHAJpvi7rqzf9GiGi4BnPy2zIPQnsyaY/QJCmT2g2r2O9rvxji30J7FiTBCbH7GsrO6hmrhCqY73tGHusZA0Z8UT4K9gbo0TzYVAZUCKlJf2o/Pd/aZf3VIk/a4DSdcmlwmTVfHArj84FHiRn9VbMNCX4YAoiSQ2xBWnJzidjayAnXD1hq3ousP39RHb36thPpmN71OHpljFDS6Zziq4KQhZR9g3Q=
[dataKey:net\authorize\api\contract\v1\OpaqueDataType:private] => pHiRRysLown/7hX3dT3Jyj1EhMDd1t1/b BEDyBmmzo1PgcDuGYj5J s5oJww7S/lW8ECBAecs9ntXBCl6DAofQVxtXqEtzgypbgcZPHR/rtJIBCIZwARPHrCR6Zb2Zr
)

[emv:net\authorize\api\contract\v1\PaymentType:private] =>
)

[profile:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[solution:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[callId:net\authorize\api\contract\v1\TransactionRequestType:private] => 6959053999456069001
[terminalNumber:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[authCode:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[refTransId:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[splitTenderId:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[order:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[lineItems:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[tax:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[duty:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[shipping:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[taxExempt:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[poNumber:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[customer:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[billTo:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[shipTo:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[customerIP:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[cardholderAuthentication:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[retail:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[employeeId:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[transactionSettings:net\authorize\api\contract\v1\TransactionRequestType:private] =>
[userFields:net\authorize\api\contract\v1\TransactionRequestType:private] =>
)

[merchantAuthentication:net\authorize\api\contract\v1\ANetApiRequestType:private] => net\authorize\api\contract\v1\MerchantAuthenticationType Object
(
[name:net\authorize\api\contract\v1\MerchantAuthenticationType:private] =>
[transactionKey:net\authorize\api\contract\v1\MerchantAuthenticationType:private] =>
[sessionToken:net\authorize\api\contract\v1\MerchantAuthenticationType:private] =>
[password:net\authorize\api\contract\v1\MerchantAuthenticationType:private] =>
[impersonationAuthentication:net\authorize\api\contract\v1\MerchantAuthenticationType:private] =>
[fingerPrint:net\authorize\api\contract\v1\MerchantAuthenticationType:private] =>
[clientKey:net\authorize\api\contract\v1\MerchantAuthenticationType:private] =>
[mobileDeviceId:net\authorize\api\contract\v1\MerchantAuthenticationType:private] =>
)

[clientId:net\authorize\api\contract\v1\ANetApiRequestType:private] =>
[refId:net\authorize\api\contract\v1\ANetApiRequestType:private] => ref1495515267
)

 

 

My Response is : 

 

net\authorize\api\contract\v1\CreateTransactionResponse Object
(
[transactionResponse:net\authorize\api\contract\v1\CreateTransactionResponse:private] => net\authorize\api\contract\v1\TransactionResponseType Object
(
[responseCode:net\authorize\api\contract\v1\TransactionResponseType:private] =>
[rawResponseCode:net\authorize\api\contract\v1\TransactionResponseType:private] =>
[authCode:net\authorize\api\contract\v1\TransactionResponseType:private] =>
[avsResultCode:net\authorize\api\contract\v1\TransactionResponseType:private] =>
[cvvResultCode:net\authorize\api\contract\v1\TransactionResponseType:private] =>
[cavvResultCode:net\authorize\api\contract\v1\TransactionResponseType:private] =>
[transId:net\authorize\api\contract\v1\TransactionResponseType:private] =>
[refTransID:net\authorize\api\contract\v1\TransactionResponseType:private] =>
[transHash:net\authorize\api\contract\v1\TransactionResponseType:private] =>
[testRequest:net\authorize\api\contract\v1\TransactionResponseType:private] =>
[accountNumber:net\authorize\api\contract\v1\TransactionResponseType:private] =>
[entryMode:net\authorize\api\contract\v1\TransactionResponseType:private] =>
[accountType:net\authorize\api\contract\v1\TransactionResponseType:private] =>
[splitTenderId:net\authorize\api\contract\v1\TransactionResponseType:private] =>
[prePaidCard:net\authorize\api\contract\v1\TransactionResponseType:private] =>
[messages:net\authorize\api\contract\v1\TransactionResponseType:private] => Array
(
)

[errors:net\authorize\api\contract\v1\TransactionResponseType:private] => Array
(
)

[splitTenderPayments:net\authorize\api\contract\v1\TransactionResponseType:private] => Array
(
)

[userFields:net\authorize\api\contract\v1\TransactionResponseType:private] => Array
(
)

[shipTo:net\authorize\api\contract\v1\TransactionResponseType:private] =>
[secureAcceptance:net\authorize\api\contract\v1\TransactionResponseType:private] =>
[emvResponse:net\authorize\api\contract\v1\TransactionResponseType:private] =>
[transHashSha2:net\authorize\api\contract\v1\TransactionResponseType:private] =>
[profile:net\authorize\api\contract\v1\TransactionResponseType:private] =>
)

[profileResponse:net\authorize\api\contract\v1\CreateTransactionResponse:private] =>
[refId:net\authorize\api\contract\v1\ANetApiResponseType:private] => ref1495515267
[messages:net\authorize\api\contract\v1\ANetApiResponseType:private] => net\authorize\api\contract\v1\MessagesType Object
(
[resultCode:net\authorize\api\contract\v1\MessagesType:private] => Error
[message:net\authorize\api\contract\v1\MessagesType:private] => Array
(
[0] => net\authorize\api\contract\v1\MessagesType\MessageAType Object
(
[code:net\authorize\api\contract\v1\MessagesType\MessageAType:private] => E00124
[text:net\authorize\api\contract\v1\MessagesType\MessageAType:private] => The provided access token is invalid
)

)

)

[sessionToken:net\authorize\api\contract\v1\ANetApiResponseType:private] =>
)

Hi @prakash-nityo,

 

Have you explicity set marketType to 0 in your request as specified in the documentation?

Yes I have used below lines for this...

 

$transactionDetail = new AnetAPI\TransactionDetailsType();
$transactionDetail->setMarketType(0);

Hi Aaron,

Just checked your sample source code for  method  createVisaCheckoutTransaction at Github

In this sample  MarketType paramenter is missing.

 

 

https://github.com/AuthorizeNet/sample-code-php/blob/master/VisaCheckout/create-visa-checkout-transa...

 

 

Still Hoping for a solution  :)