#Ste

1 messages ยท Page 1 of 1 (latest)

random laurelBOT
toxic gorge
#

Hello ๐Ÿ‘‹
Do you have an example in mind? Just to make sure I am on the same page

halcyon horizon
#

not a working one no. but heres the flow in more details...

#

customer comes to website, creates new account, puts in some personal details such as name, address etc., they then select subscription package using stripe, this charges them lets say ยฃ30pm, we then take them to their profile where they can add more details about themselves and setup their stripe connect account. After this they are listed on our website and their customers can buy their products. (its like the example of the gym membership you use on your website)

toxic gorge
#

Is your platform in the US?

halcyon horizon
#

no were in the UK

random laurelBOT
toxic gorge
#

Gotcha and for the subscriptions that your users (connected accounts), do you want to debit their balance or their attached payment methods?

halcyon horizon
#

their payment methods (i thought they would enter this when they click the subscription package)

toxic gorge
#

Gotcha. So I was thinking you could use account debits for your users to pay for subscriptions but that's not an option since you want to charge their attached payment methods.

This isn't something connect + subscriptions can support by default. You can,

1/ Create a typical customer object + subscription (representing connected account subscription for payins)
2/ Then create a connected account and allow them to onboard (you'd collect the payment method information here again for payouts)
3/ Update the subscription metadata to link Customer + subscription <> Connected account information

halcyon horizon
#

ahh in see maybe i misunderstood, what is account debits?

flint adder
#

๐Ÿ‘‹ stepping in for my teammate!

#

But, as hanzo mentioned, it's not possible to use account debits for subscription payins

halcyon horizon
#

ahh i see, yes this wont be possible as they might have a zero balance for a while (or forever even if they never make a slae themselves potentially)

#

how do i update the metadata to link the customer and connected account? it sounds like that is actually what i needed to know

flint adder
#

You would update the Customer and/or Subscription object and pass those metadata values. Taking a step back, you'll probably have some ID on your end that you use to identify your customers. When you create the Customer and Subscription objects, you can pass along this ID. You can pass along the same ID as metadata on the Connected Account: https://stripe.com/docs/api/accounts/create#create_account-metadata

#

You can then store the mapping between your internal customer ID, the Stripe customer object ID, and the Stripe connected account ID somewhere on your end