#tt-subcription-schedule
1 messages · Page 1 of 1 (latest)
Hello do you have the ID of the invoice that was created this way? As far as I know cancelling the subscription should work the same prorations-wise. Not sure why you saw different behavior
Actually when i did't cancel inmediate subscription. I just set the subscription will cancel when my current phase in schedule end
Here my id sub : sub_1NfqAaIjZqRvLm0DtEzyjy8v
Thanks for the ID, checking in to this and will get back to you
Can you show me your code for setting up this cancellation?
Or do you have a request ID (req_123) from a time you set up a cancellation this way?
Now i will cancel again to this subscipriton. Because my bussiness is complex and method cancellation too
@stark wolf can you recheck again. I had cancelled this subscription
Thanks for doing that again. Will check your logs
The logic to add SubscriptionSchedulePhaseOptions is complex so i skip it and take two snapshot about it
And is the goal to charge the prorated ammount immediately and still let the subscription be active? Or do you also want the subscription to be cancelled immediately?
My business about method cancellation is ok. But when use want change to another subscription we want to charge the prorated ammount immediately.
Now i change subscription and you can see my information about invoice of sub. The invoice is pendding to 17 Step. We want it charge inmediately
This case happen when i change from yearly to monthly sub
When you are updating the schedule, you can pass proration_behavior to tell Stripe how to handle prorations if any should be created immediately https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-proration_behavior
Though I am not immediately sure how that would work in your scenario. Can you tell me more about what it looks like when you switch from a yearly to monthly sub?
When i sub subscription monthly with one phase in schedule -> Canncel -> Change to subscription yearly
tt-subcription-schedule
@wheat radish can you give a concrete example of what you're looking for with example dates. Like on August 1st I pay $100, then on Aug 15 I do X and expect to pay Y or similar?
Wait me one minute. I will capture screenshot
Try to explain it with words, no need for a screenshot
August 1st I pay $10 -> Update subscription schedule to cancel at 1 Sep -> change product at 5 Aug -> expect charge the prorated ammount immediately at 5 Aug
Okay so when you make that change on August 5, what do you do? Why are you using SubscriptionSchedule in this case?
Update subscription with SubscriptionService and use SubscriptionSchedule to remove old phases
I need SubscriptionSchedule to control some phase
Can you suggest me other way ?
I don't really get what you're trying to do. Why do you have a schedule at all here? Your concrete example looks like a normal Subscription to me