PayPal Introduces Braintree JavaScript SDK v3

PayPal recently announced a new version (v3) of its Braintree JavaScript SDK. Braintree remains a core building block for PayPal users looking to accept Web payments through credit cards, 3D Secure, Apple Pay, Android Pay, PayPal accounts, and more. The latest version includes a number of improvements including reduced file size, greater flexibility, and a more. v3 is a modernized version of a highly used JavaScript SDK.

Many Web merchants have moved away from forms and form-based handlers. Prior versions of the SDK assumed form-based environments. To meet the needs of the modern Web, v3 was built to adapt to a wide variety of scenarios (including single-page apps with JavaScript-heavy checkout). No longer will merchants without a form-based environment need to hack together a workaround in order to use an SDK that assumes forms.

In addition to the modern feel, v3 includes a number of improvements. The Hosted Fields feature automatically formats card numbers and expiration dates which makes for easier text entry and reading. The Hosted Fields functionality has been open sourced. Additionally, file size is greatly reduced because v3 is now organized as a collection of separate components. Instead of consuming a single .js file, users can pick individual components as needed. The smaller file size should lead to lesser impact on load times.

Braintree has updated its docs along with explanations and examples for v3 and all of its APIs. A transition to v3 eases more advanced integrations, allows for quicker load times, provides more flexibility, includes Hosted Fields formatting, and removes the need for forms. Further, Braintree has open sourced v3 as it previously did with iOS and Android versions. Participate in the project at GitHub.  

Be sure to read the next Payments article: Microsoft Announces Preview Version of Payment Request API in Microsoft Edge