#dvsk
1 messages · Page 1 of 1 (latest)
Please restate your question, I won't be opening that thread
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..
Not really. But if you are responding the webhook event you will need to send your own email.
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.
Correct, because Checkout collects that information so you are not allowed to modify it
hmm... what else I can do to make Stripe send email?
You can use the automated email settings https://dashboard.stripe.com/settings/emails
- 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?
Yes
A Payment Link is reusable with multiple customers
So a Payment Intent is only created when a specific customer pays
Sorry, I mean I want without turning on the automated email settings in the first place and Stripe sending the emails like it does in the case of creating manual payment intents
oh okay... thank you for clarifying that to me.
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
hmm okay...thank you so much for your help today. 🙂