#chhay - subscription

1 messages ยท Page 1 of 1 (latest)

mental ore
#

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?

forest lagoon
#

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?

mental ore
#

so for case 2 you'd set the billing cycle anchor to be Jul 1

forest lagoon
#

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?

stiff swan
#

HI ๐Ÿ‘‹ I'm stepping in for @mental ore. Give me a second to catch up?

forest lagoon
stiff swan
#

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

forest lagoon
#

will it create and charge immediately?

stiff swan
#

That depends on how you configure the the API call to update the subscription.

#

It will bill immediately if you set proration_behavior to always_invoice

forest lagoon
#

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.

stiff swan
#

Canceling isn't necessary. Can you explain again the use case you are trying to model here?

forest lagoon
#

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?

stiff swan
#

Not if you have saved the payment method to the customer.

forest lagoon
#

what if the user want to use different Card NUmber?

stiff swan
#

Then they need to provide the new card and you will save it as a payment method

forest lagoon
#

Ok thank you so much, let try it first

#

Have a good day, boss!