Fork from the Magento Braintree 2.2.0 module by Gene Commerce for PayPal.
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.
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.
If your Kount and Braintree accounts have been linked, you can now configure Braintree with your Kount Merchant ID to enable the ENS webhook. Add the ENS URL to your Kount portal (more info in the configuration options) and any orders that get flagged as "Review" or "Escalate" can be accepted or declined through Kount. The ENS webhook in Magento will pick up this status change and handle the Magento Order accordingly. More information available here.