#andrea-skuola-cancel-sub

1 messages ยท Page 1 of 1 (latest)

slate gyro
wheat thicket
#

so if i don't want to put manually the cancel_at period, but when the 2 installments has been paid I want the subscription to finish what I have to do?

slate gyro
#

You'd set end_behavior: 'cancel'

wheat thicket
#

so i need to use this object \Stripe\SubscriptionSchedule

#

and when I use this object \Stripe\SubscriptionSchedule I need to create the subscription before or this will create the subscription automatically?

slate gyro
#

That will create the Subscription for you yep

wheat thicket
#

at the moment I have created the subscriptions, in case of 2 monthly installments, putting "cancel at" at +2 months from the date on which subscription was created but now the subscriptions have been canceled without the second installment having been paid

#

maybe because the subscription expired in the morning while the installment would have charged in the afternoon?

indigo geyser
#

Hello ๐Ÿ‘‹
Stepping in here
Give me a moment to catch up and I'll respond as soon as I can ๐Ÿ™‚ Thanks

wheat thicket
#

thanks

#

have u read?

indigo geyser
#

instead of using cancel_at, you should be able to use iterations with a monthly price, right?

wheat thicket
#

yes

#

so I was wrong managing the installments only by cancel_at field and setting the interval monthly

#

without iterations

indigo geyser
#

cancel_at is quirky but you should be good to with iterations

wheat thicket
#

but my problem probably happened because the subscription expired in the morning while the installment would have charged in the afternoon (because they had the same expire date), so if I set the cancel_at field, if there are 2 installments, at +2 months +1week to be sure that the subscription does not expire before the installment is paid, i would be good?