#jereline.

1 messages · Page 1 of 1 (latest)

sand patrolBOT
surreal finch
#

Hello

sterile wedge
#

Thanks

#

It's work the same with payment-Intent ?

surreal finch
#

No, that would only be relevant before the Charge is created.

#

Are you asking about sending a receipt when the Charge happens, or afterwards?

sterile wedge
#

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

surreal finch
#

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

sterile wedge
#

ok so I update the charge to "" and then the customer email

surreal finch
#

Yes

sterile wedge
#

And so from a payment Intent I can get the charge ID ?

surreal finch
#

Yep, check the latest_charge property

sterile wedge
#

ok thanks