#DC - Update Subscription

1 messages ยท Page 1 of 1 (latest)

tulip monolith
#

Hi ๐Ÿ‘‹

spare venture
#

Hello! I'll add more clarity

Like if you don't have the connect parameters at first when they sign up, can you add them later? This is specifically a workaround to Stripe Checkout Sessions via the customer portal. Cannot create a checkout session with connect parameters, so thinking the workaround is to add them later

tulip monolith
#

Because Subscriptions are unique to a customer object, and customers are specific to accounts, I don't think you can achieve this via a Subscription update.

#

Have you tested creating a Checkout Session with the Stripe Account header?

spare venture
tulip monolith
#

You can create many objects on the connected account in the API by passing the connected account header (if you are the platform).

spare venture
tulip monolith
#

I haven't tested that flow with Subscriptions, Checkout Sessions, and Destination Charges. If the subscription record exists on the Connected Account they should be able to modify it. However, I would test that scenario pretty thoroughly first.

spare venture
#

Thanks for your help. FWIW I'm using the stripe-firebase extension, and looking to assign a connect account during checkout session. Currently it doesn't accept these Connect parameters

tulip monolith
#

Hmmmm okay. Stripe doesn't officially support the firebase extension so I won't be able to provide too much guidance there. But let me get you some more info on the on_behalf_of parameter

#

Yeah I have to imagine there are plenty of developers who would really like those parameters exposed

spare venture
#

Yeah there's some growing momentum for Connect functionality. Thorsten says in this that you wouldn't want to let a user set the connected account or the application fee during checkout session. This makes complete sense

#

I guess I'm back to watching when the subscription is created, and then updating it right away. But that's sloppy and might miss the first connected payment

#

and might not be possible as per the original question

tulip monolith
spare venture
#

Gotcha, so that looks like a dead end.

spare venture
tulip monolith
#

We don't list all the headers because it would be repeating the same text over and over.

spare venture
#

Ah so this header would work in a createCheckoutSession call? Would this have the effect of assigning the pending subscription to the connected account?

tulip monolith
#

The subscription is created during the Checkout Session yes? In that case it would assign the subscription to that account. I would still test this to verify that a customer on the platform can make a subscription on the connected account.

spare venture
#

Gotcha, yes that was my question

#

I'd also have to assign an application fee percent somehow though, or is this not possible?

#

Definitely will test everything

tulip monolith
spare venture
#

Perfect. Thanks!

tulip monolith
#

And if you are using Checkout Session for one-off purchases, you'd do the same thing with the payment_intent_data parameter.

spare venture
#

Excellent

#

This seems feasible. Stripe-Firebase may have a restriction currently but I can test this out

tulip monolith
#

Okay, I hope that extension catches up. These features are pretty useful ๐Ÿ™‚

spare venture
#

Agreed!

#

It's surprisingly simple configuration