#Darby-checkout-emails
1 messages · Page 1 of 1 (latest)
There isn't a way to configure this automatically, but you could build this out on your end
Do you mean set up my own email/reciept?
That's one option (where you listen for webhook events and decide whether to generate and send a receipt email yourself). Alternatively, you could look into receipt_email on the Payment Intent. If you have automatic receipt emails disabled, you can update the underlying Payment Intent to set receipt_email (https://stripe.com/docs/api/payment_intents/update#update_payment_intent-receipt_email) and this should override that setting and send an email anyways
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hazzah!! that's exactly what i needed!
👍
Does stripe have a fall back email template? or do i have to set one up
Wait, how do i set that with checkout?
Sorry that wasn't very clear. I'm using the checkout.sesssions.create is there a way to set the payment intent in that function?
Let me clarify - you'd still want to use the webhooks with receipt_email and update the Payment Intent in the webhook event handler. You wouldn't be doing it from Checkout SEssion creation (unless you happen to know the customer's email up front in which case you can set payment_intent_date.receipt_email)