#Zia-Chargeback
1 messages · Page 1 of 1 (latest)
not actually issuing
we are using onBehalfOf
and we didn't know where the client is from so while creating checkouts we calculate the transfer amount bu calculating the minimum fee
and now we want charge back from seller if an international buyer purchases from the seller
as in that case stripe charge international fee, and currently our platform is paying that additional fee 😦
By chargeback, do you mean the application_fee?
let me explain a little more
our platform is US based
seller is from Australia
a buyer comes to buy from australian seller (100 AUD)
we created a checkout by calculating minimum stripe fee for seller i.e. 1.75% + 0.3 (total amount after fee: 102.05 after adding 2.05 as fee)
buyer inserted a european card and get's charged 102.05
and stripe deducts 2.9% + 0.3 i.e. 3.2 as buyer is international
but as we were using on behalf we set the transfer amount to 100 after deducting 2.05, while creating the checkout
now we want 3.2-2.05 = 1.15 back from seller
OK, so the question is more about how to adjust the application_fee for foreign cards. Am I right?
OK. The problem is that you can't update a Checkout Session. so you need to use PaymentIntent API with CardElements which allows you to adjust the app_fee.
I don't think webhook is needed. Let me give you the flow
- Collect the paymentMethod from CardElement by calling stripe.createPaymentMethod()
- Check the card payment method that you obtained in Step 1, and determine the app_fee based on the card country (https://stripe.com/docs/api/payment_methods/object?lang=python#payment_method_object-card-country)
- Create a PaymentIntent with the app_fee that you calculated in Step 2, pass the paymentIntent clientSecret to the frontend
- Call stripe.confirmCardPayment to complete the payment.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
to achieve this we need to change the front end and backend also
can't we do this just from backend
or if we can charge seller back, that will make our life easier
without disturbing the current flow
There's also an API call transfer reversal https://stripe.com/docs/api/transfer_reversals?lang=php, that allows the platform to reverse the transfer and move the fund from connected account to platform.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thanks, I will have a try
and will connect again if required any thing else
once again thanks for your support
No problem!