Square card nonces are single-use and expire in 24 hours
Shows how to fix square card nonces are single-use and expire in 24 hours. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Use it once, within 24 hours, and never store it for later charges. If you need to charge the same card again, create a customer from the nonce and keep the customer card id instead.
Steps
- Treat a Square card nonce as a one-shot token. Use it once, within 24 hours, and never store it for later charges. If you need to charge the same card again, create a customer from the nonce and keep the customer card id instead. A second charge attempt with the same nonce will fail, and that failure looks like a broken integration when it is really just an expired or consumed token.
When to use
You are seeing this: Treat a Square card nonce as a one-shot token. Use this skill when you run into "Square card nonces are single-use and expire in 24 hours".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.