The Braintree payment gateway is included in the Commerce core, and does not need a module to be enabled. It does need to be configured as a payment method.
Braintree is a PayPal subsidiary that allows you to accept payments with Credit/Debit Cards and digital wallets such as PayPal, Apple Pay, Android Pay and Bitcoin. It has no monthly fees, just transaction fees.
Creating the Payment Method
In the Commerce dashboard, to go Configuration > Payment Methods. Click the Add a Payment Method button and choose Braintree in the Gateway dropdown. Fill in the other fields and save.
After having saved the payment method, you'll get access to the Gateway Options for Braintree. These are:
- Public Key
- Secret Key
- Merchant ID
You'll likely need to create two payment methods; one for testing using your sandbox credentials, and one for live with the live credentials. Set the availability appropriately.
Locating your Credentials
- Login to your Braintree account or the sandbox
- Navigate to Account > My User in the top navigation
- Click View Authorizations towards the end of the page, under the API Keys, Tokenization Keys, Encryption Keys heading.
- Under API Keys, click Generate New API Key.
- Click View in the Private Key column. This gives you all the keys you need to copy to the Payment Method in Commerce.