#drakhaon
1 messages · Page 1 of 1 (latest)
I don't think so but I am double checking and will get back to you
Unfortunately it looks like Checkout does not support this at the moment, but I will put in feedback for this as I can definitely see the utility of showing a simplified Checkout page like that
Second question related to checkout, where can we choose to display option like upsell, free trial etc ?
And to bypass the current limitation, is it possible to create a subscription with our backend setting the price directly instead of using a priceId ?
Upsells are a configuration on Price objects
https://stripe.com/docs/payments/checkout/upsells
Subscription settings like free trials can be set via the subscription_data parameter when creating your checkout session
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-trial_end
And to bypass the current limitation, is it possible to create a subscription with our backend setting the price directly instead of using a priceId ?
You can specify a price like this, but it would be the same UI as far as I am aware. Unless you mean instead of multiple line items you just include one, that might get closer to what you are thinking of.
It was more something like: the pricing for this client is 75$, and for the other one it's 80$ and this us that calculate the price on our side and then use it on Stripe Checkout
Gotcha, you can definitely do that with the price_data parameter when creating these subscriptions
Though I don't know if you can do an upsell from a price_data price to another predefined one. I can look in to that if you are interested in doing so
Thanks, it would be nice to know if we can make an upsell like this too. Either by passing two price or something like that ?
Unfortunately it looks like there is not setting for this in the price_data parameter so it looks like custom prices do not support upsells like this https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_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.
I'm actually not seeing a setting for this on Price objects in the API, this may be a dashboard only setting at the moment https://stripe.com/docs/api/prices/object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ok thanks you for all these answer. Have a good day !