#Priyanka

1 messages ยท Page 1 of 1 (latest)

quartz plumeBOT
final bone
#

๐Ÿ‘‹ happy to help

#

it's not really possible

#

you would need to create a new one

autumn tapir
#

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

final bone
#

is it just one subscription? or are you trying to migrate all of the subscriptions from one account to another?

autumn tapir
#

Yeah I am trying to migrate few subscriptions to connected account

final bone
#

are they on your platform account or on another account?

autumn tapir
#

yes they are on platform account

final bone
autumn tapir
#

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?

final bone
#

yes exactly

autumn tapir
#

what value should I put in payment_behavior property?

final bone
#

charge_automatically

autumn tapir
#

but the api doc says only these values:- allow_incomplete
default_incomplete
error_if_incomplete
pending_if_incomplete

quartz plumeBOT
final bone
#

sorry my bad ๐Ÿคฆ I thought you were asking about collection_method

autumn tapir
#

๐Ÿ˜…

#

No I mean payment_behavior

final bone
#

I think since you're passing a PM it doesn't really matter if you keep the default_incomplete or allow_incomplete

autumn tapir
#

oh then maybe I can skip this property

scarlet vessel
#

๐Ÿ‘‹ 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

autumn tapir
#

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

scarlet vessel
#

Yeah that's fine. It would work the same if you aren't going to generate an initial Invoice on creation

autumn tapir
#

ok thank you and is DefaultPaymentMethod the correct property to set cloned payment method id?

#

the payment method that the subscription should ideally use

scarlet vessel
#

Yep

autumn tapir
#

OK Thank you so much.