{"repo":"braintree/braintree-web","free":true,"listed":false,"github":"https://github.com/braintree/braintree-web","clone":"git clone https://github.com/braintree/braintree-web.git","description":"A suite of tools for integrating Braintree in the browser","language":"JavaScript","stars":454,"topics":["braintree","javascript","payments"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"braintree-web A suite of tools for integrating Braintree in the browser. This is the repo to submit issues if you have any problems or questions about a Braintree JavaScript integration. For a ready-made payment UI, see Braintree Web Drop-in. Install Usage For more thorough documentation, visit the JavaScript client SDK docs. If you are upgrading from version 2.x, take a look at our migration guide. Hosted Fields integration Advanced integration To be eligible for the easiest level of PCI compliance (SAQ A), payment fields cannot be hosted on your checkout page. For an alternative to the following, use Hosted Fields. For more examples, see the reference. Promises All the asynchronous methods will return a Promise if no callback is provided. Storybook Storybook is used for isolated component demonstration and integration testing. Setup Retrieve your sandbox tokenization key from your Braintree sandbox account and add it to .env . For full functionality, add the following to your .env file: The BRAINTREE JS ENV=development setting is required for: - Using local assets in Storybook instead of CDN files - Making hosted-fields iframe URLs load from local resources - Running integration tests with local builds Ensure the sandbox account used for testing is fully configured to use any payment methods that will be tested. Development server To run the Storybook development server Local build testing To test local development builds in Storybook instead of published CDN versions: This","default_branch":null,"files":null,"tree":[],"storefront":"/r/braintree","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/braintree/braintree-web/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}