Billing Linux cPanel Windows Control Panel Client Voip ms sql webadmin ms sql backup mysql webadmin Server Status

Main Menu
  • How do I override the fee calculation for the Braintree module?

    No comments January 4th, 2018 1416

    By default, our Braintree Credit/Debit processing gateway module uses their standard rate of 2.9% + $0.30. If your merchant account uses these rates, you do not need to override the fee calculations.

    Create a file called fee.php and place in WHMCSROOT/modules/gateways/braintree with the following contents…

    <?php if (!defined('WHMCS')) exit('ACCESS DENIED');
    function braintree_override_fee()
        return ['rate' => 2.9, 'fixed' => 0.30];

    Replace the 2.9 value with your merchant account rate (EG 3.2), replace the 0.30 value with your merchant account fixed rate (EG 0.75). Save the file to the location specified above. Do not add any symbols such as % or $, use standard decimal places as shown above.

    Please note that this is affects ALL merchant accounts processed with the Braintree module, even if you have multiple merchant accounts / currencies defined.

    1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

No comments yet

Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Uptime 100%

MoneyBack Gurantee

Why Choose Us