loopback-component-paypal
Installation
$ npm install --save loopback-component-paypal
Usage
Define new datasourc configuration for your PayPal account (file datasources.json)
"paypal": "clientID": "CLIENT_ID" "clientSecret": "CLIENT_SECRET" "mode": "sandbox" "payment": "intent": "sale" "redirect_urls": "return_url": "return_url" "cancel_url": "cancel_url" "payer": "payment_method": "paypal"
Define new model in file model-config.json with datasource paypal
"PayPal": "dataSource": "paypal" "public": false
use model PayPal
in your application:
PayPalpayment;
License
MIT © Matteo Padovano