I would like to get the fee amount for a credit card transaction for braintree. Is there a way to get this?
$fee = $charge->transaction->serviceFeeAmount;
I was looking at:
https://developers.braintreepayments.com/reference/response/transaction/php#service_fee_amount
But this doesn't appear to be the fee I am looking for.
I am looking for the 2.9% + .30 fee. I know I can calculate it based on amount; but my first 50k is free and I don't want to change code when this switch happens.
Full disclosure: I work at Braintree. If you have any further questions, feel free to contact support.
That fee is not part of the braintree api. The reports would have that kind of information and I would contact support with any report related questions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With