#charlie
1 messages · Page 1 of 1 (latest)
Hi,
You need to implement this logic in your self, do the calculation of the fees and adjust your payments amounts, for example, according to which PaymentMethod is used, you can add fees to the PaymentIntent final amount.
Something like this:
https://stripe.com/docs/payments/finalize-payments-on-the-server?platform=web&type=payment#insert-custom-logic
So if i update the payment intent amount the fees will not adjust to the new amount?
So what im doing is getting the fee from latest_charge.balance_transaction and then updating the paymentintent
Hmm I'd be surprised if that works as the presence of the Balance Transaction object would indicate a successful payment, which at that point they're immutable
You need to follow the flow here, there's a specific application fee example: https://stripe.com/docs/payments/run-custom-actions-before-confirmation#update-application-fee
i havent tested it yet. thats why im double checking 🙂
i get page not found on that link :/
Ah yeah, it's in beta
ah. So theres no quick win flag to add the fee to the amount in the intent
Yeah there are other ways, like the link my colleague shared
But you'll need to calculate the fee amount and update the PI amount before you confirm the payment
and updating the amount will not trigger the pi to recaculate the fee on the new amount?
Yep, it will. That's something you need to account for: https://support.stripe.com/questions/passing-the-stripe-fee-on-to-customers
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.