#NeetCode-Checkout
1 messages · Page 1 of 1 (latest)
Hi there, when you create a subscription, you need to sepcify a customer , and the customer has a email property.
Yeah, I'm adding the customer to the session, is that enough for them to get an emailed receipt? If so, why is there an explicit field for receipt_email only for payment_intent_data (https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-receipt_email)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Any confirmation that this is enough to send the receipt? Thanks.
As long as the customer's email is set, Stripe will send the receipts to that email address. See https://stripe.com/docs/receipts#receipts-with-billing
Thanks!