Magento 2 Razorpay Route

Magento 2 Razorpay Route extension integrates Magento 2 with Razorpay Route API to split incoming payments to individual accounts and manage the payment money movements.

 

Table of Content

  1. Extension Installation Guide
  2. Add Product Attribute Values
  3. Assign Attribute Value to Products
  4. Configuration

 

  1. Extension Installation
  • For Magento Marketplace Customers
  • Create a folder structure in Magento root as app/code/Meetanshi/RazorpayRoute
  • Download and extract the zip folder and upload our extension files to the app/code/Meetanshi/RazorpayRoute via FTP.
    • Login to your SSH and run below commands step by step:
      • composer require razorpay/magento (*Don’t forget to run this command to install the Razorpay extension for Magento 2 as Razorpay Route can’t work without installing the Razorpay extension)
      • php bin/magento setup:upgrade
      • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
      • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
      • php bin/magento cache:flush

 

  • For Meetanshi Customers
    • Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
    • Login to your SSH and run below commands step by step:
      • composer require razorpay/magento (*Don’t forget to run this command to install the Razorpay extension for Magento 2 as Razorpay Route can’t work without installing the Razorpay extension)
      • php bin/magento setup:upgrade
      • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
      • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
      • php bin/magento cache:flush

 

  1. Add Product Attribute Values

Once the extension has been installed successfully, you can see new product attribute razorpay_sub_account created at Stores > Attributes > Product. Simple edit the razorpay_sub_account attribute and assign the sub account values to the same. These are the attribute values to which you will connect a specific Razorpay Route account ID and split the payments accordingly. For example, if you have 3 categories in your store named electronics, Jewelry and apparels, you will have to add them here and, in the configuration, you have to bind those 3 with a separate Razorpay Route account to get the payments splitted.

 

  1. Assign Attribute Value to Products
    Now, after you have added the attribute values to the product attribute razorpay_sub_account, move to Catalog > Products > Product Edit and assign the required attribute value to the product so that if anyone purchase this product, the payment of the same transferred to the account ID bound with this attribute value.

 

  1. Configuration
    To configure the extension, move to Stores à Configuration à Meetanshi à Razorpay Route where you can find various settings to configure the extension.
  • Razorpay Route: Enable or disable the extension from here.
  • Bind Sub-accounts with the Razorpay Route ID: Select a sub-account from the dropdown as you have set under the product attribute value and assign a relevant Razorpay Route account ID with the sub-account to transfer the payments accordingly.

Note: You have to add and manage multiple accounts in the Razorpay Route as shown here https://razorpay.com/docs/route/dashboard/#add-and-manage-linked-accounts and add those account IDs in the configuration here to bind with the sub-accounts.

  • Display Log: Set YES to display logs.