'application_fee_amount' => calculateAppFee($json_obj->amount),
'transfer_data' => [
'destination' => 'acct_xxxxxxxx',
],
--
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.
Hello,My usual recommendation when someone asks this question is to avoid building your entire pricing model based on Stripe's especially in countries with multiple pricing schemes like this. While it's easy to say for me, I do believe it avoids those issues as you can't have your pricing be Stripe's pricing on top of your email provider's pricing and your cloud provider's pricing, etc. While you can take fees to cover exactly what Stripe would, it won't allow you to plan for future fraud or disputes. For example where there might be an extra $15 fee for each charge that is disputed and that you lose and need to cover. In that world, it is better to plan your pricing in a way where the domestic or international pricing doesn't affect your own bottom line directly.With that said, you could determine whether the pricing applied will be domestic or not by creating the PaymentMethod upfront client-side and then modifying your application fee amount based on that information server-side. This would require extra API requests though so it might not be a good fit depending on how many payments you might be accepting in parallel. Alternatively you could take a larger share of the fee and partially refund it based on what fee Stripe really took by creating a refund [1] after the fact. While not the best experience on reconciliation it could potentially solve your problem.I hope this helps unblock you though!Best,Remi
On Mon, Mar 15, 2021 at 4:09 PM SJW <shanno...@gmail.com> wrote:
I have integrated Stripe and am playing with Connected Accounts.--I have successfully used the destination to pass the funds onto a connected account and pass back an application fee:
'application_fee_amount' => calculateAppFee($json_obj->amount),
'transfer_data' => [
'destination' => 'acct_xxxxxxxx',
],The application fee is calculated based on the purchase amount however, the stripe fees are variable depending on what card is being used.Given there is no way for me to determine what type of card is being used, how do I determine the `application_fee_amount` without knowing what Stripe will take?I calculated using the domestic fee $0.30 + 1.75% BUT, when testing, the test card is a USA card which is an international card which calculates at $0.30 + 2.9% (effectively leaving me 1.15% out of pocket)
thanks
To unsubscribe from this group and stop receiving emails from it, send an email to api-d...@lists.stripe.com.
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.
That's definitely good feedback and something I've heard before from other developers but it's surprisingly not as common as you would assume.We do have a way to add your fee onto whatever we charge on our end and this is done by using what we call Direct Charges [1]. This flow of funds is only recommended for platforms with Standard accounts but it does fit what you are looking for and is more common for platforms that add a service on top of Stripe. On the other hand, platforms using destination charges [2] more often build their own feature but with Stripe hidden or white labeled and in that case this flow is not yet possible though it's definitely nothing we talked about before. I'll flag internally though as something that we should continue re-evaluating more often!
To unsubscribe from this group and stop receiving emails from it, send an email to api-d...@lists.stripe.com.
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.