#Shx-test-subs-renewal
1 messages · Page 1 of 1 (latest)
The best way to do this would be to create a Subscription with a very short trial or billing cycle anchor to force the renewal to happen quickly after creation
The minimum time is 1 day?
Ah, are you trying to do this through the dashboard? The dashboard has a minimum of 1 day, but the API doesn't have this limitation
I am using Stripe Checkout session
Ah, Checkout also has similar restrictions so your options are pretty limited there
I haven't tried this out, but after the Checkout Session you could try updating the created Subscription to set a shorter trial_end (https://stripe.com/docs/api/subscriptions/update#update_subscription-trial_end) and see if that works.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Oh ok thank you will try this
I have another question, is the Stripe checkout session and stripe billing portal auto-send receipt to customer's email?
If you want receipts to be automatically sent to your customers that's something you'd enable through the dashboard (https://dashboard.stripe.com/settings/emails)
I already enabled but I think this will work in a live mode, not in test mode?
Correct! Receipts are not automatically sent in test mode