Stripe | Financial Infrastructure to Grow Your Revenue

Stripe | Financial Infrastructure to Grow Your Revenue

4466 articles

On Token


Token event paymentRequest.on(event: string, handler: function) Stripe.js automatically creates a Token after the customer is done interacting with the browser’s payment interface. To access the created Token, listen for this event. - event The name of the event. In this case, token. - handler A callback function that will be called with a PaymentResponse object when the event is fired. The PaymentResponse object will contain a token field. ### Example title Handle 'token' event

Last verified 2026-09-24

Is this helpful?