{"_id":"@dukerupert/stripe-subscription-plugin","name":"@dukerupert/stripe-subscription-plugin","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@dukerupert/stripe-subscription-plugin","version":"0.0.1","description":"Stripe Payment provider for Meduas Commerce, extended to include subscriptions","main":"dist/index.js","repository":{"type":"git","url":"","directory":""},"author":{"name":"DukeRupert"},"license":"MIT","scripts":{"prepare":"cross-env NODE_ENV=production yarn run build","test":"jest --passWithNoTests src","build":"tsc","watch":"tsc --watch"},"devDependencies":{"@medusajs/medusa":"1.8.0","@types/stripe":"^8.0.417","cross-env":"^5.2.1","jest":"^25.5.4","typescript":"^4.9.5"},"peerDependencies":{"@medusajs/medusa":"1.8.0"},"dependencies":{"awilix":"^9.0.0","body-parser":"^1.19.0","express":"^4.17.1","medusa-core-utils":"^1.2.0","stripe":"^11.10.0"},"gitHead":"81a7ff73d012fda722f6e9ef0bd9ba0232d37808","keywords":["medusa-plugin","medusa-plugin-payment","stripe-subscription-plugin","medusajs"],"types":"./dist/index.d.ts","_id":"@dukerupert/stripe-subscription-plugin@0.0.1","_nodeVersion":"18.13.0","_npmVersion":"9.4.0","dist":{"integrity":"sha512-ou5cyfGy0y+dS8/q7VpMrrHvYF0tIxEL0o2ds+d5874q6A37tamdOLxJyMFCj1Z3KT//h+cfjohhSjvlZlLE0w==","shasum":"6f8d4f3fb4ba5119417b0ada2ab4fe14f1a023ed","tarball":"https://registry.npmjs.org/@dukerupert/stripe-subscription-plugin/-/stripe-subscription-plugin-0.0.1.tgz","fileCount":41,"unpackedSize":84352,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAtnfHG2S0ukY5ii2MmnBsp18aZQxE5sgR+HJLZrM9DGAiEAtQlm+pbpk9aA0R7GcdAg+1PJCO8w8cTngnZKb6Novus="}]},"_npmUser":{"name":"dukerupert","email":"logan@fireflysoftware.dev"},"directories":{},"maintainers":[{"name":"dukerupert","email":"logan@fireflysoftware.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stripe-subscription-plugin_0.0.1_1699222212651_0.8786767900696772"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-05T22:10:12.553Z","0.0.1":"2023-11-05T22:10:12.837Z","modified":"2023-11-05T22:10:13.078Z"},"maintainers":[{"name":"dukerupert","email":"logan@fireflysoftware.dev"}],"description":"Stripe Payment provider for Meduas Commerce, extended to include subscriptions","keywords":["medusa-plugin","medusa-plugin-payment","stripe-subscription-plugin","medusajs"],"repository":{"type":"git","url":"","directory":""},"author":{"name":"DukeRupert"},"license":"MIT","readme":"# Stripe\r\n\r\nReceive payments on your Medusa commerce application using Stripe.\r\n\r\n[Stripe Plugin Documentation](https://docs.medusajs.com/plugins/payment/stripe) | [Medusa Website](https://medusajs.com/) | [Medusa Repository](https://github.com/medusajs/medusa)\r\n\r\n## Features\r\n\r\n- Authorize payments on orders from any sales channel.\r\n- Support for Bancontact, BLIK, giropay, iDEAL, and Przelewy24.\r\n- Capture payments from the admin dashboard.\r\n- View payment analytics through Stripe's dashboard.\r\n- Ready-integration with [Medusa's Next.js starter storefront](https://docs.medusajs.com/starters/nextjs-medusa-starter).\r\n- Support for Stripe Webhooks.\r\n\r\n---\r\n\r\n## Prerequisites\r\n\r\n- [Medusa backend](https://docs.medusajs.com/development/backend/install)\r\n- [Stripe account](https://stripe.com/)\r\n\r\n---\r\n\r\n## How to Install\r\n\r\n1\\. Run the following command in the directory of the Medusa backend:\r\n\r\n  ```bash\r\n  npm install medusa-payment-stripe\r\n  ```\r\n\r\n2\\. Set the following environment variables in `.env`:\r\n\r\n  ```bash\r\n  STRIPE_API_KEY=sk_...\r\n  # only necessary for production\r\n  STRIPE_WEBHOOK_SECRET=whsec_...\r\n  ```\r\n\r\n3\\. In `medusa-config.js` add the following at the end of the `plugins` array:\r\n\r\n  ```js\r\n  const plugins = [\r\n    // ...\r\n    {\r\n      resolve: `medusa-payment-stripe`,\r\n      options: {\r\n        api_key: process.env.STRIPE_API_KEY,\r\n        webhook_secret: process.env.STRIPE_WEBHOOK_SECRET,\r\n      },\r\n    },\r\n  ]\r\n  ```\r\n\r\n---\r\n\r\n## Test the Plugin\r\n\r\n1\\. Run the following command in the directory of the Medusa backend to run the backend:\r\n\r\n  ```bash\r\n  npm run start\r\n  ```\r\n\r\n2\\. Enable Stripe in a region in the admin. You can refer to [this User Guide](https://docs.medusajs.com/user-guide/regions/providers) to learn how to do that. Alternatively, you can use the [Admin APIs](https://docs.medusajs.com/api/admin#tag/Region/operation/PostRegionsRegion).\r\n\r\n3\\. Place an order using a storefront or the [Store APIs](https://docs.medusajs.com/api/store). You should be able to use Stripe as a payment method.\r\n\r\n---\r\n\r\n## Additional Resources\r\n\r\n- [Stripe Plugin Documentation](https://docs.medusajs.com/plugins/payment/stripe)\r\n","readmeFilename":"README.md"}