Language, language version, and OS: PHP 7.3.21 on Amazon Linux 2
Issue description
When generating client token, Is it possible to pass an expiration date (absolute/relative time) as parameter to let the token to expire in desired time?
Use case:
I'm implementing PayPal checkout. When users clicked the yellow PayPal button, a new pop-up window will come out. If users leave the window open and come back an hour later, they can still pay successfully which I don't want it to happen.
So, is it possible to prevent it from happening by specifying a shorter expiration date on the client token?
General information
Issue description
When generating client token, Is it possible to pass an expiration date (absolute/relative time) as parameter to let the token to expire in desired time?
https://github.com/braintree/braintree_php/blob/b5e971d898c78819cf2fddab7043b7c7c69e841e/lib/Braintree/ClientTokenGateway.php#L38-L48
Currently, client tokens are valid for up to 24 hours according to the document.
https://developers.braintreepayments.com/guides/authorization/client-token
Use case: I'm implementing PayPal checkout. When users clicked the yellow PayPal button, a new pop-up window will come out. If users leave the window open and come back an hour later, they can still pay successfully which I don't want it to happen.
So, is it possible to prevent it from happening by specifying a shorter expiration date on the client token?