#fdc8cd4cff2c19e0d1022e78481ddf36
1 messages ยท Page 1 of 1 (latest)
One way I can think of is to have two price items (1) initial trial payment (2) monthly price
When you create a checkout session, you'd add those two prices into line_items, then set subscription_data[trial_end] to the actual start day of the subscription
It's simpler than your approach with one single integration
Hmm, that way during the checkout wont be displayed anything about "trial"?
I would like to avoid the checkout like this
Ah I see! It'll be something like this
Those 4 days wont be free tho ๐ User will pay for them in advance
If you don't wish to have trial or free words in the page, then I think option (2) is recommended
Also curious since I am migrating from PayPal, the approach there was to create a single product and dynamically change the price for subscriptions / initial payments. I assumed the Stripe approach is to create a price literally for everything since you dont pass in amounts but price_id's?
It's possible to create ad-hoc price when creating the subscription using price_data parameter instead of creating a price upfront: https://stripe.com/docs/api/subscriptions/create#create_subscription-items-price_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.