#mi0 - checkout amount
1 messages ยท Page 1 of 1 (latest)
Hello! Just starting a thread for you -- I'll review and respond as soon as I can ๐
I'm here I'll take thanks
This is not currently possible, no
or not lol
Too fast (or slow reading on my part)
๐
I should clarify, you cannot allow the customer to enter the amount in Checkout but you can send a custom amount when creating the checkout session before redirecting the customer there
The price_data parameters of the line_items allow you to set this as needed on the session at creation time:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-unit_amount
yes, thats exactly what I wanted. I have a wordpress site so it has a PHP backend and html/javascript front end. my plan is to have the user enter an amount in the website on a form of sorts and then create a checkout session based on that amount that they enter.
follow up question: will the user still see the same checkout session I use for other products, will they be able to enter the name, phone #, address and payment details, etc?
I was going to use a plugin but would rather not. so now I need to figure our how to create my own plugin and use Stripe PHP library.. have you ran into any updated articles that can help with that or maybe someone who had a similar issue?
@winter bone yes it's all the same UI, just you configure the price to pay server-side before the redirect
we are working on custom amounts in Checkout too so hopefully once this ships you can switch to it!
really??? oh gosh, that would make my life easier! u don't happen to have a release date by chance my friend?
No firm timeline just yet but we're working on it
thanks guys. appreciate you all!