capacitor-braintree
A Capacitor plugin for the Braintree mobile payment processing SDK (forked from https://github.com/sumbria/capacitor-braintree)
Installation
$ npm i capacitor-braintree
iOS configuration
Add the following in the ios/App/App/info.plist
file:
CFBundleURLTypes CFBundleURLName capacitor-braintree CFBundleURLSchemes {Bundle Identifier}.payments
More information can be found here: https://developers.braintreepayments.com/guides/paypal/client-side/ios/v4
Important:
Code "ios/Plugin/Plugin.swift" was modified (see source code comments)
Android configuration
android/app/src/main/java/[..]/MainActivity.java
addcom.cubytes.braintree.BraintreePlugin.class;
android/app/src/main/AndroidManifest.xml
android/build.gradle
...implementation 'com.braintreepayments.api:braintree:3.9.0'implementation'com.braintreepayments.api:drop-in:4.5.0'
Useful links: Cordova version (unmaintained): https://github.com/engineerapart/cordova-plugin-braintree
Here original demo: https://github.com/braintree/braintree-android-drop-in/tree/master/Demo
Official documentation https://developers.braintreepayments.com/guides/drop-in/setup-and-integration/android/v3 https://developers.braintreepayments.com/guides/drop-in/overview/android/v3
Usage
;...;braintree.setToken.then.catch;