#Valaris-subscription
1 messages · Page 1 of 1 (latest)
When you created the Payment Method did you use a Setup Intent or Payment Intent w/ setup_future_usage set?
I did on the current subscription
but when creating a subscriptionSchedule I am not able to do that
Because this subscription is going to be released once the first subscription finishes
"Because this subscription is going to be released once the first subscription finishes" -> What do you mean by this?
I mean releasing the scheduled sub for it to become an actual working subscription. Or I understood it bad
when the mensual subscription is almost over the annual one is still a scheduledSubscription. When the mensual sub is done then I need to release the annual subscription to become active
Am I right ?
No, that's not how sub schedules work. What you should be doing is having a subscription schedule with two phases - the first current phase is on the monthly price and once that phase is over it transitions to the next phase which has the annual price
Oh I see ! I'll look into that thanks !
But what I don't get is how to confirm the âyment intent with subscriptionSchedule
Is it possible to do so ?
When you have a Subscription Schedule you still have a subscription - moving to the next phase just updates the underlying the Subscription and you'll still have an Invoice + Payment Intent that you can confirm
then here why is my paymentIntent null ?
but the status of my subscription is active
Ah! You were talking about Subscription Schedule creation from the start - I thought you were just talking about when you transition to the annual price
Yes at first I made a normal subscription and I had a paymentIntent. But what is confusing me is how I pass from the mensual sub to annual. I need to schedule when I want to transition right ? Cause at first I want mensual for an undefined time. And then if I change it to annual then I want it to change without having to confirm the 3D secure again
I should've clarified - you want to start of with a normal Subscription with your monthly price. Once that's been created and you have the payment method all set up you can create a schedule for that subscription (See https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#existing-subscription). Once you've got the schedule, you'd update it to add an additional phase for the annual price (https://stripe.com/docs/billing/subscriptions/subscription-schedules#updating)
Oh ok !! That's exactly what I was looking for thanks for your help ! and just one last question. On the screenshot there are iterations. But what if I want to pass from mensual to annual which I don't want to end for an unlimited time (until I either cancel or change sub again) how should I do it ? just don't put iterations ?
You can still pass iterations: 1 for your annual price - it's the last phase in the Subscription Schedule, so once that iteration is over the Schedule will release and the Subscription will continue on with the annual price
Oh great, thank you so much ! Now I'm good to go from all the infos you gave me. Thanks for your time, you're doing a great job 🙂
Happy to help!