If you have any project questions, concerns, or contribution ideas, join our #pwa Slack channel. Find out how to create an account by visiting Community Resources

Braintree integration

Braintree is a payments platform for e-commerce companies. It allows websites to accept credit card payments online and within mobile applications.

Checkout integration

Braintree integration is accomplished using the Braintree Drop-in.

Filename Importance
braintreeDropin.js Hooks the Web Payments and Payment Request API to the Braintree Drop-in

See the Braintree Drop-in docs for more information.

Testing the feature

This feature is part of the checkout process. When asked for payment information, a credit card prompt appears.

Use the following mock data to pass validation and ensure a successful checkout.

Field Value
Cardholder Name Any
Card Number 4111 1111 1111 1111 or any from this list
Expiration Date Any future date
CVV Any number