#mindsetinmeta
1 messages · Page 1 of 1 (latest)
Hi there, which Stripe API are you using to charge a tip? Is it a question related to Terminal?
create a checkout session
So you want the customer to specify a tip in the checkout page?
the amount of the tip is pre-calculated and the buyer can pick one of them
like 5%, 10%, or 15%
The checkout page doesn't have a built-in tipping feature, so the workaround is to include another price with custom_unit_amount (https://stripe.com/docs/api/prices/create#create_price-custom_unit_amount) in the checkout session's line_items.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I can only help with technical questions, please reach out to Stripe support https://support.stripe.com/contact if you have a fee-related question.
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
is it possible to give a default value for the custom_unit_amount?
never mind
I found the documentation
thanks
Yes, you can set a default amount