dev-resources.site
for different kinds of informations.
How to end your test subscription end soon in Stripe
Published at
3/14/2024
Categories
stripe
testing
pastdue
payment
Author
vuongbui
I wanted to make the subscription status past_due
from trialing
. as soon as possible.
How did I do it?
- Create customer
- Create subscription (better without trial)
- If trial, update subscription with
trial_end = now
https://stripe.com/docs/api/subscriptions/update#update_subscription-trial_end (set trial_end = now).
- After the trial ends, it takes 1 hour for finalizing the invoice. You should finalize it with https://stripe.com/docs/api/invoices/finalize
Featured ones: