+92-301-1000201 [email protected]
14 views

Braintree is a subsidiary company of the world’s biggest payment service provider, Paypal.

Braintree serves its services across 45 countries. It also supports 130 currencies. The payment gateway is designed to provide a seamless shopping experience by offering quick payment services.

Also, it is the best choice for E-commerce stores as it allows accepting payments from Paypal, credit and debit card and popular wallets like Apple Pay and Google Pay.

Steps to Configure Braintree Payment Gateway Method in Magento 2:

1. Create an account

Visit the official website of Braintree and sign up.

2. Configure Basic Settings:

  1. Login to Magento 2 store.
  2. Navigate to Stores > Settings > Configuration
  3. Expand Sales and choose Payment Methods
    If you have multiple sites running on Magento, in the upper-left corner, select Store View where you can configure.
    To set the location of your business, by selecting Merchant Country.
  4. You will see Recommendation Solutions, in the Braintree section, click on Configure
    How to Configure Braintree Payment Method in Magento 2 1Configuring Braintree:
    Basic braintree settings

    1. Enter the Title to identify Braintree as a payment method during checkout
    2. Select the Environment that you want to use for Braintree transactions.
      1. Sandbox – For testing purpose
      2. Production – To allow customers to use the Braintree payment method.
    3. Set Payment Actions:
      1. Authorise only: Approves the purchase and puts a hold on the funds.
      2. Authorise and Capture: Approves the purchase and immediately withdrawn from the customer’s account.
    4. Enter Merchant ID from your Braintree account.
      merchant ID

      1. Login your Braintree account.
      2. Click on the Settings Icon at the right-top of the webpage.
      3. You will see a dropdown menu. Select Business option.
      4. Here is a merchant ID.
    5. Enter Public Key from your Braintree account.
      API Keys

      1. Click on the Settings Icon at the right-top of the webpage.
      2. You will see a dropdown menu. Select API option.
      3. Here is a Public Key.
    6. Enter Private Key from your Braintree account.Braintree Private Key
      1. . Click on the Settings Icon at the right-top of the webpage.
      2. You will see a dropdown menu. Select API option.
      3. Click on View Private Key under the section API Keys
      4. Here is a Private Key.
    7. Set Enable this Solution to Yes.
    8. If you wish to enable Paypal as a payment option with Braintree, you can set to Yes.
    9. If you want to store the customer information securely, therefore, the customers will not have to rewrite payment information, set Vault Enabled to Yes.

3. Configure the Advanced Settings:

Advanced Braintree settings

  1. Expand the Advanced Settings section

  2. Write down the Vault Title that indicates where the customer card information is stored.

  3. Enter your Merchant ID from your Braintree account.

  4. Set Advanced Fraud Protection to Yes, if you want to use Braintree fraud protection for all the transactions. You need to enable Advanced Fraud Protection in the Settings/Protection section.

  1. Set Debug to Yes, if you want the system to save a log file of interaction between the store and Braintree.

  2. Set CVV Verification to Yes, the customers need to add a three-digital number before making a payment. Before setting this option to Yes, make sure you enable AVS and/or CVV in the Settings/Processing section of your Braintree account.

  1. Select Credit Card Types based on your business requirement.

  2. In Sort Order, enter the number to determine the in which Braintree appears when listed with other payment methods during checkout.

4. Configure the Country Specific Settings:
Country Specific Settings

  1. In Payment from Applicable Countries, select All Allowed Countries or Specific Countries based on your business requirement.

  2. Set Country Specific Credit Card Types, select the country and a type of credit card and click on add. Repeat the process for each country.

5. Paypal Settings via Braintree
Paypal Settings via Braintree

  1. Follow these steps to identify your Paypal via Braintree configuration:
    1. Enter the Title to identify Braintree’s payment by Paypal option during checkout.

    2. Enter a descriptive Vault Title to identify where your customer card information is to be stored.

    3. In Sort Order, enter the number to determine the in which Braintree’s Paypal option appears when listed with other payment methods during checkout.

    4. If you want to use a Merchant name other than the default once, enter the merchant name in Override Merchant Name.

  2. Set Payment Action based on your requirement.

    1. Authorise only: Approves the purchase and puts a hold on the funds.

    2. Authorise and Capture: Approves the purchase and immediately withdrawn from the customer’s account.
      payment action

  1. In Payment from Applicable Countries and Payment from Specific Countries, select the countries based on your business requirement.

  2. Set Require Customer’s Billing Address to yes, to require that customers provide a billing address.
    payment action

  1. If you want customers to allow edit shipping address entered during checkout, set Yes to Allow to Edit Shipping Address Entered During Checkout on PayPal Side.

  2. Set Debug to Yes, if you want the system to save a log file of interaction between the store and Paypal.

  3. Set Display on Shipping Cart to Yes, if you want to display a Paypal button in both the mini shopping cart and shopping page.

  4. Set Display on Shipping Cart to Yes, if you want to display a Paypal button in both the mini shopping cart and shopping page.

  5. Set Skip Order Review to Yes, if you want to bypass Order Review Step before the order is submitted.

6. Configure the 3D Verification Settings
3D Secure Verification Settings

  1. Set 3D Verification to Yes, if you want to add a verification step credit cardholder customers that are enrolled in a verification program such as “Verified by VISA”.

    The transaction amount which is submitted for verification is checked against the amount that is sent for authorization during this process.

  2. The transaction amount which is submitted for verification is checked against the amount that is sent for authorization during this process.
  3. Select the countries for 3D verification from Verify for Applicable Countries.

7. Dynamic Descriptors

Dynamic descriptors are sent on a per transaction basis and it explains what will appear on your customers’ credit card statement for a specific purchase. These are not enabled by default.

  1. All the descriptors given below are used to identify purchases on customer credit card statements. It is possible to reduce the number of chargebacks by clearly identifying the company that is associated with each purchase.

    Feel free to contact Braintree Support, if the Dynamic Descriptors are not enabled.

  1. Enter the Dynamic Descriptor for the Name, Phone, and URL as per these guidelines.

    1. There are mainly two parts of Name descriptors that are separated by an asterisk (*). For instance, Meetanshi*Magento

      The first part of the descriptors shows the company or DBA and the second part shows the product.

      Basically, the length of the Meetanshi and Magento parts of the descriptors can be allocated in given ways within twenty-four characters.

      Option 1: Meetanshi must be 3 characters, Magento may be up to 18 characters
      Option 2: Meetanshi must be 7 characters, Magento may be up to 14 characters
      Option 3: Meetanshi must be 12 characters, Magento may be up to 9 characters

    1. Phone descriptor must be given to ten to fourteen characters in length and only number, dashes, parentheses, and periods. For instance,

      1. 1111111111

      2. (111) 111-1111

      3. 111.111.1111

3. The URL descriptors show your domain name and it should not be up to thirteen characters long. For instance, Meetanshi.com

8. Save Config

When you complete configuration, click on Save Config.

That’s it. You are good to go with the Braintree payment method integration with Magento 2.

If you have questions regarding this tutorial, feel free to ask in the Comments section below.

I would like to solve your problem.

Appreciate our work by sharing this post on the Magento Community.

Thank you.

Share This

Share this post with your friends!