#vell_2x

1 messages · Page 1 of 1 (latest)

half remnantBOT
woven drift
#

Hi there

#

However we don't send these receipts in test mode

#

So as not to spam folks

undone chasm
#

hm... and how we can debug that?

jagged mirage
#

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.

undone chasm
#
 "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?

woven drift
#

customer_email is an email you pass to the Checkout Session itself

undone chasm
#

if I use Gpay/ApplePay should I pass email?

woven drift
#

Otherwise we will send it to the email that the Checkout Session collects

undone chasm
#

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?

woven drift
#

Yep

undone chasm
#

any chance to test it without real transactions? 😉

woven drift
#

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

undone chasm
#

cool! thanks! I'll check it