#Jeet

1 messages · Page 1 of 1 (latest)

silk snowBOT
quartz storm
#

Hi! Let me help you with this.

lost lava
#

Hey Vanya thank you

silk snowBOT
lost lava
#

Is there a way we could do that?

gritty wave
lost lava
#

Hey Vanya, how do I create connected account’s token?

#

@gritty wave

gritty wave
#

What is a 'connected account token'?

lost lava
#

The documentation shared by you says You must create the connected account’s token with the platform’s publishable key.

gritty wave
#

Ah, that'll be referencing the object by which you facilitate the payment (i.e. a Payment Method)

#

So you'd collect those details on the platform, too

lost lava
#

So here is the overall scenario, we provide hormone therapy to the patients of practices. In some cases the practices would like to pay for the patient's subscriptions. If the practice is paying for the patients subscriptions then the same payment method is shared among the patients of that practice. I can clone the payment method from the customer of platform account and attach it to the customer of connect account. However, if I want to start the subscription on customer of connect account then I will need to use the price_ids of platform account. I don't want to clone the products to connect account. There may be more then 1 connect accounts and maintaining products on each connect account would be really difficult. If I create the customer on platform account then I won't be able to clone the payment method. So if I am able to clone the payment method then I am not able to start the subscription because the products in the connect account doesn't exist and if I am able to start the subscription then I am not able to clone the payment method.

gritty wave
#

You can't do what you're describing. If you want to create the Subscription on the connected accounts as you're describing, then the Price objects must existing on the connected account.

lost lava
#

What options do I have? Is Stripe allowing to clone payment method between two customers of platform account?

gritty wave
lost lava
#

No I am looking to clone PM from the customer of platform account and attach it to another customer of platform account.

gritty wave
#

No, you can't clone PMs between Customer objects on the same account

lost lava
#

So how can I approach this problem?

#

How can I make practices attach payment method for the customers to start subscriptions.

gritty wave
#

I'm not sure what particular part you're stuck with that I haven't already explained

lost lava
#

As I mentioned earlier, practices are going to pay for the subscriptions of patients. So we create patients on Stripe and we will like to attach the card details of practice. A practice may have over 100 patients so attaching card details every time when a new customer is onboard isn't a viable approach.

gritty wave
#

Then you'd just create a single Customer that you want to bill that represents the practice, as opposed to the patient

lost lava
#

How can we attach practice's card to a customer as an when they are created and also start subscription using products of platform account.

gritty wave
#

You can't clone payment details between Customers

lost lava
#

So what is the work around to that?

gritty wave
#

There isn't a great one, to be honest. You likely just want a single Customer object that represents the practice as I advised

#

Otherwise if you want separate Customer objects that represent the patients, you'll need to collect payment details from the practice each time