## Source event Stripe.js automatically creates a [Source](/api/sources.md) after the customer is done interacting with the browser’s payment interface. To access the created source, listen for this event. **Syntax:** `paymentRequest.on(...)` - `event` (string) **required** The name of the event. In this case, `source`. - `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 `source` field. ### Handle 'source' event ```js paymentRequest.on('source', function(event) { // event.source is available }); ``` ```es_next paymentRequest.on('source', ({source}) => { // source is available }); ```