To setup the project and install the required dependencies please follow the steps outlined here. The plugin adds 2 files that need to be used in your project cdv-plugin-paypal-mobile-sdk.js and paypal-mobile-js-helper.js.
cdv-plugin-paypal-mobile-sdk.js is a wrapper around the SDK and provides access to the
PayPalMobile object. By adding paypal-mobile-js-helper.js you get access to
PayPalConfiguration which is needed for the client’s configuration.
A basic example implementation can be found here. The example showcases both the usage of simple PayPal payments and our newly added Future Payments which authorize multiple payments.
Found any issue or just have general feedback? We’d love to hear about it over here!