#Priyanka
1 messages ยท Page 1 of 1 (latest)
OK but then how can I create it again. Like I am looking for an easy way around. If I could just get the subscription by it'd ID and then just pass that object to some function maybe
is it just one subscription? or are you trying to migrate all of the subscriptions from one account to another?
Yeah I am trying to migrate few subscriptions to connected account
are they on your platform account or on another account?
yes they are on platform account
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
ok and how can I confirm the subscription immediatly without any user's action. I willl be cloning payment methods as well. Can I set cloned payment method id to the subscription?
yes exactly
what value should I put in payment_behavior property?
charge_automatically
but the api doc says only these values:- allow_incomplete
default_incomplete
error_if_incomplete
pending_if_incomplete
sorry my bad ๐คฆ I thought you were asking about collection_method
I think since you're passing a PM it doesn't really matter if you keep the default_incomplete or allow_incomplete
oh then maybe I can skip this property
๐ stepping in here as tarzan needs to step away
Yes the default is allow_incomplete which will attempt the first charge on creation
That is likely what you want
No I don't want to charge the customer when I create it
I just want to set the cloned payment method Id to it so that it will be charged when it is due
Yeah that's fine. It would work the same if you aren't going to generate an initial Invoice on creation
ok thank you and is DefaultPaymentMethod the correct property to set cloned payment method id?
the payment method that the subscription should ideally use
Yep
OK Thank you so much.