feat(medusa-payment-paypal): Migrate to the new payment processor API (#3414)
* feat(medusa-payment-paypal): Migrate to the new payment processor API * WIP * WIP * WIP unit tests * WIP * unit tests * fix package.json * yarn * cleanup * address feedback 1/2 * Start to implement a new Paypal SDK * cleanup * finalise sdk * cleanup * fix push missing file * rename sdk methods * unit test the http client * WIP * fix http client * Create .changeset/empty-melons-eat.md * refactor tests * fix quote * fix options * cleanup * do not retry auth * WIP * retry mechanism max attempts * use both old and new options * fix capture * remove totals fields * add missing method * cleanup * fix current tests * authorize should update the data with the fresh order * remove comments * fix tests * Update packages/medusa-payment-paypal/src/core/paypal-http-client.ts Co-authored-by: Riqwan Thamir <rmthamir@gmail.com> * fix unit tests * update changeset --------- Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com> Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>
This commit is contained in:
44 files changed
+2272
-1037
No files matched your search
@@ -2,44 +2,35 @@
|
||||
"name": "medusa-payment-paypal",
|
||||
"version": "1.3.0-rc.0",
|
||||
"description": "Paypal Payment provider for Medusa Commerce",
|
||||
"main": "index.js",
|
||||
"main": "dist/index.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/medusajs/medusa",
|
||||
"directory": "packages/medusa-payment-paypal"
|
||||
},
|
||||
"author": "Sebastian Rindom",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"author": "Medusa",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.7.5",
|
||||
"@babel/core": "^7.7.5",
|
||||
"@babel/node": "^7.7.4",
|
||||
"@babel/plugin-proposal-class-properties": "^7.7.4",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.12.7",
|
||||
"@babel/plugin-transform-classes": "^7.9.5",
|
||||
"@babel/plugin-transform-instanceof": "^7.8.3",
|
||||
"@babel/plugin-transform-runtime": "^7.7.6",
|
||||
"@babel/preset-env": "^7.7.5",
|
||||
"@babel/register": "^7.7.4",
|
||||
"@babel/runtime": "^7.9.6",
|
||||
"client-sessions": "^0.8.0",
|
||||
"cross-env": "^5.2.1",
|
||||
"jest": "^25.5.4",
|
||||
"jest-environment-node": "25.5.0",
|
||||
"medusa-interfaces": "^1.3.7-rc.0",
|
||||
"medusa-test-utils": "^1.1.40-rc.0"
|
||||
},
|
||||
"scripts": {
|
||||
"prepare": "cross-env NODE_ENV=production yarn run build",
|
||||
"test": "jest --passWithNoTests src",
|
||||
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
|
||||
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
|
||||
"build": "tsc",
|
||||
"watch": "tsc --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/medusa": "^1.8.0-rc.0",
|
||||
"@types/stripe": "^8.0.417",
|
||||
"cross-env": "^5.2.1",
|
||||
"jest": "^25.5.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"medusa-interfaces": "1.3.7-rc.0"
|
||||
"@medusajs/medusa": "^1.7.7"
|
||||
},
|
||||
"dependencies": {
|
||||
"@paypal/checkout-server-sdk": "^1.0.3",
|
||||
"axios": "^1.3.4",
|
||||
"body-parser": "^1.19.0",
|
||||
"express": "^4.17.1",
|
||||
"medusa-core-utils": "^1.2.0-rc.0"
|
||||
|
||||
Reference in new issue
Block a user