Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get transaction fee for charge result object (braintree credit card processing)

Tags:

braintree

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.

like image 515
Chris Muench Avatar asked Feb 15 '16 15:02

Chris Muench


1 Answers

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.

like image 86
jerry Avatar answered Oct 22 '22 10:10

jerry