问题
In Braintree, When I generate a client token with a $customerId
, how reliable is it to save that client token to database and re-use it later on?
I always have a user corresponding to a $customerId
and it would greatly reduce the number of calls to Braintree if I could re-use the token.
Does the token ever expire? There is no mention of that in the official docs.
Thanks a lot!
回答1:
Full disclosure: I work as a developer for Braintree
The client token is not intended to be reused and will be revoked if a single client token is used multiple times in a short time span. You can read more about the client token in this part of the Braintree documentation.
来源:https://stackoverflow.com/questions/36377218/braintree-client-token-expiration