#sticks-checkout-pricingmodel
1 messages ยท Page 1 of 1 (latest)
Hello ๐
When you say
however my items are subscriptions with a variable price
do you mean each billing period has a different price based on lets say for example "usage"?
Can you explain a bit more about the subscriptions?
sure. We require a minimum amount for each plan, so it's a "pay what you feel is right" for each plan
so min 5 for one, min 10 for the other.. ect
each one has a product for it too, so we know which is which
sorry, still not on the same page
Would you mind sharing an example?
I think can either model usage-based or tiered pricing for these subscriptions (you won't need to create the PaymentIntent yourself in this case)
https://stripe.com/docs/products-prices/pricing-models#model-usage-based-pricing-on-stripe
https://stripe.com/docs/products-prices/pricing-models#tiered-pricing
We'd still like to be able to allow them to select what they want to pay, though.
is an example proudct
So with "pay what you want" in your context, does customer select how they wanna pay each month?
yes
Okay, one way you can implement this is by NOT using products/prices
1/ Let your customers to choose what they want to pay
2/ Create a customer
3/ Create a PaymentIntent for the customer + the amount they've selected + set setup_future_usage to off_session
4/ Use the clientSecret to render PaymentElement
5/ Collect PaymentMethod and confirm the Payment
For following months, when your customer chooses the amount they wanna pay
1/ Create an off_session PaymentIntent and charge the PaymentMethod
https://stripe.com/docs/payments/save-during-payment?platform=web#charge-saved-payment-method
The above approach does not involve using Stripe Billing
You're making API calls directly so you would need to make sure to run these charges on specific intervals
will try this and get back to you, thank you!
NP! ๐ Happy to help
@quaint hill hey, we've decided to use checkouts now, question, can user chosen prices be a subscription?
Pay what you want with checkout doesn't support recurring payments
https://stripe.com/docs/payments/checkout/pay-what-you-want