Jump to content

Braintree Gateway


Recommended Posts

Hi,

I'm looking for a developer to make Braintree integration with the latest version of WHMCS 7.10.

1. It has to support Tokenized Credit Card storage so that I don't have to worry about PCI-DSS compliance

2. WHMCS cron should be able to charge the card without CVV. 

3. Support for 3DSecure is optional.

Looking for quotes.

 

Thanks

Link to comment
Share on other sites

Here you go, but 2 things to bear in mind.

1. It doesn't use the Braintree drop in client Javascript code, so credit card details go to your server first, then (instantly) sent out to Braintree. Technically this means you need to be SAQ D compliant (the same as the ASPNix module)

2. It doesn't support 3D Secure (and unlikely to in the future)

I built this just to use in the transition period as I move over to Stripe 🙂

put the braintree.php file (zip root) in the /modules/gateway folder and if you want to use advanced fraud tools, put the hooks/braintree.php file in the /includes/hooks folder.

🙂

braintree.zip

Link to comment
Share on other sites

Argh I just realised I forgot to put the braintree library in the zip.

You can download it yourself and put it in a braintree folder in the modules/gateway dir, or wait for me to get home and I'll reupload 🤣

Edited by bendrop
Link to comment
Share on other sites

Love it! Thanks!

Was wondering is this DisplayName and Metadata necessary?

 

function braintree_MetaData() {

    return [

        'DisplayName' => 'Barintree Tokenisation Gateway Module',

        'APIVersion' => '1.1', // Use API Version 1.1

    ];

}

Link to comment
Share on other sites

14 hours ago, ForumApps said:

Love it! Thanks!

Was wondering is this DisplayName and Metadata necessary?

 

function braintree_MetaData() {

    return [

        'DisplayName' => 'Barintree Tokenisation Gateway Module',

        'APIVersion' => '1.1', // Use API Version 1.1

    ];

}

I don't think so, but I was just using the whmcs example framework from their git which does have that 😊

Link to comment
Share on other sites

  • 2 weeks later...
On 4/16/2020 at 12:50 PM, bendrop said:

Here's the updated zip with the braintree library.

So braintree.php and braintree folder in /modules/gateway

hooks/braintree.php in /includes/hooks

braintree.zip

Ok, probably a dumb question, I assume you keep all of the existing BrainTree files in modules/gateways/braintree and just copy these over the top of them or do you get rid of the exist JS files, etc?

Link to comment
Share on other sites

18 hours ago, ejmerkel said:

Ok, probably a dumb question, I assume you keep all of the existing BrainTree files in modules/gateways/braintree and just copy these over the top of them or do you get rid of the exist JS files, etc?

Yes, it's a direct replacement.

It's been alerted to me that CVV isn't working properly when adding a new card, but don't worry, I've found that problem, just waiting for one chap to confirm it works then I'll post the updated zip here.

If you don't want to wait, simply look in the /modules/gateways/braintree.php file and replace both occurrences of:

$params['cccvv']

with

$params['cardcvv']

 

Link to comment
Share on other sites

  • 2 months later...
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated