{"id":13745889,"url":"https://github.com/aureatelabs/vsf-payment-razorpay","last_synced_at":"2025-05-09T06:31:11.304Z","repository":{"id":148241884,"uuid":"197132914","full_name":"aureatelabs/vsf-payment-razorpay","owner":"aureatelabs","description":"Razorpay Payment Extension for Vue Storefront - Integrated to accept online payment","archived":false,"fork":false,"pushed_at":"2019-10-09T09:21:24.000Z","size":5645,"stargazers_count":16,"open_issues_count":2,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-05-22T17:33:56.211Z","etag":null,"topics":["magento2","payment-methods","pwa","razorpay","vsf-payment-razorpay","vue-storefront","vuejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aureatelabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-07-16T06:21:53.000Z","updated_at":"2023-02-11T01:57:12.000Z","dependencies_parsed_at":"2023-05-19T12:30:27.173Z","dependency_job_id":null,"html_url":"https://github.com/aureatelabs/vsf-payment-razorpay","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aureatelabs%2Fvsf-payment-razorpay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aureatelabs%2Fvsf-payment-razorpay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aureatelabs%2Fvsf-payment-razorpay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aureatelabs%2Fvsf-payment-razorpay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aureatelabs","download_url":"https://codeload.github.com/aureatelabs/vsf-payment-razorpay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253206059,"owners_count":21871158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["magento2","payment-methods","pwa","razorpay","vsf-payment-razorpay","vue-storefront","vuejs"],"created_at":"2024-08-03T06:00:40.213Z","updated_at":"2025-05-09T06:31:08.750Z","avatar_url":"https://github.com/aureatelabs.png","language":"TypeScript","funding_links":[],"categories":["Resources for Vue Storefront 1"],"sub_categories":["Official Resources - v1"],"readme":"# Razorpay Payment extension for Vue Storefront\n[Razorpay](https://razorpay.com/) Payment extension for [vue-storefront](https://github.com/DivanteLtd/vue-storefront), by [Aureate Labs](https://aureatelabs.com)\n\n![Razorpay Payment](docs/razorpay_checkout_flow.gif)\n\nExperience the Razorpay Payment demo [here](https://vue-storefront-demo.aureatelabs.com/)\n\n## Installation\n\nBy hand (preferer):\n```\ngit clone https://github.com/aureatelabs/vsf-payment-razorpay.git ./vue-storefront/src/modules/payment-razorpay\n```\n\nAdd the following config to your `config/local.json` and configure the `razorpay.key` \u0026 `razorpay.keySecret` to point to your Razorpay credential details.\n```\n\"razorpay\" : {\n  \"method_code\": \"razorpay\",\n  \"title\": \"Razorpay\",\n  \"endpoint\": \"http://localhost:8080/api/ext/payment-razorpay\",\n  \"api_url\": \"https://checkout.razorpay.com/v1/checkout.js\",\n  \"key\": \"{{RAZORPAY-KEY}}\",\n  \"keySecret\": \"{{RAZORPAY-KEY-SECRET}}\",\n  \"merchant\": \"Magento\",\n  \"theme\": \"#F37254\",\n  \"notes\": {\n    \"Title\": \"Description\"\n  }\n}\n```\n\n## Registration the Razorpay Payment extension\n\nAdd script import to `./src/modules/index.ts`\n```\n...\nimport { Razorpay } from './payment-razorpay'\n\nexport const registerModules: VueStorefrontModule[] = [\n ...,\n Url,\n Razorpay\n]\n```\n\n## Customization\n\nYou can also customize the appearance of Razorpay elements using some of following config.\n```\n\"razorpay\" : {\n  \"title\": \"Razorpay\",\n  \"merchant\": \"Magento\",\n  \"theme\": \"#F37254\",\n  \"notes\": {\n    \"Title\": \"Description\"\n  }\n}\n```\n\n# Razorpay Payment API extension\n\nInstall additional extension for `vue-storefront-api`:\n\n```\n$ cp -f ./API/payment-razorpay ../vue-storefront-api/src/api/extensions/\n```\n\nAdd the following config to your `./vue-storefront-api/config/local.json` for Registration\n```\n\"registeredExtensions\": [\n  ...\n  \"mail-service\",\n  \"payment-razorpay\"\n],\n```\n\nNeed to install razorpay extension dependency by running following command on root of `vue-storefront-api` directory\n```\nsudo npm i razorpay\nsudo yarn install\n```\n\nConfigure the `razorpay.key` \u0026 `razorpay.keySecret` to point to your Razorpay credentials details in `../vue-storefront-api/config/local.json`.\n```\n\"extensions\": {\n  ...,\n  \"razorpay\": {\n    \"key\": \"{{RAZORPAY-KEY}}\",\n    \"keySecret\": \"{{RAZORPAY-KEY-SECRET}}\"\n  }\n},\n```\n\n# Magento 2 integration\n\nMake sure [Razorpay](https://github.com/razorpay/razorpay-magento) Magento 2 extension should be configured properly at Magento instance.\n\nAfter Installation, Go to `vendor/razorpay/magento/Model/PaymentMethod.php` file and replace line no. 228 with below: \n```\n'razorpay_order_id'   =\u003e $request['paymentMethod']['additional_data']['rzp_order_id'] ?? $this-\u003eorder-\u003egetOrderId(),\n```\n\n# License\n\nThis project is licensed under the [MIT License](https://github.com/aureatelabs/vsf-payment-razorpay/blob/master/LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faureatelabs%2Fvsf-payment-razorpay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faureatelabs%2Fvsf-payment-razorpay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faureatelabs%2Fvsf-payment-razorpay/lists"}