{"id":1279,"date":"2020-10-05T13:18:02","date_gmt":"2020-10-05T13:18:02","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/2020\/10\/05\/configure-braintree-payment-method-in-magento-2\/"},"modified":"2025-05-22T11:41:41","modified_gmt":"2025-05-22T06:11:41","slug":"configure-braintree-payment-method-in-magento-2","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/configure-braintree-payment-method-in-magento-2\/","title":{"rendered":"How to Configure Braintree Payment Method in Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Braintree is a subsidiary company of the world\u2019s biggest payment service provider, <a href=\"https:\/\/www.paypal.com\/in\/home\" target=\"_blank\" rel=\"noopener\">PayPal<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<h2 class=\"wp-block-heading western\">Steps to Configure Braintree Payment Gateway Method in Magento 2:<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Create an account<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Visit the official website of <a href=\"https:\/\/www.paypal.com\/us\/braintree\" target=\"_blank\" rel=\"noreferrer noopener\"><b>Braintree<\/b><\/a> and sign up.<\/p>\n\n\n\n<h3 class=\"wp-block-heading western\">Step 2: Configure Basic Settings:<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">1.  <strong>Login<\/strong> to Magento 2 store.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. Navigate to <strong>Stores &gt; Settings &gt; Configuration<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Expand <strong>Sales<\/strong> and choose <strong>Payment Methods<\/strong><br>If you have multiple sites running on Magento, in the upper-left corner, select Store View where you can configure.<br>To set the location of your business, by selecting Merchant Country.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. You will see <strong>Recommendation Solutions<\/strong>, in the Braintree section, click on Configure<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/10\/1.png\" alt=\"Braintree section to configure at Admin\" class=\"wp-image-10723\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">5. Configuring Braintree:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/10\/Basic-braintree-settings.png\" alt=\"Basic braintree settings\" class=\"wp-image-10724\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enter the Title to identify Braintree as a payment method during checkout<\/li>\n\n\n\n<li>Select the Environment that you want to use for Braintree transactions.\n<ul class=\"wp-block-list\">\n<li>Sandbox &#8211; For testing purpose<\/li>\n\n\n\n<li>Production &#8211; To allow customers to use the Braintree payment method.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Set Payment Actions:\n<ul class=\"wp-block-list\">\n<li>Authorise only: Approves the purchase and puts a hold on the funds.<\/li>\n\n\n\n<li>Authorise and Capture: Approves the purchase and immediately withdrawn from the customer\u2019s account.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Enter Merchant ID from your Braintree account.\n<ul class=\"wp-block-list\">\n<li>Login your Braintree account.<\/li>\n\n\n\n<li>Click on the Settings Icon at the right-top of the webpage.<\/li>\n\n\n\n<li>You will see a dropdown menu. Select Business option.<\/li>\n\n\n\n<li>Here is a merchant ID.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/10\/merchant-ID.png\" alt=\"merchant ID\" class=\"wp-image-10725\"\/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Enter Public Key from your Braintree account.\n<ul class=\"wp-block-list\">\n<li>Click on the Settings Icon at the right-top of the webpage.<\/li>\n\n\n\n<li>You will see a dropdown menu. Select API option.<\/li>\n\n\n\n<li>Here is a Public Key.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/10\/API-Keys.png\" alt=\"API Keys\" class=\"wp-image-10726\"\/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Enter Private Key from your Braintree account.\n<ul class=\"wp-block-list\">\n<li>Click on the Settings Icon at the right-top of the webpage.<\/li>\n\n\n\n<li>You will see a dropdown menu. Select API option.<\/li>\n\n\n\n<li>Click on View Private Key under the section API Keys<\/li>\n\n\n\n<li>Here is a Private Key.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/10\/new1.png\" alt=\"Braintree Private Key\" class=\"wp-image-10867\"\/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Set Enable this Solution to Yes.<\/li>\n\n\n\n<li>If you wish to enable PayPal as a payment option with Braintree, you can set to Yes.<\/li>\n\n\n\n<li>If you want to store the customer information securely, therefore, the customers will not have to rewrite payment information, set Vault Enabled to Yes.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Configure the Advanced Settings:<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/10\/Advanced-Braintree-Settings-1.png\" alt=\"Advanced Braintree settings\" class=\"wp-image-10864\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">1. <span style=\"font-size: revert; color: initial;\">Expand the <\/span><b style=\"font-size: revert; color: initial;\">Advanced Settings<\/b><span style=\"font-size: revert; color: initial;\"> section<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2.  <span style=\"font-size: revert; color: initial;\">Write down the <\/span><b style=\"font-size: revert; color: initial;\">Vault Title<\/b><span style=\"font-size: revert; color: initial;\"> that indicates where the customer card information is stored.<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. <span style=\"font-size: revert; color: initial;\">Enter your <\/span><b style=\"font-size: revert; color: initial;\">Merchant ID<\/b><span style=\"font-size: revert; color: initial;\"> from your Braintree account.<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. <span style=\"font-size: revert; color: initial;\">Set<\/span><b style=\"font-size: revert; color: initial;\"> Advanced Fraud Protection<\/b><span style=\"font-size: revert; color: initial;\"> to<\/span><b style=\"font-size: revert; color: initial;\"> Yes<\/b><span style=\"font-size: revert; color: initial;\">, if you want to use Braintree fraud protection for all the transactions. You need to enable Advanced Fraud Protection in the Settings\/Protection section.<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5. <span style=\"font-size: revert; color: initial;\">Set <\/span><b style=\"font-size: revert; color: initial;\">Debug<\/b><span style=\"font-size: revert; color: initial;\"> to <\/span><b style=\"font-size: revert; color: initial;\">Yes<\/b><span style=\"font-size: revert; color: initial;\">, if you want the system to save a log file of interaction between the store and Braintree.<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">6. <span style=\"font-size: revert; color: initial;\">Set <\/span><b style=\"font-size: revert; color: initial;\">CVV Verification<\/b><span style=\"font-size: revert; color: initial;\"> to <\/span><b style=\"font-size: revert; color: initial;\">Yes<\/b><span style=\"font-size: revert; color: initial;\">, 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.<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">7. <span style=\"font-size: revert; color: initial;\">Select <\/span><b style=\"font-size: revert; color: initial;\">Credit Card Types<\/b><span style=\"font-size: revert; color: initial;\"> based on your business requirement.<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">8. <span style=\"font-size: revert; color: initial;\">In <\/span><b style=\"font-size: revert; color: initial;\">Sort Order<\/b><span style=\"font-size: revert; color: initial;\">, enter the number to determine the in which Braintree appears when listed with other payment methods during checkout.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading western\">Step 4: Configure the Country Specific Settings:<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/10\/Country-Specific-Settings.png\" alt=\"Country Specific Settings\" class=\"wp-image-10730\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">1. <span style=\"font-size: revert; color: initial;\">In <\/span><b style=\"font-size: revert; color: initial;\">Payment from Applicable Countries<\/b><span style=\"font-size: revert; color: initial;\">, select All Allowed Countries or Specific Countries based on your business requirement.<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. <span style=\"font-size: revert; color: initial;\">Set <\/span><b style=\"font-size: revert; color: initial;\">Country Specific Credit Card Types, <\/b><span style=\"font-size: revert; color: initial;\">select the country and a type of credit card and click on add. Repeat the process for each country.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading western\">Step 5: PayPal Settings via Braintree<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/10\/Paypal-Settings-via-Braintree.png\" alt=\"Paypal Settings via Braintree\" class=\"wp-image-10736\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">1. Follow these steps to identify your PayPal via Braintree configuration:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enter the Title to identify Braintree\u2019s payment by PayPal option during checkout.<\/li>\n\n\n\n<li>Enter a descriptive Vault Title to identify where your customer card information is to be stored.<\/li>\n\n\n\n<li>In Sort Order, enter the number to determine the in which Braintree\u2019s PayPal option appears when listed with other payment methods during checkout.<\/li>\n\n\n\n<li>If you want to use a Merchant name other than the default once, enter the merchant name in Override Merchant Name.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">2. Set&nbsp;<strong>Payment Action<\/strong>&nbsp;based on your requirement.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Authorise only:&nbsp;<\/strong>Approves the purchase and puts a hold on the funds.<\/li>\n\n\n\n<li><strong>Authorise and Capture:&nbsp;<\/strong>Approves the purchase and immediately withdrawn from the customer\u2019s account.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/10\/payment-action.png\" alt=\"payment action\" class=\"wp-image-10737\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">3. In Payment from Applicable Countries and Payment from Specific Countries, select the countries based on your business requirement.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. Set Require Customer\u2019s Billing Address to yes, to require that customers provide a billing address.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/10\/payment-action-2.png\" alt=\"payment action\" class=\"wp-image-10742\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">5. If you want customers to allow edit shipping address entered during checkout, set Yes to&nbsp;<strong>Allow to Edit Shipping Address Entered During Checkout on PayPal Side.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">6. Set&nbsp;<strong>Debug<\/strong>&nbsp;to&nbsp;<strong>Yes<\/strong>, if you want the system to save a log file of interaction between the store and PayPal.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">7. Set&nbsp;<strong>Display on Shipping Cart<\/strong>&nbsp;to Yes, if you want to display a PayPal button in both the mini shopping cart and shopping page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">8. Set&nbsp;<strong>Display on Shipping Cart<\/strong>&nbsp;to Yes, if you want to display a PayPal button in both the mini shopping cart and shopping page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">9. Set&nbsp;<strong>Skip Order Review<\/strong>&nbsp;to Yes, if you want to bypass Order Review Step before the order is submitted.<\/p>\n\n\n\n<h3 class=\"wp-block-heading western\">Step 6: Configure the 3D Verification Settings<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/10\/3D-Secure-Verification-Settings.png\" alt=\"3D Secure Verification Settings\" class=\"wp-image-10732\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">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 \u201cVerified by VISA\u201d.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The transaction amount which is submitted for verification is checked against the amount that is sent for authorization during this process.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. The transaction amount which is submitted for verification is checked against the amount that is sent for authorization during this process.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Select the countries for 3D verification from Verify for Applicable Countries.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 7: Dynamic Descriptors<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Dynamic descriptors are sent on a per transaction basis and it explains what will appear on your customers&#8217; credit card statement for a specific purchase. These are not enabled by default.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Feel free to contact <a title=\"Braintree Support\" href=\"https:\/\/developer.paypal.com\/braintree\/help\" target=\"_blank\" rel=\"noopener noreferrer\">Braintree Support<\/a>, if the Dynamic Descriptors are not enabled.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enter the Dynamic Descriptor for the<b> Name, Phone, and URL<\/b> as per these guidelines.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. <span style=\"font-size: revert; color: initial;\">There are mainly two parts of <\/span><b style=\"font-size: revert; color: initial;\">Name<\/b><span style=\"font-size: revert; color: initial;\"> descriptors that are separated by an asterisk (*). For instance, Meetanshi*Magento<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The first part of the descriptors shows the company or DBA and the second part shows the product.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Basically, the length of the Meetanshi and Magento parts of the descriptors can be allocated in given ways within twenty-four characters.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Option 1: Meetanshi must be 3 characters, Magento may be up to 18 characters<\/li>\n\n\n\n<li>Option 2: Meetanshi must be 7 characters, Magento may be up to 14 characters<\/li>\n\n\n\n<li>Option 3: Meetanshi must be 12 characters, Magento may be up to 9 characters<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">2. <b style=\"font-size: revert; color: initial;\">Phone<\/b><span style=\"font-size: revert; color: initial;\"> descriptor must be given to ten to fourteen characters in length and only number, dashes, parentheses, and periods. For instance,<\/span><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><p align=\"left\">1111111111<\/p><\/li>\n\n\n\n<li><p align=\"left\">(111) 111-1111<\/p><\/li>\n\n\n\n<li><p align=\"left\">111.111.1111<\/p><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">3. The <b>URL<\/b> descriptors show your domain name and it should not be up to thirteen characters long. For instance, Meetanshi.com<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 8: Save Config<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When you complete configuration, click on <b>Save Config.<\/b><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s it. You are good to go with the Braintree payment method integration with Magento 2.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Appreciate our work by sharing this post on the Magento Community.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Braintree is a subsidiary company of the world\u2019s biggest payment service provider, PayPal. Braintree serves its services across 45 countries. It also supports 130 currencies&#8230;.<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-1279","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=1279"}],"version-history":[{"count":4,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1279\/revisions"}],"predecessor-version":[{"id":14663,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1279\/revisions\/14663"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=1279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=1279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=1279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}