Chris Muench
Chris Muench

Reputation: 18318

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

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.

Upvotes: 8

Views: 1433

Answers (1)

jerry
jerry

Reputation: 312

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.

Upvotes: 2

Related Questions