#eoghanobrien_best-practices

1 messages · Page 1 of 1 (latest)

maiden prawnBOT
rocky krakenBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

maiden prawnBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1247349448854736907

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

scarlet sleet
#

Receipt and invoice are different. For subscription, invoice will be sent to the email on the customer. For receipt, it will be sent to the email address on payment_intent_data

feral coyote
#

Is there anything that can be done to stop the invoice email going out on a monthly subscription?

#

Sorry. Is there anything that can be done to stop the receipt email going out after the invoice for a monthly subscription is paid automatically.

scarlet sleet
#

If receipt_email is set, the receipt email will always be sent

feral coyote
#

Is that not the opposite of what you said above?

scarlet sleet
feral coyote
#

Can I send receipts to an email address I own for monthly only and have all future receipts go to that email address?

scarlet sleet
#

Sorry, I don't really get your question. Could you illustrate in an example?

feral coyote
#

So for example, when creating a checkout session for a monthly product/price, if I set payment_intent_data.receipt_email to an email I own effectively not sending to the customer. Will the receipt email continue to receive receipts even in the event of future paid invoice receipts?

scarlet sleet
#

Let me do minor correction. If payment_intent_data.receipt_email is set, only the initial payment receipt on this specific Checkout Session will be sent to this email address. For the future recurring payments, the receipt will be sent to the email address on the customer

feral coyote
#

Okay. Thank you for the clarification. In that case, is there any way to update an invoice at the time of creation, say via a webhook, to set the receipt email for the upcoming charge?

scarlet sleet
#

Could you share the reason why you would like to update the receipt_email? What is the use case?

feral coyote
#

We don’t want our customers to receive the receipt email from Stripe for monthly subscriptions because we send that email as part of a separate email that also attempts to provide additional reasons not to churn

scarlet sleet
#

There is no need to update the receipt_email in such a case

feral coyote
#

Right but we’re fine with those emails going out on annual subscriptions

#

In fact we’d prefer those to go out as they are.

scarlet sleet
#

Thanks for sharing the information. I'm afraid sending receipt email can't be customised. You can either (1) disable sending receipts for all successful payments; OR (2) sending receipts for all successful payments. It can't be configured at API level

feral coyote
#

I could update the customer email address and emails would always go to the email address I set right? Since emails are not unique

#

What are all of the issues we’d have with that?

scarlet sleet
#

When the subscription is set to collection_method='charge_automatically', the payment will be collected immediately and automatically once the invoice is finalised. When the payment is collected, receipt email will be sent. There is no time in between to update the receipt email since the payment is charged automatically

#

The receipt_email can only be updated at the Payment Intent created from the Invoice

#

However, Payment Intent will only be created after an invoice is finalised, which the payment has been attempted

feral coyote
#

That makes sense. What about the customer email suggestion

scarlet sleet
#

Customer email will be used for sending both receipt and invoice

#

When the customer email is updated to your own email, customer won't receive the invoice

feral coyote
#

Failed payment notifications won’t go to the right place either right, anything else?

scarlet sleet
feral coyote
#

Is there a list of emails you could point me to where I can see what will send to a customer during the lifecycle of a subscription

#

Or a bunch of reasons not to do what I suggested 😂

scarlet sleet
#

Unfortunately, we don't have documentation about sending the emails for subscriptions. By default, the emails will always be sent to the email on the customer in subscription flow

#

Stripe supports disabling sending the receipt email via Dashboard setting, but it doesn't support customisation on when and how a receipt email should be sent

feral coyote
#

Thank you for your help, I really appreciate it.