#timdab - custom checkout amount
1 messages ยท Page 1 of 1 (latest)
Hello, we have something like this on the roadmap but I don't think it is available yet. Let me see if I can find more details.
Great - thanks
Can you write in to our support team with your use case? They may be able to help you here https://support.stripe.com/?contact=true
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Thanks - assuming it is possible to create a product with the price I want before creating the checkout_session - assuming this would mean that there would be alot of products that I would need to create ?
You can create one product and then create ad-hoc prices with your API call to create a Checkout Session https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-unit_amount
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Technically you don't even need the one product as you can specify that info in the product_data field of your line items
Thanks - I'll take a look at that
Just had one more question - is it possible to authorize a payment via a checkout session and via the API request that the payment is processed or cancelled at a later date
For one-off payments, yes. You can pass in manual to the payment_intent_data.capture_method param https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-capture_method
And that will place a hold on those funds. You can then follow this guide to capture or cancel that hold at a later date https://stripe.com/docs/payments/capture-later#capture-funds
Thanks - is this possible via the checkout session as well ?
Yes, my first link/message there is for setting that parameter in Checkout
Sorry - just saw this as well - thats helpful - thanks ๐