#mickey_api
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/1329184072504709121
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there! Could you explain a little further about what your overall goal is here? Do you want to accept a payment on Stripe-hosted UI?
So right now we're just looking at stripe as a potential move. We're waiting for some sales reps to come back from a conference so we can talk to them, but we're just checking out the basics right now.
We are fully integrated with another payment provider which we are looking to potentially get off of.
We run a donation site where someone can come in and say they want to give $17 to let's say football or they want to give $12 to hockey or they want to combine a football and hockey donation of random amount.
I was really hoping to use the stripe option where it sends the information onto a form that is hosted on your side and then we don't have to worry about PCI requirements. However, looking at that particular one, it means that I have to create a product and that product needs a price and then I would pass those products in to make up the donation.
I do know that there is a option to let the person put in the amount but I'm looking to fill that in by default
So it sounds like you're interested in Stripe Checkout - which is the hosted option - and what you could do is pass the price_data parameter when creating Checkout Sessions to define the amount. However, this will create a Price object each time, but if you aren't trying to manage a product catalogue, perhaps that's fine with you
And then there is an option to let the customer choose what to pay, as you mentioned. Those docs are here: https://docs.stripe.com/payments/checkout/pay-what-you-want
but the pay-what-you-want model only supports a single line item / price
Ok I thought it would be something like that (price_data). That at least gives me something to start looking at while we wait. thank you for your reply
Yep! Happy to help