#ApiDev234-checkout-custom-amount
1 messages · Page 1 of 1 (latest)
i haven't yet...
as per what i googled and searched about
stripe needs the products
and products can be of fixed amounts only
basically donations
is what i wanted
Got it, you can use the price_data parameter to create ad-hoc prices: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
what do i add in the product?
If you didn't have a prod_xxx ID you'd use product_data: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.