#simonc

1 messages · Page 1 of 1 (latest)

hybrid leafBOT
#

Hello! 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.

  • simonc, 3 days ago, 103 messages
  • simonc, 4 days ago, 8 messages
hallow crypt
#

Hello

#

You can't clone a Subscription. You would need to recreate it.

unborn otter
#

Yes

#

But I don't have any idea to do this with the Stripe API

hallow crypt
#

Are you confused specifically with how to do these requests on a Connected Account?

#

Or you aren't familiar with Products/Prices/Subscriptions via the API?

unborn otter
#

Confused on how to do these requests

#

Should I create the customer to the connected account as well?

#

What is exactly the procedure I have to do with the API to recreate a subscription to the connected account?

#

How I get the old subscription to input to the new subscription?

hallow crypt
unborn otter
#

Ok. I retrieve the info. But how did I enrich the subscription creation with all the info? I use Node, I just have to input the old subscription in input?

hallow crypt
#

If you already have the Customer's PaymentMethod then you can clone that to your Connected Account instead of collecting it

unborn otter
#

To be clear

#
  1. I copy the customer to the connected account
#
  1. I create the product to the connected account
#
  1. I copy the paymentmethod
#
  1. I copy the old subscription and create a new one to the connected account
#

?

hallow crypt
#

1/ Create Customer on Connected Account (you can't copy a Customer)
4/ Create the Subscription on Connected Account using an equivalent Price

#

Other than that, yes.

unborn otter
#

Ok

#

And this approachs work:

#

const subscription = await stripe.subscriptions.retrieve('sub_1OAXZwFEFyxL8YonHSP5MZyE');
await stripe.subscriptions.create(subscription);

#

?

hallow crypt
#

No

unborn otter
#

What is the good approach?

hallow crypt
#

You create a Subscription using the proper parameters

#

Not by passing a different Subscription object

unborn otter
#

What are the proper parameters?

hallow crypt
#

Did you look at the documentation I provided above?

#

You need to make some effort on your end. I'm not going to do all the work for you -- I'm helping multiple folks at once.