Reply
Highlighted
Member
Posts: 2
Registered: ‎01-16-2017

Question about tokens / transaction keys

Hi,

 

  I want to use Accept.js to tokenize customer cards so I don't have to store them on my server. I have created a simple form that returns a transaction key (returns a COMMON.ACCEPT.INAPP.PAYMENT number), but it seems if I wait more than a few minutes to do the test charge it gets rejected with E00114 or E00115. I assume that means I have a limited amount of time to do the charge after generating the token?

 

  The way my business works, we don't charge the customer until right before we ship their order. Is there any way to generate a token / transaction key at the time the customer places the order and then charge using the token X number of hours or days later?

 

Thanks.

Highlighted
Posts: 2,765
Topics: 57
Kudos: 247
Blog Posts: 67
Registered: ‎12-05-2011

Re: Question about tokens / transaction keys

[ Edited ]

Hello @dan1101

 

You are correct that the Accept.js payment nonce must be used within 15 minutes before it expires.  It can be used to create a one-time, transaction, but it can also be used to create a customer profile for future charges.  Simply include the the payment nonce returned by Accept.js in the payment object.

 

http://developer.authorize.net/api/reference/index.html#customer-profiles-create-customer-profile

 

Richard

Highlighted
Member
Posts: 2
Registered: ‎01-16-2017

Re: Question about tokens / transaction keys

Ok thanks I will study that.  The example shows <cardNumber>, so a nonce can be substituted instead?  

 

Highlighted
Posts: 2,765
Topics: 57
Kudos: 247
Blog Posts: 67
Registered: ‎12-05-2011

Re: Question about tokens / transaction keys

Correct.  If you need a sample, just use the payment nonce object from this: https://developer.authorize.net/api/reference/#payment-transactions-create-an-accept-payment-transac...

 

Richard