#anil8486
1 messages · Page 1 of 1 (latest)
Hi,
I am using stripe.checkout.sessions.create to do payment, how to send email when payment is successful
There's a setting in the Stripe dashboard for this here https://dashboard.stripe.com/settings/emails
However note that we don't send any emails in test mode.
Okay, if i hover on there is information -: This setting is ignored when you create a payment in the API and provide the receipt_email parameter.
Can you please explain this.?
If you disable this setting, but set the receipt_email parameter, then Stripe will ignore the setting and send an email.
It's this parameter when using a Chekcout Session: https://stripe.com/docs/api/checkout/sessions/create?lang=java#create_checkout_session-payment_intent_data-receipt_email
If i don't mention this receipt_email then i will not get the email after payment?
👋 if you disable the setting and don't pass the email either then no.
have to pass the email like this?
yes, as mentioned in the docs my colleage shared above.
Please try it out as it would help
Yes, we have a doc here that I'd recommend reading through
It covers everything about email receipts
https://stripe.com/docs/receipts