#Zia-Chargeback

1 messages · Page 1 of 1 (latest)

forest parrot
#

Hi there, is it a question related to Stripe issuing ?

hasty nova
#

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 😦

forest parrot
#

By chargeback, do you mean the application_fee?

hasty nova
#

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

forest parrot
#

OK, so the question is more about how to adjust the application_fee for foreign cards. Am I right?

hasty nova
#

yes, you are right

#

in case we don't know where the buyer is from

forest parrot
#

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.

hasty nova
#

can you guide me how can I do that

#

will it be throw webhooks?

forest parrot
#

I don't think webhook is needed. Let me give you the flow

#
  1. Collect the paymentMethod from CardElement by calling stripe.createPaymentMethod()
  2. 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)
  3. Create a PaymentIntent with the app_fee that you calculated in Step 2, pass the paymentIntent clientSecret to the frontend
  4. Call stripe.confirmCardPayment to complete the payment.
hasty nova
#

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

forest parrot
hasty nova
#

thanks, I will have a try
and will connect again if required any thing else
once again thanks for your support

forest parrot
#

No problem!