gene/module-braintree 4.0.9

Fork from the Magento Braintree 2.2.0 module by Gene Commerce for PayPal.





Requires (dev)









Braintree Payments

Module Magento\Braintree implements integration with the Braintree payment system.


This module overwrites the original Magento Braintree module, to provide additional features and bug fixes.

Available Payment Methods

  • Credit Card
    • Visa
    • Mastercard
    • Amex
    • Discover
    • JCB
    • Diners
    • Maestro
    • Restrictions apply.
  • PayPal
  • PayPal Credit
    • US and UK only. Restrictions apply.
  • Google Pay
  • Apple Pay
  • Venmo (US only)
  • ACH Direct Debit (US only)

Additional Features

M1 to M2 Stored Card migration tool

If you are looking to migrate to M2 and want to offer the best experience for existing customers by migrating their stored credit cards, this is now possible with the new console command.

To use the new command, ensure that - Your M1 database is online and accessible - Your M2 store is in Braintree Production mode - You have already migrated the customers from M1 to M2

Run the following command on your M2 server

bin/magento braintree:migrate --host=<HOSTNAME_OR_IP> --dbname=<DB_NAME>

You will be prompted for the DB Username and Password and after that, the tool will query your M1 DB, find any stored cards and locate them in your Braintree account (this is why you must run it with Braintree in Production mode). Any matching records that are found are then queried in your M2 database, and the card details* are stored for that customer.

* Credit Card information is stored by way of a token that matches a Vault record in Braintree. No sensitive card data is ever exposed.

Custom Fields

If you would like to add Custom Fields to your Braintree transactions, we provide an example module here that can be used to create a custom module for your store to add these fields.