#Vish
1 messages · Page 1 of 1 (latest)
Hi 👋 to do this you would need to create add an entry in line_items to represent that portion of the payment:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items
Something like this for Service charge: https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-shipping_options
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
@obsidian lintel, the patform fees is 10% of the total transaction. How can we create line_items, transaction wise?
I cannot create new price object for every transaction
Yes, they would need to be created for each transaction.
I don't think what you're after is achievable then, but could you try articulating the flow that you're trying to accomplish? Maybe I'm misunderstanding what you're looking to do.
Sure...let me try to explain it better
We are a platform that have a lot of connect accounts. Lets call one of the connect accounts as 'CA1'. Now 'CA1' is selling a product for $100. Out of this, we(the platform) will charge 7.1% + 20¢ and Striep will charge 2.9% + 30¢. This means out of the $100, CA1 gets $89.50, we(the platform) gets $7.30 and Stripe gets $3.20. Now 'CA1' wants to get all of $100 and show the $10.50 as extra service charge that user should pay. This will be shown on the checkout page just as a shipping rate is shown. Is this possible?
They want to show it here where the tax section is shown on the left
No, that is not possible. It is possible to increase the amount that the customers are charged so the Connected account receives more, but the math to do so is a bit complicated.
You can look at this as an example of how to calculate prices to pass the Stripe fees onto customers, but you'll need to do similar calculations for the application fee first, and then again for the Stripe fee:
https://support.stripe.com/questions/passing-the-stripe-fee-on-to-customers
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.
ok...let me talk to the customers. Can you keep this thread open for a while? Thanks