#dvsk
1 messages · Page 1 of 1 (latest)
Hi, you could listen to charge.succeeded https://stripe.com/docs/api/events/types#event_types-charge.succeeded event and then send your email receipts on your end.
That is correct, the Payment Link will a Payment Intent created under the hood
Hmm, I might have misunderstood your question. I thought you said you'd need to turn off the automatic email receipts?
Is that not the case?
Can you reword the question please?
Yes, I have to turn it off. But I am still looking if there is some API method of stripe, something like '/sendEmail' that I can invoke in the charge.succeeded in the webhook and that '/sendEmail' sends receipt to the customer?
I see, no there is not.
ok is there some other way that Stripe can send the receipt to the customer, in this scenario?
On a second thought, you might be able to by updating the Payment Intent: https://stripe.com/docs/api/payment_intents/update#update_payment_intent-receipt_email
I'd highly recommend that you test this on your end
exactly... I was just thinking I can update payment intent object but I don't know when to invoke update payment intent in the whole process.
like how can I get the payment intent object id in the webhook? should i handle 'payment_intent.succeeded' event?
Unless you're also updating other parameters, that should not be the case.
Yes, 'payment_intent.succeeded' and then make the update call and pass the email address
Sorry, I didn't understand this
what should not be the case?
' I was just thinking I can update payment intent object but I don't know when to invoke update payment intent in the whole process.'
I think I mis-interpreted that.
But to invoke it, you listen to 'payment_intent.succeeded' and then make the update call and pass the email address
ok understood
now, another question please... do we have an option to include the customer's name in the receipt? I saw that we only have the option of changing the icons and the email receipt would only contain the payment information, correct, but doesn't have customer's name who paid it?
That, you'd want to reach out to support. Our support team will be able to assist you better than I can: https://support.stripe.com/contact
oh, Sorry but may I know the reason that I should contact support for this query? It's a question related to development only right?
Not the content of the email
oh! Got you
I think your ask, does it include the customer's name which is now the content.
Yes I want to know if we have an option to include the customer's name in the email receipt