## Token event Stripe.js automatically creates a [Token](/api/tokens.md) after the customer is done interacting with the browser’s payment interface. To access the created `Token`, listen for this event. **Syntax:** `paymentRequest.on(...)` - `event` (string) **required** The name of the event. In this case, `token`. - `handler` (function) **required** A callback function that will be called with a [PaymentResponse](/js/appendix/payment_response.md) object when the event is fired. The `PaymentResponse` object will contain a `token` field. ### Handle 'token' event ```js paymentRequest.on('token', function(event) { // event.token is available }); ``` ```es_next paymentRequest.on('token', ({token}) => { // token is available }); ```