#chhay - subscription
1 messages ยท Page 1 of 1 (latest)
Hello! Just starting a thread for you -- I'll review and respond as soon as I can ๐
Can you try explaining what you're trying to do with an example? Do you have a particular subscription ID i can look at?
Hi boss,
I would like to explain the requirement here:
1- The userA subscribe the productA at price 10$/month on 01/Jun/2022 => expired on 01/Jul/2022
2- The userA subscribe the productA at same price again on 15/Jun/2022 => expired on 01/Aug/2022, not on 15/Jul/2022
How to achieve this kind of this use case?
You can read about setting the billing cycle anchors here: https://stripe.com/docs/billing/subscriptions/billing-cycle#new-subscriptions
but you can't set this beyond the natural renewal for the invoice, eg 1 month later
so for case 2 you'd set the billing cycle anchor to be Jul 1
but does it automatic charge immediately for case 2?
or it need to wait until 01/July to be charge?
and will it work for different kind of the price like 30$/3months?
HI ๐ I'm stepping in for @mental ore. Give me a second to catch up?
but you can't set this beyond the natural renewal for the invoice, eg 1 month later
Does it mean I can only set the renewal for the invoice lower or equal subscription plan (30$/3months), right?
Since I assume the price is a 1/month recurring price you won't be able to reset the billing cycle beyond say, July 15
how about the invoice?
will it create and charge immediately?
That depends on how you configure the the API call to update the subscription.
This is the relevant doc for that: https://stripe.com/docs/billing/subscriptions/upgrade-downgrade
It will bill immediately if you set proration_behavior to always_invoice
Ok let me try it
and one more question,
Do we need to cancel the current subscription?
Becoz in the frontend UI, we require the user to enter the Card Number again.
Canceling isn't necessary. Can you explain again the use case you are trying to model here?
I mean when the first subscription, we need to enter the Card Number in the frontend UI.
and after a while, the user want to subscribe the same Product again in order to extend the period length.
so we need to provide the UI for user re-enter the Card Number, right?
Not if you have saved the payment method to the customer.
what if the user want to use different Card NUmber?
Then they need to provide the new card and you will save it as a payment method