#zhangweijun
1 messages · Page 1 of 1 (latest)
Which token are you referring to? Can you share the doc you used to obtain the token?
Is it connection token? https://stripe.com/docs/terminal/payments/setup-integration?terminal-sdk-platform=ios
If so, connection token shouldn't be cached or re-used and should be created when needed as mentioned in the doc:
Do not cache or hardcode the connection token. The SDK manages the connection token’s lifecycle.
yes this is it 。If this token expires, will the SDK notify it of its expiration
You shouldn't need to manage the connection token creation by yourself.
At client-side (https://stripe.com/docs/terminal/payments/setup-integration?terminal-sdk-platform=js#connection-token-client-side), SDK will call your server connection token creation when necessary. Whether to create a new connection token is handled by the SDK
SDK will be able to determine if new connection token is required