#ivans1310

1 messages · Page 1 of 1 (latest)

drowsy dockBOT
#

Hello ivans1310, we'll be with you shortly! 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.
https://discord.com/channels/841573134531821608/1164198635748196372, 0 days ago, 7 messages
https://discord.com/channels/841573134531821608/1163969366967189564, 1 days ago, 10 messages
https://discord.com/channels/841573134531821608/1163543948472631326, 2 days ago, 21 messages

shrewd pebble
#

Taking a step back, are you talking about the person who is subscribed getting an email? Or do you want to email your connected accounts when one of their customers has a subscription that will cycle?

ivory helm
#

I am taking about the person who is subscribed, so the customers of my connected accounts.

shrewd pebble
#

Are you creating the subscriptions on your platform account? Or are these Standard Connect accounts and the subscriptions are being created on the connected account?

#

The settings page that I sent will apply to any subscription created on your platform account. As far as I know there is not a way to set this for subscriptions that are created directly on the connected accounts

ivory helm
#

I am creating a checkout session and the subscription is create when my connected account customers submit the checkout session form.

shrewd pebble
#

Can you show me your code for creating that Checkout Session?

#

Checkout Sessions can create the subscription on either your account or on your connected account

ivory helm
#

yes, I will send you

#

We are doing in the connected account.

shrewd pebble
#

Ah, then unfortunately I don't think you can control the email settings for subscriptions on your connected accounts

ivory helm
#

I see.
Here in this thread (https://discord.com/channels/841573134531821608/1163543948472631326 ) I was asking about setting up programmatically the successful payment email to my connected accounts customers.
The Stripe dev told me that that is possible, I have to check out the receipt_email property in the charge.successful event, if it is null, I can update the charge and pass the customer email in the receipt_email to force the Successful Payment Email.
So I am wondering if that is possible for the sending emails about upcoming renewals

shrewd pebble
#

Ah apologies, I see those instructions now

Let the individual Standard account(s) control this setting in their Dashboard
Write your own email integration yourself as a platform
After a successful payment, listen to checkout.session.completed, look at the resulting PaymentIntent/Charge and check if it has receipt_email set. If it does, then one was sent, if it doesn't, none was sent and you can call the Update Charge API https://stripe.com/docs/api/charges/update and pass receipt_email to the email associated with the Checkout Session to force one
Collect an email upfront and set it on payment_intent_data[receipt_email] when you create the Checkout Session

#

Unfortunately not, that workaround only works because there is a payment. As far as I am aware there is not an equivalent workaround for upcoming renewals