{"_id":"@bthn/paypal-rest-sdk","_rev":"2-8d82598266cd31c8a054f310531d316c","name":"@bthn/paypal-rest-sdk","dist-tags":{"latest":"3.0.0"},"versions":{"2.0.0-rc.2":{"name":"@bthn/paypal-rest-sdk","version":"2.0.0-rc.2","description":"SDK for PayPal Rest APIs","keywords":["paypal","rest","api","sdk"],"homepage":"https://github.com/paypal/PayPal-node-SDK","author":{"name":"PayPal","email":"DL-PP-NODEJS-SDK@paypal.com","url":"https://developer.paypal.com/"},"main":"index","directories":{"lib":"./lib"},"repository":{"type":"git","url":""},"engines":{"node":">=4"},"dependencies":{"braintreehttp":"0.4.0"},"devDependencies":{"chai":"^4.0.2","dirty-chai":"^2.0.0","eslint":"^2.7.0","eslint-config-braintree":"^1.0.0","mocha":"^4.1.0","nock":"^9.0.13","sinon":"^2.3.2"},"license":"MIT","scripts":{"lint":"eslint lib/","pretest":"npm run lint","test:unit":"mocha spec/unit --recursive -r spec/spec_helper","test:integration":"mocha spec --recursive --timeout 60000","test:payments":"mocha spec/v1/payments --recursive --timeout 60000","test:customerDisputes":"mocha spec/v1/customerDisputes --recursive --timeout 60000","test:billingPlans":"mocha spec/v1/billingPlans --recursive --timeout 60000","test:billingAgreements":"mocha spec/v1/billingAgreements --recursive --timeout 60000","test:invoices":"mocha spec/v1/invoices --recursive --timeout 60000","test:webhooks":"mocha spec/v1/webhooks --recursive --timeout 60000","test:vaults":"mocha spec/v1/vaults --recursive --timeout 60000","test:paymentExperience":"mocha spec/v1/paymentExperience --recursive --timeout 60000","test:identity":"mocha spec/v1/identity --recursive --timeout 60000","test:orders":"mocha spec/v1/orders --recursive --timeout 60000","test:sync":"mocha spec/v1/sync --recursive --timeout 60000","test":"npm run test:unit"},"gitHead":"2c9060a1b21756f697a8477eada9ff0777aeed72","_id":"@bthn/paypal-rest-sdk@2.0.0-rc.2","_nodeVersion":"11.0.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-e/SLlT2tBJlpBXvND+D7RW4X8Sjosx4KUVhOTdg65EMWejQSzMJOa5LWe8YV+/SldNAX8Z+RyZXpRr3AawNcUw==","shasum":"7cfa1351cf214889030719381b08a3b02e15f5d0","tarball":"https://registry.npmjs.org/@bthn/paypal-rest-sdk/-/paypal-rest-sdk-2.0.0-rc.2.tgz","fileCount":205,"unpackedSize":591104,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIdzhCRA9TVsSAnZWagAA1loP/jYp88RKb2PP1kaRoeUu\n1GGIaz2w6hF45xUFsYsMxgEvY87w5A2LwIb9Sv0b0uC+M1wF1vJ2v/MVX0bp\nan60F+RGlT9/qNABxr+kfG+JMBZ0P2aGUKoxn0tuu/6MMT2cB17H3MCZTK0P\n27s6jUuC26+Fep/WICTosj7R7MYy/5YzNlT5hjYZOReKBbkNG5F+YxlGgRFW\npPz/1maNE11nLw9Fb1mcXkjMQqivGSwiC5NJZmseYVuAEQ3VtAPq9SkV1m6j\nkaiNVyonltWSLpOwCaTdl6bk6XUht+epbFs8spNo6SqXcyjBS8CTaJfStIZ2\n/K7q52KJfVy6hOugT/NGJA4t2ocjnf/ZemitDG+zI84Pzm66g62G/tVTqET9\nu+nEajDm7ukFMJvq2rRRVKGidPhb7UyR9/BgUI6CkNlgHeu4rybhLlu79U2c\n1STpix+0GZWUDkxasTzl1RSwib7yg3sDTaYDt7i/MTv4LgIVvgPHLijwrrCw\n5voBxyrC9B3tceqbB67tZEmrFQJJTumEO2q5xAdvFlPzS2bl0ZdcVIBhHz1U\nloy9uHwsPgoYbmUtvmw15jKTHr6khj98/n2dc8yD6tyAC7efJDT59zLK8Dmh\nT1kigUs/6LNZVRE3Yc16bDOgXWC1AwKvy9NoJD3BzZ5cNzSmjSfafyDSKu8m\nArXc\r\n=/j+e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDx62A8Fd5J60j58spHA9CNDzBmx10VFBm3bpb6mtzhQQIge4aVxsqXvkbvDx+bpnhBNRbpd0xqq+3yJ+2MGZF7ubg="}]},"maintainers":[{"name":"bthn","email":"katircib@gmail.com"}],"_npmUser":{"name":"bthn","email":"katircib@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/paypal-rest-sdk_2.0.0-rc.2_1596054752602_0.3848327621701826"},"_hasShrinkwrap":false},"3.0.0":{"name":"@bthn/paypal-rest-sdk","version":"3.0.0","description":"SDK for PayPal Rest APIs","keywords":["paypal","rest","api","sdk"],"homepage":"https://github.com/paypal/PayPal-node-SDK","author":{"name":"PayPal","email":"DL-PP-NODEJS-SDK@paypal.com","url":"https://developer.paypal.com/"},"main":"index","directories":{"lib":"./lib"},"repository":{"type":"git","url":""},"engines":{"node":">=4"},"dependencies":{"braintreehttp":"0.4.0"},"devDependencies":{"chai":"^4.0.2","dirty-chai":"^2.0.0","eslint":"^2.7.0","eslint-config-braintree":"^1.0.0","mocha":"^4.1.0","nock":"^9.0.13","sinon":"^2.3.2"},"license":"MIT","scripts":{"lint":"eslint lib/","pretest":"npm run lint","test:unit":"mocha spec/unit --recursive -r spec/spec_helper","test:integration":"mocha spec --recursive --timeout 60000","test:payments":"mocha spec/v1/payments --recursive --timeout 60000","test:customerDisputes":"mocha spec/v1/customerDisputes --recursive --timeout 60000","test:billingPlans":"mocha spec/v1/billingPlans --recursive --timeout 60000","test:billingAgreements":"mocha spec/v1/billingAgreements --recursive --timeout 60000","test:invoices":"mocha spec/v1/invoices --recursive --timeout 60000","test:webhooks":"mocha spec/v1/webhooks --recursive --timeout 60000","test:vaults":"mocha spec/v1/vaults --recursive --timeout 60000","test:paymentExperience":"mocha spec/v1/paymentExperience --recursive --timeout 60000","test:identity":"mocha spec/v1/identity --recursive --timeout 60000","test:orders":"mocha spec/v1/orders --recursive --timeout 60000","test:sync":"mocha spec/v1/sync --recursive --timeout 60000","test":"npm run test:unit"},"_id":"@bthn/paypal-rest-sdk@3.0.0","_nodeVersion":"11.0.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-SFFyTVd9KV6qPxH3GzaxYsXXwHKERk3lkC0mAINGuygY2G/6fHkNqEQ5M2YUJnHGAE8rOqxcX3gjAO4M3UMP0g==","shasum":"ed32ed4760eb439651a3783b081f0f1f12f39cca","tarball":"https://registry.npmjs.org/@bthn/paypal-rest-sdk/-/paypal-rest-sdk-3.0.0.tgz","fileCount":204,"unpackedSize":568587,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfId8JCRA9TVsSAnZWagAAXCoP/ijRBF0FAZe7B8yWBHud\nLRxYzoYxlWmTnFxXm/yCCHG6vdsPWKEHlWe3dcBYgsJFcqeCDcpvJteCeCHX\nqJACfYKZIyNM0SPAki47oZdEtP9m1JlDMcbuYIrcrCvD8uCJ2mKBnf4TB3wB\nA3DcSFy/DaUYB5O0+izBfurChUpiSsB56e+tkrstpm/spMeKddHqq0OuS82d\nqCSUqsQJdfBkCkPME7M8xZV12rBevaVVQ17Egq+BdSB3AU9bHLwJZVtJqwLF\n01ttq5agpHhkB4BkG0F2w2N4QQKU2JpM5g8rk7x4tRR0xaxpdOzKXbAVzhxb\nYo3SlOfgV+Zn5pMcw6eZsybCLbi033EcQjQAc0jmVps/cFVWEer7WfbmUIm+\n08CmVziVckazG68l7w7NUf77bRmtJGs6vsb7zI+IMXPk//btQq7Zg2CisURT\nuUKqxOIFo7NvvJaw5azeJB7Yz7wYTh6wiwJq5ym11EDJeARBkJ2T5mEPP7Ky\nRq1Nm/DJF/H9ubYmoiAHD+V4Q5lEUQAw1emncYs8SlKVU4TTSUVt5+cla92r\nXF3uYwQxFkYQscEYTzFvBPDx+zDO5fnwppXdW/IPRHVlaRPP3xxa2p+ivEzk\nndpc44LC+AC8lkeo1r2odtNzSPdH0/+dm/QVAmyeb8lGBf3QEpBuSLAfVWcN\nVAjJ\r\n=e3rt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHri0HMOlWyjUf/p3Rc8Eb/ZqcCr/lZWGKMZKCcq5iRAIgMo2+FMgbD/CBukffH6RLFA6Tf2P+CjDLRggNhZBIBgM="}]},"maintainers":[{"name":"bthn","email":"katircib@gmail.com"}],"_npmUser":{"name":"bthn","email":"katircib@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/paypal-rest-sdk_3.0.0_1596055305506_0.9306370756764897"},"_hasShrinkwrap":false}},"time":{"created":"2020-07-29T20:32:32.541Z","2.0.0-rc.2":"2020-07-29T20:32:32.747Z","modified":"2022-04-04T20:52:46.570Z","3.0.0":"2020-07-29T20:41:45.721Z"},"maintainers":[{"name":"bthn","email":"katircib@gmail.com"}],"description":"SDK for PayPal Rest APIs","homepage":"https://github.com/paypal/PayPal-node-SDK","keywords":["paypal","rest","api","sdk"],"repository":{"type":"git","url":""},"author":{"name":"PayPal","email":"DL-PP-NODEJS-SDK@paypal.com","url":"https://developer.paypal.com/"},"license":"MIT","readme":"# PayPal SDK 2.0.0-beta [![Build Status](https://travis-ci.org/paypal/PayPal-node-SDK.svg?branch=2.0-beta)](https://travis-ci.org/paypal/PayPal-node-SDK)\n\nThis is a preview of how PayPal SDKs will look in the next major version. We've simplified the interface to only provide HTTPRequest that can easily be called via our HttpClient.\n\n## What's New\n\nPlease see the [CHANGELOG.md](./CHANGELOG.md) for the latest changes.\n\n## Example\n\n### Creating a Payment\n\n```node\nconst paypal = require('paypal-rest-sdk');\nconst payments = paypal.v1.payments;\n\nlet env;\nif (process.env.NODE_ENV === 'production') {\n  // Live Account details\n  env = new paypal.core.LiveEnvironment('Your Live Client ID', 'Your Live Client Secret');\n} else {\n  env = new paypal.core.SandboxEnvironment('AdV4d6nLHabWLyemrw4BKdO9LjcnioNIOgoz7vD611ObbDUL0kJQfzrdhXEBwnH8QmV-7XZjvjRWn0kg', 'EPKoPC_haZMTq5uM9WXuzoxUVdgzVqHyD5avCyVC1NCIUJeVaNNUZMnzduYIqrdw-carG9LBAizFGMyK');\n}\n\nlet client = new paypal.core.PayPalHttpClient(env);\n\nlet payment = {\n  \"intent\": \"sale\",\n  \"transactions\": [\n    \"amount\": {\n      \"currency\": \"USD\",\n      \"amount\": \"10\"\n    }\n  ],\n  \"redirect_urls\": {\n    \"cancel_url\": \"http://example.com/cancel\",\n    \"return_url\": \"http://example.com/return\"\n  },\n  \"payer\": {\n    \"payment_method\": \"paypal\"\n  }\n};\n\n\nlet request = new payments.PaymentCreateRequest();\nrequest.requestBody(payment);\n\nclient.execute(request).then((response) => {\n  console.log(response.statusCode);\n  console.log(response.result);\n}).catch((error) => {\n  console.error(error.statusCode);\n  console.error(error.message);\n});\n```\n\nIf you're migrating from v1, check out our [Migration Guide](./docs/Migrating.md) or our [Frequently Asked Questions](./docs/FAQ.md).\n\n## Building\n\nTo try this out, update the version of `paypal-rest-sdk` in your `package.json` to `2.0.0-rc.1`.\n\nPlease feel free to create an issue in this repo with any feedback, questions, or concerns you have.\n\n## Running tests\n\nTo run integration tests using your client id and secret, clone this repository and run the following command:\n```sh\n$ npm install\n$ npm test\n```\n\n*NOTE*: This API is still in beta, is subject to change, and should not be used in production.\n\n## Feedback\n\nIf you have any suggestions/remarks/feedback related to SDK 2.0.0, feel free to create an issue.\n\n## License\nPayPal-Node-SDK is open source. See the [LICENSE](./LICENSE) file for more info.\n\n## Contributions\nPull requests and new issues are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for details.\n","readmeFilename":"README.md"}