cancel
Showing results for 
Search instead for 
Did you mean: 

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.

dan1101
Member
3 REPLIES 3

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

RichardH
Administrator Administrator
Administrator

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

 

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