{"_id":"@agbtest/mercury","name":"@agbtest/mercury","dist-tags":{"latest":"0.0.2-alpha"},"versions":{"0.0.2-alpha":{"name":"@agbtest/mercury","version":"0.0.2-alpha","description":"Cardano Mercury Payments for Medusa JS","author":{"name":"Adam K. Dean","email":"adam@crypto2099.io"},"license":"Apache-2.0","exports":{"./package.json":"./package.json","./workflows":"./.medusa/server/src/workflows/index.js","./.medusa/server/src/modules/*":"./.medusa/server/src/modules/*/index.js","./providers/*":"./.medusa/server/src/providers/*/index.js","./*":"./.medusa/server/src/*.js"},"keywords":["medusa","plugin","medusa-plugin-other","medusa-plugin","medusa-v2"],"scripts":{"build":"medusa plugin:build","dev":"medusa plugin:develop","prepublishOnly":"medusa plugin:build"},"devDependencies":{"@medusajs/admin-sdk":"2.4.0","@medusajs/cli":"2.4.0","@medusajs/framework":"2.4.0","@medusajs/icons":"2.4.0","@medusajs/medusa":"2.4.0","@medusajs/test-utils":"2.4.0","@medusajs/ui":"4.0.3","@mikro-orm/cli":"6.4.3","@mikro-orm/core":"6.4.3","@mikro-orm/knex":"6.4.3","@mikro-orm/migrations":"6.4.3","@mikro-orm/postgresql":"6.4.3","@swc/core":"1.5.7","@types/node":"^20.0.0","@types/react":"^18.3.2","@types/react-dom":"^18.2.25","awilix":"^8.0.1","pg":"^8.13.0","prop-types":"^15.8.1","react":"^18.2.0","react-dom":"^18.2.0","ts-node":"^10.9.2","typescript":"^5.6.2","vite":"^5.2.11","yalc":"^1.0.0-pre.53"},"peerDependencies":{"@medusajs/admin-sdk":"2.4.0","@medusajs/cli":"2.4.0","@medusajs/framework":"2.4.0","@medusajs/icons":"2.4.0","@medusajs/medusa":"2.4.0","@medusajs/test-utils":"2.4.0","@medusajs/ui":"4.0.3","@mikro-orm/cli":"6.4.3","@mikro-orm/core":"6.4.3","@mikro-orm/knex":"6.4.3","@mikro-orm/migrations":"6.4.3","@mikro-orm/postgresql":"6.4.3","awilix":"^8.0.1","pg":"^8.13.0"},"engines":{"node":">=20"},"dependencies":{"@emurgo/cardano-serialization-lib-nodejs":"^14.0.0","@medusajs/js-sdk":"^2.6.1","@medusajs/types":"^2.6.1","cors":"^2.8.5"},"_id":"@agbtest/mercury@0.0.2-alpha","gitHead":"fa731206e7c217442bfe4c1f629c83f5b5161cd0","_nodeVersion":"20.19.4","_npmVersion":"10.8.2","dist":{"integrity":"sha512-kFnkvbJQ5bgHMusuoo6S5fQspOwrRB7nafo18TdthwxqaSwOkfFJ4lmHsL/PeNUSKKew3IK3/KAKGr1U38k8Jg==","shasum":"a2246096ede73f9ac5d28d4371f7d2cd83798deb","tarball":"https://registry.npmjs.org/@agbtest/mercury/-/mercury-0.0.2-alpha.tgz","fileCount":23,"unpackedSize":98531,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDl+dXo1/QI/6Ak6epWsa4EW6YvdaeSLNSgLHCgCfUTkAiEAh2D/ejEFB3YokkVQu3r+SLgp5eeDIEVSVFWmsuqZpHg="}]},"_npmUser":{"name":"bekitashi","email":"agokselb@gmail.com"},"directories":{},"maintainers":[{"name":"bekitashi","email":"agokselb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mercury_0.0.2-alpha_1754045121363_0.8882188023403541"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-01T10:45:21.283Z","0.0.2-alpha":"2025-08-01T10:45:21.611Z","modified":"2025-08-01T10:45:21.870Z"},"maintainers":[{"name":"bekitashi","email":"agokselb@gmail.com"}],"description":"Cardano Mercury Payments for Medusa JS","keywords":["medusa","plugin","medusa-plugin-other","medusa-plugin","medusa-v2"],"author":{"name":"Adam K. Dean","email":"adam@crypto2099.io"},"license":"Apache-2.0","readme":"# Cardano Mercury for Medusa JS\n\n> **IMPORTANT**: This software is still in an `alpha` developmental stage,\n> please do not use it in production unless you're sure of what you're doing.\n\n## Installation Instructions\n\n1. Include the package in your project: `npm i @cardano-mercury/medusajs`\n2. Update your `medusa-config.json` file to add the following values:\n   ```typescript\n   module.exports = defineConfig({\n    projectConfig: {},\n    plugins: [\n        {\n            resolve: \"@cardano-mercury/medusajs\",\n            options: {\n                fixerApiKey: \"d311e...aae3\",\n                currencyFreaksApiKey: \"87b3...d5a6\",\n                oxrAppId: \"24e5...6ecb\",\n                xPubKey: \"xpub1pc20...6ald\",\n            },\n        },\n    ],\n    modules: [\n        {\n            resolve: \"@medusajs/medusa/payment\",\n            options: {\n                providers: [\n                    {\n                        resolve: \"@cardano-mercury/medusajs/providers/mercury\",\n                        options: {\n                            fixerApiKey: \"d311...aae3\",\n                            xPubKey: \"xpub1pc20...6ald\",\n                            network: \"preprod\",\n                            apiKey: \"...\"\n                        }\n                    }\n                ]\n            }\n        }\n    ]})\n   ```\n   The most important of the variables for the plugin are the `network`,\n   `xPubKey` (should be exported from your Eternl Wallet), and `oxrAppId` which\n   can be acquired from Open Exchange Rates\n   here: [https://docs.openexchangerates.org/reference/api-introduction](https://docs.openexchangerates.org/reference/api-introduction).\n3. Modify your `.env` environment variables to include the following:\n   ```dotenv\n   WALLET_EXTENDED_PUBLIC_KEY=xpub1pc20...6ald\n   WALLET_NETWORK=preprod\n   KOIOS_API_URL=https://preprod.koios.rest\n   KOIOS_API_KEY=eyJh...VCJ9.eyJh...0oPw\n   UPDATE_ADA_PRICE_PERIOD=15\n   CHECK_ADA_PRICE_SCHEDULE=\"* * * * *\"\n   UPDATE_UNPAID_SESSIONS=\"*/2 * * * *\"\n   STALE_THRESHOLD_MINUTES=15\n   UPDATE_UNPAID_SESSIONS=\"*/5 * * * *\"\n   ```\n   All of these are required and should match the environment you are using.\n4. You will need to customize your frontend structure to correctly connect a \n   Cardano light wallet from the user and craft and submit the transaction.\n\n## Known Issues\n\n- At the moment, the logic for updating currency conversion rates results in a \n  large number of derived, child addresses being generated but never used when\n  an order is left unpaid for a long time. This should be addressed to keep a\n  single address attached to a single shopping cart in the future and allow for\n  address reuse if never used while the order fully expires.","readmeFilename":"README.md","_rev":"1-9e5327dddd599a9cfba38779f465eb34"}