Configure a free trial without collecting payment detailsBeta
This feature is in beta. For early access, contact us at checkout-trials-beta@stripe.com.
Stripe Checkout lets you sign up customers for a free trial of a subscription service without collecting their payment details. At the end of the trial period you specify, use Stripe to configure a reminder email to collect a customer’s payment details.
Configure Checkout session
Create a Checkout Session with the following:
- A
subscription_data
dictionary with atrial_period_days
field set to the length (in days) you want your free trial to be. In this example, the trial period is 30 days. - The
payment_method_collection
field with a value ofif_required
. This tells Stripe that collecting payment information at checkout is optional.
Collect payment details when the trial is about to expire
Before the trial expires, collect payment details from your customer.
Configure your subscription to automatically send a reminder email when the customer’s trial is about to expire. You must comply with card network requires when offering trials. Learn more about compliance requirements for trials and promotion.
Next, select the Link to a Stripe-hosted page option so the reminder email contains a link for the customer to add or update their payment details. We don’t send free trial reminder emails in test mode. Learn more about how to manage free trial messages within the customer email.