Apr02


BrainTree Payment Gateway Integration image

BrainTree is a subsidiary of PayPal based in Chicago, it specialises in mobile and web payments for e-commerce websites.  Braintree emphasises its easy integrations, multiple payment method options (including PayPal and Venmo), simple pricing, security, and support.

Braintree provides businesses with the ability to accept payments online or within their mobile application. Its full-stack payment platform can replace the traditional model of sourcing a payment gateway and merchant account from different providers.

BrainTree have tonnes of features,  some of them are

  1. Globally available
  2. Seamless checkout
  3. Data security
  4. Fraud protection
  5. White-glove support
  6. Reporting
  7. Recurring billing
  8. 3D Secure
  9. Account Updater
  10. Third-party integrations

So now let's proceed to its integration.

 How to integrate BrainTree into my website

The most popular and efficient method for integration is Drop-in Payment UI. There are many plus points in Drop-in Payment UI.

  1. Easiest way to integrate with Braintree
  2. Pre-formatted payment form
  3. Can only collect information included on the payment form:
    • Credit card number
    • Expiration date
    • Postal code and CVV (when AVS and CVV rules are enabled in your Control Panel)
    • Android Pay (Android only; when Android Pay is enabled)
    • Apple Pay (iOS only; when Apple Pay is enabled)
    • PayPal account (when PayPal is enabled in your Control Panel)
    • Venmo account (mobile only; when Venmo is integrated into your app)
  4. Language support for 23 languages on iOS and Android; English-only for the web
  5. Helps you qualify for the SAQ A PCI compliance form.

Drop-in Payment UI can be implemented just by incorporating a script and adding a div markup.

<script src="https://js.braintreegateway.com/js/braintree-2.31.0.min.js"></script>
<script>
braintree.setup('CLIENT-TOKEN-FROM-SERVER', 'dropin', { container: 'dropin-container' });
</script>

 Client token is a randomly generated token generated by BrainTree API.

BrainTree API named as braintree/braintree_php can be downloaded from the resource given below.

Using this script and this API, you can integrate BrainTree into your application. For complete instructions, please refer to the video given below.

For source code and BrainTree documentations, please refer to the resources.


|0 |158

Ads By Google - Turn it Off

Visit Documentation

Visit Documentation

jQuery Library

Source Code

Ads By Google - Turn it Off

Leave a Comment


gfhdg