#roshe10_best-practices
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1343986768885583872
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- roshe10_api, 4 hours ago, 9 messages
No we only offer this for one-time payments
If you needed to implement for Subscriptions, you could first have a page on your site where the customer would enter an amount. Then, you could create a checkout session using inline pricing via: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-line_items-price_data-unit_amount
and what about the second requirement, where user would be able to choose whether he wants to "donate" monthly or one-off for the defined amount
That also needs to be on your page
it does not need to be checkout, is there some other product ?
Hi hi! Jumping in for my colleague. Let me just read back.
hi, thanks
My colleague was suggesting that decision would come before you load the Checkout page where the user can select one-off or repeating, and also the amount - and then you can feed that to Checkout (even if it's for subscriptions: https://docs.stripe.com/billing/subscriptions/build-subscriptions)
I appreciate it, but the thing is that I have only one button on my site, where I don't have any additional fields to manipulate with
so all needs to happen somehow within one btn click
that's why I'm asking for alternatives to do everything on checkout session
Unfortunately you can't do all that on Checkout. You might want to look at other tools that potentially work on top of Stripe that do provide that functionality though.
what about having multiple line items in checkout, where some would be one-off, other recurring ? is that possible
with predefined values, e.g. 5$ one off, 5$ recurring, etc
No, it either needs to be in payment or subscription mode. You need one more step in your process here to do what you want to do. Or one more button.
what about tiered/volumed pricing
I very much appreciate your trying to solve this with only the parts on the table, but 'payment' and 'subscription' are different modes that are set when the Session is created, so there's no way to do both/either/choose from within the same Checkout Session.
I appreciate your help as well, so just to confirm, there is no other product that can be used for this right ? potentially only custom checkout or embedded one ?
Of course! There isn't really any way that I'm aware of to do this with a single button, and with no server-side code. It's possible that there's a Stripe Partner that handles this though: https://stripe.partners/ (search for 'donation')
thank you
You're welcome! ๐