PayPalJS
Unofficial v2 wrapper for the PayPal API.
Getting Started
const paypal = new PayPal({ clientId: "", clientSecret: "", mode: "SANDBOX", }); paypal.authenticate((newPayPalInstance) => { })
The newPayPalInstance has to be used for following requests.
Invoicing
Methods Available:
paypal.Invoicing.createDraftInvoice(data) paypal.Invoicing.sendInvoice(invoiceId, data)
Contributing
Create a pull request on GitHub.