x

Is it possible to save a nonce once it has already been used to charge a card?

Right now, I'm using the sqPaymentForm object, embedded in my application. I receive a nonce, authorize and capture a transaction. Once that passes correctly, I want to persist that nonce in a reusable payment_method but I always get the  CARD_TOKEN_USED error.

 

I assume that nonce can therefore only be used once.

 

Do I absolutely need to create the customer and card before the charge? This is contrary to how I use the other payment gateways I've integrated with. The issue is I don't want to save a payment method before I confirm the payment has at least been preauthorized.

Tags (2)
1,132 Views
Message 1 of 2
Report
1 Best Answer
Admin

Best Answer

I'm sorry to keep you waiting for a reply @mike65. I checked with an API specialist who confirmed that the nonce is a one time use token. This means you will need to CreateCustomerCard first with the nonce and then use the saved card to charge the customer.

️ Helen
Seller Community Manager

View Best Answer >

1,120 Views
Message 2 of 2
Report
1 REPLY 1
Admin

Best Answer

I'm sorry to keep you waiting for a reply @mike65. I checked with an API specialist who confirmed that the nonce is a one time use token. This means you will need to CreateCustomerCard first with the nonce and then use the saved card to charge the customer.

️ Helen
Seller Community Manager

1,121 Views
Message 2 of 2
Report