#Runayeon
1 messages · Page 1 of 1 (latest)
Hi there, is you question about the difference between application_fee and transfer_data[amount]?
on_behalf_of and transfer_data are two different param. I assume you are creating destination charge https://stripe.com/docs/connect/destination-charges, in this case the platform is responsible for the stripe fee
yeah so i noticed transfer_data doesnt calculate the stripe fee
But I still don't understand your real ask, maybe you want to walk me through a use case so that I can understand you better?
Share with me a PaymentIntent ID if you have one
I guess what's happening is, I want to send money to a merchant/connect account
with transfer_data, when I send 100%. I get deducted the stripe fee so my balance goes to negative.
I want to do this without having to do X - .29X - .3 for the transfer_data_amount
https://stripe.com/docs/connect/destination-charges#flow-of-funds-app-fee this flow chart can help you understand better
So if you are using transfer_data[amount], you should substract the fee that you want to collect, as explained here https://stripe.com/docs/connect/destination-charges#transfer-amount
What if I don't know what to transfer yet
since for example
the fee depends on various factors, international card or not
I guess what I'm trying to ask is, is there a way to automatically calculate the stripe fee regardless of payment method
For context, I'm trying to charge 0 commission towards my merchants
There's no API to calculate the Stripe fee, you can estimate a fee first and refund app fee (https://stripe.com/docs/api/fee_refunds/create#create_fee_refund) later when the balance transaction is created.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Or you can consider using Direct Charge for Standard accounts, in which case the connected account is responsible for stripe fee
Okay so assuming I charge the fee to be .29x + .30 where x is the cost.
Later I find out it is actually .39x + .30 cause its an international card
How does creating an application fee refund work?
Are you saying I should charge to max amount for stripe fees and then refund the connect account?
I'd suggest you to charge a bit more so that you can cover your stripe fee, and refund the difference between the charged application fee and the actual stripe fee.
Is there a way to know the difference
You need to calculate it yourself. Since the application fee is known (you specify it), you can get the stripe fee from the balance_transaction object (https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-fee_details)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
From what it seems, it may be a lot easier to just specify the connect id. https://stripe.com/docs/connect/direct-charges
Is this what you would recommend?
Yes, I recommended this earlier -> Or you can consider using Direct Charge for Standard accounts, in which case the connected account is responsible for stripe fee