#meisei81.subscription-cycle-testing
1 messages · Page 1 of 1 (latest)
Hey. What specifically are you trying to test? There's no direct way to force a subscription cycle, other than changing the billing cycle: https://stripe.com/docs/billing/subscriptions/billing-cycle
I want to know what's the time will the stripe renew the subscription
For example, a customer subscript our monthly product in 1st Jan 3am, and we will listening the next monthly subscription paid successfully event for update the customer expire date in our system
You can check the current_period_end field: https://stripe.com/docs/api/subscriptions/object#subscription_object-current_period_end
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
before the period end date coming, how many days the stripe renew the subscription advance?
It won't be renewed in advance of that date. That's the date when a new invoice will be created (and payment attempted) for the new cycle
but when the date coming, our system will forbid the customer to visit
so what should we do if stripe do not renew advance
You add to the current_period_end value to extend their access I guess
I assume you're relying on that to provision access to your service/product?
btw, stripe will attempt to pay the new cycle invoice automatically, right? the customer don't to pay by the invoice link.
That depends on how the subscription is configured. But that's the default behaviour, yes: https://stripe.com/docs/api/subscriptions/create#create_subscription-collection_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
"You add to the current_period_end value to extend their access" but the customer buy a monthly service and the deadline is coming so we forbid visiting our service.
we shouldn't provide the service for them
I'm not sure I understand what you're asking then. Can you elaborate on:
but when the date coming, our system will forbid the customer to visit
so what should we do if stripe do not renew advance
the customer subscript a monthly service, and when the current_period_end is up, we will not provide the service any more before the stripe renew the cycle
and you say the stripe will not renew advance of that date, so, when the date is coming, the customer will lost our service.
it's the thing happen in one special second.
Details of the cycle renewal process/events are here: https://stripe.com/docs/billing/subscriptions/overview#subscription-events
Generally the renewal will happen before the current_period_end value and you'll receive a customer.subscription.updated event with a new value