#vell_2x
1 messages · Page 1 of 1 (latest)
Hi there
If you have the receipt email turned on in your Dashboard at https://dashboard.stripe.com/settings/emails then these receipts will be sent automatically
However we don't send these receipts in test mode
So as not to spam folks
hm... and how we can debug that?
I turn receipts on in my dashboard but there is a note saying it will be ignored by the api. I am using the api to process payments.
"data": { "object": { ..... "customer_details": { "address": { ..... "line2": null, "postal_code": "03183", "state": "Alicante" }, "email": "p.iglaev@gmail.com", "name": "Petr Iglaev", "phone": null, "tax_exempt": "none", "tax_ids": [] }, "customer_email": null, } }
I see that object, is it correct the customer_email: null for test_mode?
customer_email is an email you pass to the Checkout Session itself
if I use Gpay/ApplePay should I pass email?
If you want to customize where the receipt is sent then you can pass payment_intent_data.receipt_email: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-receipt_email
Otherwise we will send it to the email that the Checkout Session collects
sorry, not fully understand...
I do create checkout session, and at this moment I don't know customer email.
Customer pays with GPay/ApplePay. will he recieve receipt after payment to his google email?
Yep
any chance to test it without real transactions? 😉
You can use the Dashboard and click the "send receipt" button when viewing the PaymentIntent
That will send the same receipt email that would have been sent in production upon successful payment
cool! thanks! I'll check it