Developer Discussions
What's the Expiration Time of a Payment Token
almost 2 years ago by Dale
The API used is Create Payment Token API
In the response body, it has a state
property. One of its possible values is EXPIRED
. How long after Payment Token creation does it expire?
I've also checked this API documentation to check if the expiration time is indicated, but it only states that "The payment token is valid for a specific amount of time. Before it expires, it is valid for single use only in payment transactions."
To test the expiration, I've tried linking an old Payment Token using Create Customer Card API and received a response of:
{
"code": "PY0007",
"message": "Invalid token status.",
"parameters": [
{
"field": "paymentTokenId",
"description": "Token is already expired."
}
]
}