8

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.

Chris Muench
  • 17,444
  • 70
  • 209
  • 362

1 Answers1

2

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.

jerry
  • 312
  • 1
  • 5
  • 1
    Which report specifically? I don't see that listed in any of my sandbox reports at the moment. – Msencenb Aug 10 '16 at 20:23
  • It's really going to be different on a merchant by merchant basis. I would reach out to support. – jerry Aug 11 '16 at 15:15
  • 1
    "**that** fee is not part of the braintree api" - does **that** mean "2.9% + .30 fee." ? – wscourge May 14 '18 at 07:07
  • @wscourge that is correct, the "2.9% + .30" fee is not part of the api. – jerry May 16 '18 at 19:28
  • 2
    Thanks for your response. Any chance if you have some insights as if it will be part of the API? I recently wrote to the support and got the response that it is not part of the api *at this moment*. – wscourge May 17 '18 at 04:29
  • 4
    Unfortunately no, but we know it is something that our merchants are asking for, I'll make sure to relay this feedback. – jerry May 18 '18 at 14:57
  • Spongebob timecard: four years later... – Edwin Finch Oct 29 '22 at 11:21