#marekka-checkout subscription trial_end
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
actually there is https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-trial_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.
This was what I thought but I'm geting "Received unknown parameter: trial_period_days"
could you please share the request id? here's how you can find it https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_yAwio6xNyMVRVB
this is not the parameter I sent you, trial_period_days is not a parameter of Checkout Session
you should instead use subscription_data.trial_end
OK< let me try
Fatal error: Uncaught (Status 400) (Request req_es63lm7NyPuml8) Received unknown parameter: trial_end
Hi! I'm taking over this thread.
Looks like there's an issue with your code.
It's not trial_end: 1234, instead it's: subscription_data: { trial_end: 1234 }
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-trial_end
THink I found it - I need to use subscription_data array to pass trial_end ๐
Yes ๐
tHANKS
Happy to help ๐
May I ask how to force business to move away from Payment Sense and Start using Stripe ๐ ?
What do you mean? I don't know what Payment Sense is.
OK< nevermind ๐
Do I need to use Session to take user's away to Stipe to create Subscription?
Can't I just use Credit Card onsite widget?
There are two main ways to create subscriptions:
- With Checkout Sessions (recommended), this is covered here: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=checkout
- With Payment Element on your own website, this is covered here: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
Why Checkout Sessions is recommended?
Mainly because it's much easier to implement, and also Stripe spend a lot of time optimising this page for the best possible conversion.