#suchismita_52568
1 messages · Page 1 of 1 (latest)
Hi, let me help you with this.
We have our own Pricing Table, you can see if this fits your needs: https://stripe.com/docs/payments/checkout/pricing-table
I actually had a look into Strip's Pricing Table. However i did not find it useful as our pricing scenario is bit different. We have some calculations to get the total amount for the user. Please suggest any other way. Thank You
You can then create a Checkout Session yourself when the customer clicks selects an option from your table: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout
You can use price_data to set a custom amount for each Session: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-unit_amount
Can you help me here to understand user is choosing the price value from UI and for this how can we set custom amount for each session?
I read the same in the document. I got confused exactly in this point. Please help me here
For that you can set the price_data.amount parameter instead of price when you create the Checkout Session on your backend.
Thank You for your help. Let me try it. I would come back to you if i need more help for the same
Happy to help.