#sticks-checkout-pricingmodel

1 messages ยท Page 1 of 1 (latest)

surreal hamletBOT
quaint hill
#

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?

rancid oriole
#

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

quaint hill
rancid oriole
#

is an example proudct

quaint hill
#

So with "pay what you want" in your context, does customer select how they wanna pay each month?

rancid oriole
#

yes

quaint hill
#

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

rancid oriole
#

will try this and get back to you, thank you!

quaint hill
#

NP! ๐Ÿ™‚ Happy to help

rancid oriole
#

@quaint hill hey, we've decided to use checkouts now, question, can user chosen prices be a subscription?

quaint hill