#joshrogers_88113
1 messages · Page 1 of 1 (latest)
Hello! Are you referring to a model where every single month the donation would be a different amount? Or do you mean that the customer wants to be able to pick the amount when they start the subscription and it'll stay the same each time it's renewed?
Yes, the latter, they will initially set a monthly amount that they want to donate and we'll bill that monthly until they cancel.
Gotcha - and are you trying to use Stripe's hosted Checkout? Or are you planning to build your own checkout/payment page?
Hosted checkout is our preferred method
If you want to use hosted checkout, then what you'll need to do is have a landing page before they get redirected to Checkout where your customer can specify the amount they want to pay on a recurring basis. Then, you can create a Checkout Session for that specific amount
Maybe I am confusing things, sorry, I am new to the Stripe platform. It is the IFrame we're planning on using, not sure if that is considered your "hosted checkout". But are you saying that we can use a subscription and dynamically set its pricing upon checkout? Even if that pricing differs from the subscription product set up in the portal?
Not exactly - what I'm saying is that Checkout has a line_items.price_data parameter which would allow you to create an in-line price to be used for that Checkout Session. You can use it to specify whatever amount your customer has chosen. https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data
And that can be associated with a recurring monthly subscription? Do we need to set up the subscription + product in a specific way to facilitate that?
Yup, you can use that with a monthly subscription! It should work as long as you have a Product that you've created beforehand
Great, thank you for the prompt response!