#Reyansh Sharma

1 messages · Page 1 of 1 (latest)

lost auroraBOT
random vortex
#

Hi 👋 double checking that

#

You should not be directly controlling the token lifecycle for your Terminal integration. You should have an endpoint on your server that can handle creating tokens, then you should create a function in your client-side code that can make requests to your server's endpoint.

You pass that client-side function when initializing StripeTerminal, and the sdk then handles the token lifecycle and will request new ones as needed.

This is explained in more details in steps 2 and 3 here:
https://stripe.com/docs/terminal/payments/setup-integration?terminal-sdk-platform=js#connection-token

Set up a Stripe Terminal SDK or server-driven integration to accept in-person payments.

lost auroraBOT