Hello fellow bubblers
i need a help with a scenario where i have a user subscribed to a monthly plan in stripe. when he tries to change the subscription to the yearly plan or visa versa i want them to change it only when the current subscription period ends.
so i am assuming to set up a webhook customer.subscription.deleted when this webhook hits and user want to upgrade or downgrade subscription i will call the stripe plugin action “subscribe user to the plan”. which has payment_behaviour. if i keep error if incomplete it does not create a subscription.
so i need a help with it. what should be the ideal workflow to manage it and how to manage payment while user is offline and it create a subscription when the period ends automatically while user is offline.
thank you 