#jereline.
1 messages · Page 1 of 1 (latest)
Hello
Yes you update the receipt_email of the Charge to trigger a receipt via the API: https://stripe.com/docs/api/charges/update#update_charge-receipt_email
No, that would only be relevant before the Charge is created.
Are you asking about sending a receipt when the Charge happens, or afterwards?
Today the receipt sends automatically by Stripe when the payment is captured. Sometimes the customer delete the email or something. So they ask to resend the receipt. I can do it from the dashboard. I like to do it from the API
Yep gotcha
In that case no it doesn't work with the PaymentIntent endpoint
You do have to use the Update Charge endpoint
To be clear, PaymentIntents are a state machine and Charges are associated to a PaymentIntent as a lower-level object
So it "works with PaymentIntents" but you use the Update Charge endpoint
If you want to resend a receipt for a Charge that already has a receipt_email set then you want to null it via '' and then reset it to the original email
ok so I update the charge to "" and then the customer email
Yes
And so from a payment Intent I can get the charge ID ?
Yep, check the latest_charge property
ok thanks