#andrea-skuola-cancel-sub
1 messages ยท Page 1 of 1 (latest)
You'd need to calculate that yourself. The better option is to use scheduling: https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#installment-plans
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?
You'd set end_behavior: 'cancel'
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?
That will create the Subscription for you yep
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?
Hello ๐
Stepping in here
Give me a moment to catch up and I'll respond as soon as I can ๐ Thanks
instead of using cancel_at, you should be able to use iterations with a monthly price, right?
yes
so I was wrong managing the installments only by cancel_at field and setting the interval monthly
without iterations
cancel_at is quirky but you should be good to with iterations
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?