#Darby-checkout-emails

1 messages · Page 1 of 1 (latest)

forest robin
#

There isn't a way to configure this automatically, but you could build this out on your end

wheat carbon
#

Do you mean set up my own email/reciept?

forest robin
#

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

wheat carbon
#

Hazzah!! that's exactly what i needed!

forest robin
#

👍

wheat carbon
#

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?

forest robin
#

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)

wheat carbon
#

Ohhhhhh that's interesting. Gotcha! that is very useful ty

#

So even though that post fact it should still send the email?