Reputation: 18318
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