{"_id":"57023f49b977f60e00abd703","project":"54c83b5aab706219009e067b","user":{"_id":"5581540704ae5b0d00262929","username":"","name":"Nemo"},"initVersion":{"_id":"54dec8b6c2b4b70d009c3f0f","version":"1"},"__v":0,"hidden":false,"createdAt":"2016-04-04T10:17:45.621Z","fullscreen":false,"htmlmode":false,"html":"","body":"[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/OBG40NOQZumNn7aMXqka_MG.png\",\n        \"MG.png\",\n        \"1024\",\n        \"512\",\n        \"#d79174\",\n        \"\"\n      ],\n      \"caption\": \"Razorpay Plugin is now available for Magento 2.0\"\n    }\n  ]\n}\n[/block]\nWe have developed a plugin for Magento 2.x, which is an improved version of Magento 1.x. While most of the changes are not visible to the end user, a lot has been changed under the hood. You can follow this guide to integrate Razorpay with your website running Magento 2.x as backend.\n\n1. Go to your installation root directory of Magento and execute \n```\ncomposer require razorpay/magento dev-master-2.x\n```\n2. You can check if the installation was successful by executing following command in the Magento root directory\n```\nbin/magento module:status\n```\nYou should see `Razorpay_Magento` in the status. It might appear on the disabled modules list.\n3. Enable and deploy the Razorpay module using commands\n```\nbin/magento module:enable Razorpay_Magento\nbin/magento setup:upgrade\nbin/magento setup:static-content:deploy\n```\n4. Now, Sign-in to your Magento store.\n5. Click on the Stores tab present on the control panel to the left, now click on the Configuration tab under Settings panel.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/37PW0dJRkfWnbEksImBA_Screen%20Shot%202016-03-29%20at%208.44.43%20AM.png\",\n        \"Screen Shot 2016-03-29 at 8.44.43 AM.png\",\n        \"3355\",\n        \"1586\",\n        \"\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n6. On the Configuration page click on Sales tab on the left and choose Payment Methods.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/8nuvygNeQQe0xr9LCI2A_Screen%20Shot%202016-03-29%20at%208.46.27%20AM.png\",\n        \"Screen Shot 2016-03-29 at 8.46.27 AM.png\",\n        \"3353\",\n        \"1590\",\n        \"#ea5405\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n7. On the Payment Method page, navigate to Razorpay.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/VOWiCBxBRoaRKoeQTtd1_Screen%20Shot%202016-03-29%20at%208.48.06%20AM.png\",\n        \"Screen Shot 2016-03-29 at 8.48.06 AM.png\",\n        \"3353\",\n        \"1563\",\n        \"#e75508\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n8. Once Razorpay is selected, you need to enter your key ID and key Secret, which can be generated from your Razorpay Dashboard. In order to do so, log into the [Dashboard](https://dashboard.razorpay.com).\n9. On the left hand side, click on “**Api Keys**”. Click on “Generate Test Keys”, as shown below:\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/PDfQSt30QGqI24jz1J3f_2016-02-11_17-09-925x528.png\",\n        \"2016-02-11_17-09-925x528.png\",\n        \"925\",\n        \"528\",\n        \"#9c7974\",\n        \"\"\n      ],\n      \"caption\": \"Click the Generate Test Key button\"\n    }\n  ]\n}\n[/block]\n10. This will generate the Key ID and Key Secret as shown below. It is a good practice to download these key details or store them safely, as they might be required in the future as well.\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/oYV1Y5WESRSI5lnG9nlg_Screen%20Shot%202016-03-29%20at%201.32.44%20PM.png\",\n        \"Screen Shot 2016-03-29 at 1.32.44 PM.png\",\n        \"1240\",\n        \"582\",\n        \"#8c7cc4\",\n        \"\"\n      ],\n      \"caption\": \"Newly generated test key.\"\n    }\n  ]\n}\n[/block]\n11. Enter the Key ID and Key Secret in the credentials required on the Magento page, as shown below, and change Enabled to “Yes” and click on “Save Config”. This activates your account in the “**Test Mode**”. You can use this account to make a few test payments to ensure a successful workflow. Note that in “**Test Mode**”, no real money will be deducted from your account.\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/TI28VLoR02T96kNtg30w_Screen%20Shot%202016-03-29%20at%201.36.02%20PM.png\",\n        \"Screen Shot 2016-03-29 at 1.36.02 PM.png\",\n        \"3352\",\n        \"1692\",\n        \"#e75508\",\n        \"\"\n      ],\n      \"caption\": \"Provide the keys in your Magento Admin Panel\"\n    }\n  ]\n}\n[/block]\n12. Once your application has been reviewed successfully by Razorpay, you can go to the [Dashboard](https://dashboard.razorpay.com) and switch to “Live Mode”, as shown below\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/07F0CDR6TqeAV0NbEivF_Screen%20Shot%202016-02-11%20at%205.27.39%20pm.png\",\n        \"Screen Shot 2016-02-11 at 5.27.39 pm.png\",\n        \"1600\",\n        \"184\",\n        \"#24b4db\",\n        \"\"\n      ],\n      \"caption\": \"Switch from Live to Test mode\"\n    }\n  ]\n}\n[/block]\n13. After entering “Live Mode”, Generate Api Keys once again.\n14. Open your Magento payment settings. Under the “Razorpay” category, replace the old Key ID and Key Secret with the new ones.","slug":"magento","title":"Integrating your Magento store with Razorpay"}

Integrating your Magento store with Razorpay


[block:image] { "images": [ { "image": [ "https://files.readme.io/OBG40NOQZumNn7aMXqka_MG.png", "MG.png", "1024", "512", "#d79174", "" ], "caption": "Razorpay Plugin is now available for Magento 2.0" } ] } [/block] We have developed a plugin for Magento 2.x, which is an improved version of Magento 1.x. While most of the changes are not visible to the end user, a lot has been changed under the hood. You can follow this guide to integrate Razorpay with your website running Magento 2.x as backend. 1. Go to your installation root directory of Magento and execute ``` composer require razorpay/magento dev-master-2.x ``` 2. You can check if the installation was successful by executing following command in the Magento root directory ``` bin/magento module:status ``` You should see `Razorpay_Magento` in the status. It might appear on the disabled modules list. 3. Enable and deploy the Razorpay module using commands ``` bin/magento module:enable Razorpay_Magento bin/magento setup:upgrade bin/magento setup:static-content:deploy ``` 4. Now, Sign-in to your Magento store. 5. Click on the Stores tab present on the control panel to the left, now click on the Configuration tab under Settings panel. [block:image] { "images": [ { "image": [ "https://files.readme.io/37PW0dJRkfWnbEksImBA_Screen%20Shot%202016-03-29%20at%208.44.43%20AM.png", "Screen Shot 2016-03-29 at 8.44.43 AM.png", "3355", "1586", "", "" ] } ] } [/block] 6. On the Configuration page click on Sales tab on the left and choose Payment Methods. [block:image] { "images": [ { "image": [ "https://files.readme.io/8nuvygNeQQe0xr9LCI2A_Screen%20Shot%202016-03-29%20at%208.46.27%20AM.png", "Screen Shot 2016-03-29 at 8.46.27 AM.png", "3353", "1590", "#ea5405", "" ] } ] } [/block] 7. On the Payment Method page, navigate to Razorpay. [block:image] { "images": [ { "image": [ "https://files.readme.io/VOWiCBxBRoaRKoeQTtd1_Screen%20Shot%202016-03-29%20at%208.48.06%20AM.png", "Screen Shot 2016-03-29 at 8.48.06 AM.png", "3353", "1563", "#e75508", "" ] } ] } [/block] 8. Once Razorpay is selected, you need to enter your key ID and key Secret, which can be generated from your Razorpay Dashboard. In order to do so, log into the [Dashboard](https://dashboard.razorpay.com). 9. On the left hand side, click on “**Api Keys**”. Click on “Generate Test Keys”, as shown below: [block:image] { "images": [ { "image": [ "https://files.readme.io/PDfQSt30QGqI24jz1J3f_2016-02-11_17-09-925x528.png", "2016-02-11_17-09-925x528.png", "925", "528", "#9c7974", "" ], "caption": "Click the Generate Test Key button" } ] } [/block] 10. This will generate the Key ID and Key Secret as shown below. It is a good practice to download these key details or store them safely, as they might be required in the future as well. [block:image] { "images": [ { "image": [ "https://files.readme.io/oYV1Y5WESRSI5lnG9nlg_Screen%20Shot%202016-03-29%20at%201.32.44%20PM.png", "Screen Shot 2016-03-29 at 1.32.44 PM.png", "1240", "582", "#8c7cc4", "" ], "caption": "Newly generated test key." } ] } [/block] 11. Enter the Key ID and Key Secret in the credentials required on the Magento page, as shown below, and change Enabled to “Yes” and click on “Save Config”. This activates your account in the “**Test Mode**”. You can use this account to make a few test payments to ensure a successful workflow. Note that in “**Test Mode**”, no real money will be deducted from your account. [block:image] { "images": [ { "image": [ "https://files.readme.io/TI28VLoR02T96kNtg30w_Screen%20Shot%202016-03-29%20at%201.36.02%20PM.png", "Screen Shot 2016-03-29 at 1.36.02 PM.png", "3352", "1692", "#e75508", "" ], "caption": "Provide the keys in your Magento Admin Panel" } ] } [/block] 12. Once your application has been reviewed successfully by Razorpay, you can go to the [Dashboard](https://dashboard.razorpay.com) and switch to “Live Mode”, as shown below [block:image] { "images": [ { "image": [ "https://files.readme.io/07F0CDR6TqeAV0NbEivF_Screen%20Shot%202016-02-11%20at%205.27.39%20pm.png", "Screen Shot 2016-02-11 at 5.27.39 pm.png", "1600", "184", "#24b4db", "" ], "caption": "Switch from Live to Test mode" } ] } [/block] 13. After entering “Live Mode”, Generate Api Keys once again. 14. Open your Magento payment settings. Under the “Razorpay” category, replace the old Key ID and Key Secret with the new ones.