6 posts / 0 new
Last post
alexandryusupov4691
Tokenize Credit card - Invalid ta_token provided

Hi, I am trying to do a test tokenize of Credit Card and get the following error:
"description": "Invalid ta_token provided"

Token i use is "123" as described at documentation at page https://developer.payeezy.com/tokenizedtreditcardpost/apis/post/transactions/tokens-1 when click to "Transarmor Token type. "Click here for more information"" link.
It clearly say me i should use 123 but it then not accept it?

What i am doing wrong, please advice.


rohitrajagopal3402
Re: Tokenize Credit card - Invalid ta_token provided

Hi Alexandr,

That was an error in our documentation, sorry about that. Please use TA_TOKEN="NOIW" as shown in the example on the same page.

We have fixed the documentation now.

Regards,

Payeezy Team


alexandryusupov4691
Re: Tokenize Credit card - Invalid ta_token provided

You have additional error at documentation for PHP code of HMAC generation.
at PHP code sample you say to compute $data = $apiKey + $nonce + $timestamp + $token + $payload;
But it should be $data = $apiKey . $nonce . $timestamp . $token . $payload;

I use version with dot.
And now i have a problem with HMAC auth.
If i take api key, token and api_secret from example i am able to receive tokenize without any problem, but once i try to use my own api key and api secret i always get "message":"HMAC validation Failure"}.
Any advice on that? Should i post my keys and whole code there? (token seems to be same as on your public example).


rohitrajagopal3402
Re: Tokenize Credit card - Invalid ta_token provided

Alexandr,

Thank you for pointing out the error. We will fix it soon.

These are the common causes for “HMAC validation Failure”:

  1. API key and/or API secret are incorrect.
  2. Leading or trailing spaces in the API key, API secret, merchant token.
  3. Timestamp in the HTTP header is not in milliseconds.
  4. Timestamp in the HTTP header does not represent EPOCH time.
  5. Timestamp in the HTTP header is not within 5 minutes of our server time
  6. System time is not accurate

I would recommend that you try your api key and api secret in the sandbox page here: https://developer.payeezy.com/tokenizedtreditcardpost/apis/post/transactions/tokens-1

If that works, then compare the request on the sandbox page with the outbound HTTP request from your code.

If everything looks ok and if you still get the HMAC error, please paste your HTTP request and response including headers and JSON payload here.

Thanks,

Payeezy Team


barathvignesh17446
Re: Tokenize Credit card - Invalid ta_token provided

For each hit, different token is generating for same card. But i read a document which says only one token will be generated for one card. So how could i fix it?


christopherlord730
Re: Tokenize Credit card - Invalid ta_token provided

The sandbox environment simply mimics the tokenization process. In PROD the token will always remain the same for the specific PAN that was tokenized.