#manish-pm-fee
1 messages · Page 1 of 1 (latest)
Hello
Yes you can do that using the .on(change handler (https://stripe.com/docs/js/element/events/on_change?type=paymentElement#element_on_change-handler-value) so that you know which Payment Method Type is selected, but you have to calculate the fees yourself at this point.
The tricky thing here is that the fees will vary based on the location of your customer as well -- international cards have a different fee
So if you are worried about that, then you likely want this flow: https://stripe.com/docs/payments/build-a-two-step-confirmation
With that flow you create the PaymentMethod first, which you can inspect, and then show a fee calculation before confirming
Ok. Thanks for your promopt response and I agreed with your notes. So does this means, we have to manually calculate fees in code based on selected payment method?
This solution we are developing for US market. But yes, people around the world can make a payment with internatioanl cards or other methods too.
Yes you would need to perform the calculation yourself -- our API doesn't return the fee amount prior to a Charge being created.
ok. Perfect and thank you for your response.
We'll contact you if we have more questions on this. Once again, thank you