# Payment Flow / Lifecycle

When you use the Stripe payment provider it makes use of the [Stripe Checkout](https://stripe.com/docs/payments/checkout) features.

The flow / lifecycle works like this:

1. The customer browses the website and adds a product to the [Basket](https://docs.umbcheckout.net/core-services/object-reference/basket)
2. Customer views their basket and initiates the Checkout process
3. UmbCheckout converts the [Basket](https://docs.umbcheckout.net/core-services/object-reference/basket) for Stripe and sends this over via the Stripe API
4. The Stripe API returns a unique payment URL
5. The customer is redirected to the Hosted Stripe payment page
6. On payment success, the Customer is returned to the payment success page, or on payment failure / cancel the Customer is returned to the payment canceled page
7. After the transaction, a [webhook](https://docs.umbcheckout.net/payment-providers/payment-providers/stripe/services/stripe-webhook-api) sends the response and triggers a [Notification](https://docs.umbcheckout.net/payment-providers/payment-providers/stripe/notifications)

<figure><img src="https://2748728690-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh5UHoyl8SSRgUKuYYLss%2Fuploads%2F4FN7oGe4aMarGdK3eovZ%2FScreenshot%202023-08-18%20130555.png?alt=media&#x26;token=c328e639-e22b-4b6c-8e35-cddc9f32ea22" alt=""><figcaption></figcaption></figure>
