#weai-khan_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1432310722381217893
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
This is explained here: https://docs.stripe.com/expand/use-cases#stripe-fee-for-payment
That code will get you the fee associated with the payment, and then can do the 'net' sum in your code (e.g. payment amount, minus fee)
Thx @vocal rock
This is the property: https://docs.stripe.com/api/balance_transactions/object#balance_transaction_object-fee
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 want to double confirm when to call this stripe-fee.
Can I get the info charges before client make payment?
Because I trying now, the LatestCharge is null
No, only after the payment is confirmed
Then how the customer know get charged how much
Balance Transaction only exists once the funds have been processed. Prior to that, there's no automatic way to know the exact fee for a payment
So you mean client wont know get charged how much?
I don't know what you mean. Who's the customer?
The payer
Why would they need to know about the Stripe fee?
I want all the cost bare by payer
The amount param you set here on creation is what the customer says and was is debited from their card/account
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
The payer doesn't pay the Stripe fee, you (the Stripe merchant) does
It's taken automatically from payment amount. e.g. $5.00 - n (n being Stripe fee)
so if I want to do so, I need to calculate the stripe fee by my own?
Can I have the info of stripe fee estimation?
In-order that I can charge payer up-front
There's no easy way to do that no. Generally people just do a flat fee on top of their payment amount
Sorry to ask stupid question, do you have the flat fee examples most your customer do? Like 3% or % + fix amount?
I don't. But you can use our pricing in your country to inform that