#OHMelin-email
1 messages · Page 1 of 1 (latest)
Hi! You would need to:
- Listen to a wehbook event to know that the payment is successful (for example
checkout.session.completedif you are using Checkout Session) - And then write some code to fulfil your order. In your case you would send an email to your customer that includes the licence.
Thanks, but is it possible to have Stripe handle purchase emails?
Stripe can send receipts email (as explained here https://stripe.com/docs/receipts) but they cannot be customized.
So if you want to include a licence, you'll have to send the emails yourself.
Okay 😄
Is there a tutorial or guide for this?
Sure!
- To accept a payment with Stripe (we usually recommend to use Checkout Sessions): https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout
- To fulfil an order with webhooks (with Checkout Session) : https://stripe.com/docs/payments/checkout/fulfill-orders
- And to send an email: that's completely up to you
Thanks!
Does your webhook include the order ID of their payment?
Hello there. That depends on what you mean by 'order ID'?