#dvsk

1 messages · Page 1 of 1 (latest)

snow lightBOT
spring yacht
#

Please restate your question, I won't be opening that thread

serene patrol
#

oh ok

#

So, I am using payment links in my application and then using webhooks and also sending email receipts to the customers through the toggle option in the Email settings on the dashboard.

#

So far things are all working fine.

#

But now there's a new requirement in my app that I should not be using the automatic email sending option that's in the dashboard. But I should now do that at the webhook level after the payment is made, but still use the Stripe email sending option... like populating the receipt_email parameter or through some other way, if there is, i do not know...

#

Hope it's clear of what I said so far, Snufkin..

spring yacht
#

Not really. But if you are responding the webhook event you will need to send your own email.

serene patrol
#

oh... I tried updating the payment intent object in the 'payment_intent.succeeded' and also in the 'checkout_session.completed' events but I saw this error - StripeInvalidRequestError: Some of the parameters you provided (receipt_email) cannot be used when modifying a PaymentIntent that was created by Checkout. You can try again without those parameters.

spring yacht
#

Correct, because Checkout collects that information so you are not allowed to modify it

serene patrol
#

hmm... what else I can do to make Stripe send email?

spring yacht
serene patrol
#
  1. Also, I thought when a payment link is created, at that time only the payment intent is also created under the hood and is attached to that payment link. But, I saw that the 'payment_intent.created' event also getting called in the webhook... Am I wrong?
spring yacht
#

Yes

#

A Payment Link is reusable with multiple customers

#

So a Payment Intent is only created when a specific customer pays

serene patrol
serene patrol
spring yacht
#

Unfortunately I don't know of a way to address that when using Checkout besides the automated settings. Since the Payment Intent is created and then paid before you have a chance to update it with the receipt_email parameter

serene patrol
#

hmm okay...thank you so much for your help today. 🙂