{"_id":"@bb-vendure/payments-plugin","_rev":"4-320bcc1d900381a3be9aad8d4116fd6b","name":"@bb-vendure/payments-plugin","dist-tags":{"latest":"2.2.7-bb.7"},"versions":{"2.2.7-bb.3":{"name":"@bb-vendure/payments-plugin","version":"2.2.7-bb.3","license":"MIT","_id":"@bb-vendure/payments-plugin@2.2.7-bb.3","maintainers":[{"name":"valk-dokk","email":"thevalkdokk@gmail.com"}],"homepage":"https://www.vendure.io/","dist":{"shasum":"94e89d8bde79213d75e68903e8b1d84fbd7b2dbc","tarball":"https://registry.npmjs.org/@bb-vendure/payments-plugin/-/payments-plugin-2.2.7-bb.3.tgz","fileCount":102,"integrity":"sha512-VQI6ANA61BBc0Lw+9NdDJQqdyDLekN2PkK109bD88+fbHPo0rGigypSp3KHrz13LCvpkG/kp56NRyvtlhGHQag==","signatures":[{"sig":"MEYCIQDgFYhXv0re0CwiPvA5BbJxIky977ncvsZqUkBJ1vCjLwIhALHJRuQLuLVn99gvpzhHoRhCMnwpr7ZcOIEoxfx2ldF6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":393860},"main":"package/index.js","types":"package/index.d.ts","funding":"https://github.com/sponsors/michaelbromley","gitHead":"d87d0f35c2f6e2effe09ef8f666db9cce47768ad","private":false,"scripts":{"ci":"npm run build","e2e":"cross-env PACKAGE=payments-plugin vitest --config ../../e2e-common/vitest.config.mts --run","lint":"eslint --fix .","build":"rimraf package && tsc -p ./tsconfig.build.json","watch":"tsc -p ./tsconfig.build.json --watch","e2e:watch":"cross-env PACKAGE=payments-plugin vitest --config ../../e2e-common/vitest.config.mts","dev-server:mollie":"npm run build && DB=sqlite node -r ts-node/register e2e/mollie-dev-server.ts","dev-server:stripe":"npm run build && DB=sqlite node -r ts-node/register e2e/stripe-dev-server.ts"},"_npmUser":{"name":"valk-dokk","email":"thevalkdokk@gmail.com"},"_npmVersion":"lerna/8.1.2/node@v22.2.0+arm64 (darwin)","description":"For documentation, see [docs.vendure.io/reference/core-plugins/payments-plugin/](https://docs.vendure.io/reference/core-plugins/payments-plugin/)","directories":{},"_nodeVersion":"22.2.0","dependencies":{"currency.js":"2.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nock":"^13.1.4","rimraf":"^5.0.5","stripe":"^13.3.0","braintree":"^3.22.0","typescript":"5.1.6","localtunnel":"2.0.2","@bb-vendure/core":"^2.2.7-bb.3","@types/braintree":"^3.3.11","@bb-vendure/common":"^2.2.7-bb.3","@mollie/api-client":"^3.7.0","@types/localtunnel":"2.0.4","@bb-vendure/testing":"^2.2.7-bb.3"},"peerDependencies":{"stripe":"13.x","braintree":"3.x","@mollie/api-client":"3.x"},"peerDependenciesMeta":{"stripe":{"optional":true},"braintree":{"optional":true},"@mollie/api-client":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/payments-plugin_2.2.7-bb.3_1720757951596_0.23516608199016753","host":"s3://npm-registry-packages"}},"2.2.7-bb.4":{"name":"@bb-vendure/payments-plugin","version":"2.2.7-bb.4","license":"MIT","_id":"@bb-vendure/payments-plugin@2.2.7-bb.4","maintainers":[{"name":"valk-dokk","email":"thevalkdokk@gmail.com"}],"homepage":"https://www.vendure.io/","dist":{"shasum":"5d26fdeca99918d812f2dc17067fbd4793d51c27","tarball":"https://registry.npmjs.org/@bb-vendure/payments-plugin/-/payments-plugin-2.2.7-bb.4.tgz","fileCount":102,"integrity":"sha512-CTaD0GLvHVq3qzWARxuh9MoEDPAb7uuypLrkMez2b0DfddQyazlBGGfwldv6FEP2PLpY1ijaJePk7ql8aErx3Q==","signatures":[{"sig":"MEQCIDl6pgQ+haX9oIZJMfQt1drB1+IR2XjCzWFuefw00Pv/AiA0SAPZJ1vMQM1htT+IvcQ4fZilB8vClZ+w6mdoyuUZ+A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":393860},"main":"package/index.js","types":"package/index.d.ts","funding":"https://github.com/sponsors/michaelbromley","gitHead":"ff939e021410c4daf6d01b1acdf73306e11160cd","private":false,"scripts":{"ci":"npm run build","e2e":"cross-env PACKAGE=payments-plugin vitest --config ../../e2e-common/vitest.config.mts --run","lint":"eslint --fix .","build":"rimraf package && tsc -p ./tsconfig.build.json","watch":"tsc -p ./tsconfig.build.json --watch","e2e:watch":"cross-env PACKAGE=payments-plugin vitest --config ../../e2e-common/vitest.config.mts","dev-server:mollie":"npm run build && DB=sqlite node -r ts-node/register e2e/mollie-dev-server.ts","dev-server:stripe":"npm run build && DB=sqlite node -r ts-node/register e2e/stripe-dev-server.ts"},"_npmUser":{"name":"valk-dokk","email":"thevalkdokk@gmail.com"},"_npmVersion":"lerna/8.1.2/node@v22.2.0+arm64 (darwin)","description":"For documentation, see [docs.vendure.io/reference/core-plugins/payments-plugin/](https://docs.vendure.io/reference/core-plugins/payments-plugin/)","directories":{},"_nodeVersion":"22.2.0","dependencies":{"currency.js":"2.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nock":"^13.1.4","rimraf":"^5.0.5","stripe":"^13.3.0","braintree":"^3.22.0","typescript":"5.1.6","localtunnel":"2.0.2","@bb-vendure/core":"^2.2.7-bb.4","@types/braintree":"^3.3.11","@bb-vendure/common":"^2.2.7-bb.4","@mollie/api-client":"^3.7.0","@types/localtunnel":"2.0.4","@bb-vendure/testing":"^2.2.7-bb.4"},"peerDependencies":{"stripe":"13.x","braintree":"3.x","@mollie/api-client":"3.x"},"peerDependenciesMeta":{"stripe":{"optional":true},"braintree":{"optional":true},"@mollie/api-client":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/payments-plugin_2.2.7-bb.4_1720760056525_0.4492740531944719","host":"s3://npm-registry-packages"}},"2.2.7-bb.5":{"name":"@bb-vendure/payments-plugin","version":"2.2.7-bb.5","license":"MIT","_id":"@bb-vendure/payments-plugin@2.2.7-bb.5","maintainers":[{"name":"valk-dokk","email":"thevalkdokk@gmail.com"}],"homepage":"https://www.vendure.io/","dist":{"shasum":"deac623a0e5e927ac0ec0d5810630b37d7d0e0ad","tarball":"https://registry.npmjs.org/@bb-vendure/payments-plugin/-/payments-plugin-2.2.7-bb.5.tgz","fileCount":102,"integrity":"sha512-mevIIZ5WfhtkDk9SlKa7so94AhfPbFaAMbZNL6JUEWImMi7ZW+oO8crTSJltqg8vtPm4V6K5m+1cFyFxVZNrXQ==","signatures":[{"sig":"MEQCIB60bcTylMbO+kxnuRJV0ERvIyL3VMapXsJBjKUoVrY5AiAJ7is5St/r+1mnRIAZqWj6K6ViONkyHWbsuNxogDgVKQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":393860},"main":"package/index.js","types":"package/index.d.ts","funding":"https://github.com/sponsors/michaelbromley","gitHead":"f567fed26c25c334fb3dbf515d4492b84c122462","private":false,"scripts":{"ci":"npm run build","e2e":"cross-env PACKAGE=payments-plugin vitest --config ../../e2e-common/vitest.config.mts --run","lint":"eslint --fix .","build":"rimraf package && tsc -p ./tsconfig.build.json","watch":"tsc -p ./tsconfig.build.json --watch","e2e:watch":"cross-env PACKAGE=payments-plugin vitest --config ../../e2e-common/vitest.config.mts","dev-server:mollie":"npm run build && DB=sqlite node -r ts-node/register e2e/mollie-dev-server.ts","dev-server:stripe":"npm run build && DB=sqlite node -r ts-node/register e2e/stripe-dev-server.ts"},"_npmUser":{"name":"valk-dokk","email":"thevalkdokk@gmail.com"},"_npmVersion":"lerna/8.1.2/node@v22.2.0+arm64 (darwin)","description":"For documentation, see [docs.vendure.io/reference/core-plugins/payments-plugin/](https://docs.vendure.io/reference/core-plugins/payments-plugin/)","directories":{},"_nodeVersion":"22.2.0","dependencies":{"currency.js":"2.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nock":"^13.1.4","rimraf":"^5.0.5","stripe":"^13.3.0","braintree":"^3.22.0","typescript":"5.1.6","localtunnel":"2.0.2","@bb-vendure/core":"^2.2.7-bb.5","@types/braintree":"^3.3.11","@bb-vendure/common":"^2.2.7-bb.5","@mollie/api-client":"^3.7.0","@types/localtunnel":"2.0.4","@bb-vendure/testing":"^2.2.7-bb.5"},"peerDependencies":{"stripe":"13.x","braintree":"3.x","@mollie/api-client":"3.x"},"peerDependenciesMeta":{"stripe":{"optional":true},"braintree":{"optional":true},"@mollie/api-client":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/payments-plugin_2.2.7-bb.5_1720760241498_0.8230838031456995","host":"s3://npm-registry-packages"}},"2.2.7-bb.6":{"name":"@bb-vendure/payments-plugin","version":"2.2.7-bb.6","license":"MIT","_id":"@bb-vendure/payments-plugin@2.2.7-bb.6","maintainers":[{"name":"valk-dokk","email":"thevalkdokk@gmail.com"}],"homepage":"https://www.vendure.io/","dist":{"shasum":"af59f0cf5a57d9a6fec164dfc5fa5e8da5af7e83","tarball":"https://registry.npmjs.org/@bb-vendure/payments-plugin/-/payments-plugin-2.2.7-bb.6.tgz","fileCount":102,"integrity":"sha512-VVsFAc0edY+59/xvsgOsYiDVsGs/3U53+Nw3+ZWq4NKsqP09iE0Epzk49XH4mx3SCHNePNA8+YJgWL5a9yW3Sw==","signatures":[{"sig":"MEQCIDx2DfpXwkhb0bMdFjTDPXeGzN5iQnJ5IZuQc/9dJNP1AiAEMy23W8sD//sptvxcRedErpej1Q8v2k7Wts448cP6Sw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":393860},"main":"package/index.js","types":"package/index.d.ts","funding":"https://github.com/sponsors/michaelbromley","gitHead":"a1befc25cc7b22c3bdf019f77b5715eb285b23c5","private":false,"scripts":{"ci":"npm run build","e2e":"cross-env PACKAGE=payments-plugin vitest --config ../../e2e-common/vitest.config.mts --run","lint":"eslint --fix .","build":"rimraf package && tsc -p ./tsconfig.build.json","watch":"tsc -p ./tsconfig.build.json --watch","e2e:watch":"cross-env PACKAGE=payments-plugin vitest --config ../../e2e-common/vitest.config.mts","dev-server:mollie":"npm run build && DB=sqlite node -r ts-node/register e2e/mollie-dev-server.ts","dev-server:stripe":"npm run build && DB=sqlite node -r ts-node/register e2e/stripe-dev-server.ts"},"_npmUser":{"name":"valk-dokk","email":"thevalkdokk@gmail.com"},"_npmVersion":"lerna/8.1.2/node@v22.2.0+arm64 (darwin)","description":"For documentation, see [docs.vendure.io/reference/core-plugins/payments-plugin/](https://docs.vendure.io/reference/core-plugins/payments-plugin/)","directories":{},"_nodeVersion":"22.2.0","dependencies":{"currency.js":"2.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nock":"^13.1.4","rimraf":"^5.0.5","stripe":"^13.3.0","braintree":"^3.22.0","typescript":"5.1.6","localtunnel":"2.0.2","@bb-vendure/core":"^2.2.7-bb.6","@types/braintree":"^3.3.11","@bb-vendure/common":"^2.2.7-bb.6","@mollie/api-client":"^3.7.0","@types/localtunnel":"2.0.4","@bb-vendure/testing":"^2.2.7-bb.6"},"peerDependencies":{"stripe":"13.x","braintree":"3.x","@mollie/api-client":"3.x"},"peerDependenciesMeta":{"stripe":{"optional":true},"braintree":{"optional":true},"@mollie/api-client":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/payments-plugin_2.2.7-bb.6_1720760658559_0.8587135217471487","host":"s3://npm-registry-packages"}},"2.2.7-bb.7":{"name":"@bb-vendure/payments-plugin","version":"2.2.7-bb.7","license":"MIT","main":"package/index.js","types":"package/index.d.ts","private":false,"scripts":{"watch":"tsc -p ./tsconfig.build.json --watch","build":"rimraf package && tsc -p ./tsconfig.build.json","e2e":"cross-env PACKAGE=payments-plugin vitest --config ../../e2e-common/vitest.config.mts --run","e2e:watch":"cross-env PACKAGE=payments-plugin vitest --config ../../e2e-common/vitest.config.mts","lint":"eslint --fix .","ci":"npm run build","dev-server:mollie":"npm run build && DB=sqlite node -r ts-node/register e2e/mollie-dev-server.ts","dev-server:stripe":"npm run build && DB=sqlite node -r ts-node/register e2e/stripe-dev-server.ts"},"homepage":"https://www.vendure.io/","funding":"https://github.com/sponsors/michaelbromley","publishConfig":{"access":"public"},"peerDependencies":{"@mollie/api-client":"3.x","braintree":"3.x","stripe":"13.x"},"dependencies":{"currency.js":"2.0.4"},"peerDependenciesMeta":{"@mollie/api-client":{"optional":true},"braintree":{"optional":true},"stripe":{"optional":true}},"devDependencies":{"@bb-vendure/common":"^2.2.7-bb.7","@bb-vendure/core":"^2.2.7-bb.7","@bb-vendure/testing":"^2.2.7-bb.7","@mollie/api-client":"^3.7.0","@types/braintree":"^3.3.11","@types/localtunnel":"2.0.4","braintree":"^3.22.0","localtunnel":"2.0.2","nock":"^13.1.4","rimraf":"^5.0.5","stripe":"^13.3.0","typescript":"5.1.6"},"gitHead":"39faf31b3a29848a1699c563a947f0c1d91bc26f","description":"For documentation, see [docs.vendure.io/reference/core-plugins/payments-plugin/](https://docs.vendure.io/reference/core-plugins/payments-plugin/)","_id":"@bb-vendure/payments-plugin@2.2.7-bb.7","_nodeVersion":"22.2.0","_npmVersion":"lerna/8.1.2/node@v22.2.0+arm64 (darwin)","dist":{"integrity":"sha512-4d31AwzsxErtI3I66JN+K4w4Y/KKQuIWYxcmEPXz6bw4px3rVcwJYQB8uKdLOE9wGKFPeiSzIZ1/kYgdr+RCZA==","shasum":"bcd5a428278948ef5333cb4fc3f6274b4eade330","tarball":"https://registry.npmjs.org/@bb-vendure/payments-plugin/-/payments-plugin-2.2.7-bb.7.tgz","fileCount":102,"unpackedSize":393860,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICtvbLn9PEzED808Z1FMAOo56PgCkkj+3Ve4c9YRWFNyAiEA/wxe5dlC78kQJMxV0vhO/oKLY9kn8ZCfO7dhlIgEWn4="}]},"_npmUser":{"name":"valk-dokk","email":"thevalkdokk@gmail.com"},"directories":{},"maintainers":[{"name":"valk-dokk","email":"thevalkdokk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/payments-plugin_2.2.7-bb.7_1720761958332_0.9000329331767629"},"_hasShrinkwrap":false}},"time":{"created":"2024-07-12T04:19:11.454Z","modified":"2024-07-12T05:25:58.652Z","2.2.7-bb.3":"2024-07-12T04:19:11.799Z","2.2.7-bb.4":"2024-07-12T04:54:16.767Z","2.2.7-bb.5":"2024-07-12T04:57:21.740Z","2.2.7-bb.6":"2024-07-12T05:04:18.757Z","2.2.7-bb.7":"2024-07-12T05:25:58.498Z"},"license":"MIT","homepage":"https://www.vendure.io/","description":"For documentation, see [docs.vendure.io/reference/core-plugins/payments-plugin/](https://docs.vendure.io/reference/core-plugins/payments-plugin/)","maintainers":[{"name":"valk-dokk","email":"thevalkdokk@gmail.com"}],"readme":"# Payments plugin\n\nFor documentation, see [docs.vendure.io/reference/core-plugins/payments-plugin/](https://docs.vendure.io/reference/core-plugins/payments-plugin/)\n\n## Development\n\n### Mollie local development\n\nFor testing out changes to the Mollie plugin locally, with a real Mollie account, follow the steps below. These steps\nwill create an order, set Mollie as payment method, and create a payment intent link to the Mollie platform.\n\n1. Get a test api key from your Mollie\n   dashboard: https://help.mollie.com/hc/en-us/articles/115000328205-Where-can-I-find-the-API-key-\n2. Create the file `packages/payments-plugin/.env` with content `MOLLIE_APIKEY=your-test-apikey`\n3. `cd packages/payments-plugin`\n5. `npm run dev-server:mollie`\n6. Watch the logs for `Mollie payment link` and click the link to finalize the test payment.\n\nYou can change the order flow, payment methods and more in the file `e2e/mollie-dev-server`, and restart the devserver.\n\n### Stripe local development\n\nFor testing out changes to the Stripe plugin locally, with a real Stripe account, follow the steps below. These steps\nwill create an order, set Stripe as payment method, and create a payment secret.\n\n1. Get a test api key from your Stripe\n   dashboard: https://dashboard.stripe.com/test/apikeys\n2. Use Ngrok or Localtunnel to make your localhost publicly available and create a webhook as described here: https://www.vendure.io/docs/typescript-api/payments-plugin/stripe-plugin/\n3. Create the file `packages/payments-plugin/.env` with these contents:\n```sh\nSTRIPE_APIKEY=sk_test_xxxx\nSTRIPE_WEBHOOK_SECRET=webhook-secret\nSTRIPE_PUBLISHABLE_KEY=pk_test_xxxx\n```\n1. `cd packages/payments-plugin`\n2. `yarn dev-server:stripe`\n3. Watch the logs for the link or go to `http://localhost:3050/checkout` to test the checkout.\n\nAfter checkout completion you can see your payment in https://dashboard.stripe.com/test/payments/\n","readmeFilename":"README.md"}