paypal-wrapper
Paypal-Wrapper is a NodeJS wrapper for the PayPal REST API.
Not only does it hit the API for you, it also has methods to help
build the complex objects we need to send to PayPal.
Pure wrapper and send object builder, responds with exactly what
the PayPal REST API will respond with.
Installation
npm i paypal-wrapper --save
Change your Access Token
1: Create a Payment
2: Execute a Payment
1: Create a Billing plan
2: Create a Billing agreementID
3: Create a Execute Billing Agreement
Methods
Payments - Create Payment
Reguires a Payment Object, and Callback
paypalWrapper.payments.payment.create(paymentObj, cb);
Payments - Get Payment
Reguires a Payment ID, and Callback
paypalWrapper.payments.payment.get(paymentID, cb);
Payments - Update Payment
Reguires a Payment ID, Ops Array, and Callback
paypalWrapper.payments.payment.update(paymentObj, cb);
Payments - Execute Payment
Reguires a Payment ID, Ops Array, and Callback
paypalWrapper.payments.payment.update(paymentObj, cb);