For example, if you create a new subscription for a customer, you receive and payment_intent.succeeded events.īy registering webhook endpoints in your Stripe account, you enable Stripe to automatically send Event objects as part of POST requests to the registered webhook endpoint hosted by your application. A single API request might result in the creation of multiple events. When an event occurs, Stripe generates a new Event obect. Stripe generates event data that we can send you to inform you of activity in your account. Receiving webhook events are particularly useful for listening to asynchronous events such as when a customer’s bank confirms a payment, a customer disputes a charge, a recurring payment succeeds, or when collecting subscription payments. Stripe uses HTTPS to send webhook events to your app as a JSON payload that includes an Event object. After you register them, Stripe can push real-time event data to your application’s webhook endpoint when events happen in your Stripe account. To enable webhook events, you need to register webhook endpoints. When building Stripe integrations, you might want your applications to receive events as they occur in your Stripe accounts, so that your backend systems can execute actions accordingly.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |