#msms-subscription
1 messages · Page 1 of 1 (latest)
up
@shut inlet the only way to do that would be to disable our emails entirely and implement your own by listening to webhooks and only selectively sending your own emails baed on the type of payment that it is
our receipt logic is all-or-nothing
even for the one-time payment case?
@last copper for the subscription case, do you think it would work if I create the Subscription object, then immediately update the PaymentIntent of subscription.latest_invoice.payment_intent to have receipt_email so that only the very first payment intent sends a receipt to the customer?
but you have ON Email customers about... Successful payments in dashboard turned on right? so the recurring payments will generate receipts.
okay, I turn off that setting, then manually add receipt_email to the PaymentIntent of the subscription, would that work?
I'd have to test it, one sec
Take your time, thanks
the API accepts it at least(I wasn't sure because we don't let you update some fields of an Invoice's PaymentIntent but this one apparently is ok) , so presumably it could work
oh I see, do you think that once this payment succeeds it will send the receipt, like a regular non-invoice-related payment intent? I wish I could test myself but receipts do not get sent in Test mode AFAIK
yes you can't test it since emails are not sent in test mode
Okay one last thing, when the "Email customers about..." setting is OFF, it is enough to include "receipt_email" when creating payment intents to have the receipt email sent, correct? I don't need to do anything else
yep