Back to Top

User Guide for Magento 2 Multi Vendor Razorpay Split Payment 

Updated 6 November 2023

Magento 2 Multi Vendor Razorpay Split Payment module enhances your marketplace by allowing store owners to use the Razorpay gateway to pay their sellers directly through the Multi Vendor marketplace.

Customers can checkout using the Razorpay payment method, their payment is processed securely and seamlessly.

The Razorpay payment gateway is PCI DSS Level 1 compliant, which means that it meets the highest security standards in the industry. This helps to protect customers’ financial information and also provides a wide variety of payment options, including credit cards, debit cards, UPI, net banking, and wallets. This makes it easy for customers to pay for products and services in the way that they prefer.

Note:

  • In order to use this module, you need to have the Magento 2 Multi Vendor Module installed and active.
  • The store’s default currency should be Indian Rupees (INR) to receive payments.
  • The admin must have a certain amount of money added to their respective Razorpay account to receive payments
  • Razorpay only supports Indian Rupees (INR) transactions.

Features- Marketplace Razorpay Payment

  • Customers can pay securely using Razorpay at checkout.
  • Payments are split among marketplace sellers and store admin.
  • Supports a variety of payment methods, including credit cards, debit cards, UPI, net banking, and wallets.
  • Sellers can link their bank accounts to Razorpay for direct payment transfers.
  • Admin/seller can quickly refund invoiced amounts.
  • Admin receives commissions; the rest goes to seller accounts.
  • Admin can enable automatic invoice with Magento 2 Multi Vendor Razorpay Split Payment.
  • Data security is prioritized and PCI compliance standards are adhered to.
  •  Old carts can be cleared to promote a clean shopping experience.
  • Admin can choose between “Authorized and Capture” or “Authorized Only” for payment capture flexibility.
  • Allow sellers to view all Razorpay transactions in their dashboard.

Installation

Download Module

Firstly, you need to log in to the Webkul Store, go to My Account>My Purchased Products section, verify, and then download and extract the contents of this zip folder on the system.

Upload Folder

Once the module zip is extracted, follow path src>app and then copy the app folder into the Magento 2 root directory on the server as shown below:

Searching for an experienced
Magento 2 Company ?
Find out More
Upload Folder

Run Commands

You need to run the following commands:

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
php bin/magento cache:flush

Also, you need to install the Razorpay via the below command:

composer require razorpay/razorpay:2.*

After running the commands, you have to flush the cache from the Adobe Commerce Cloud admin panel by navigating through->System->Cache management as shown below.

Installation Of Magento2 Marketplace Razorpay Payment

Language Translation

For translating the module language, navigate through src/app/code/Webkul/VendorSplitPaymentRazorpay/ and edit the en_US.csv file. Thereafter, rename the CSV as “en_SA.csv” and translate all right side content after the comma in the Arabic language. After editing the CSV, save it.

translation of Magento2 Marketplace Razorpay Payment

Then upload it to the path src/app/code/Webkul/VendorSplitPaymentRazorpay/ where Magento 2 is install on the server. The module gets translated into the Arabic Language. It supports both RTL and LTR languages.

The user can edit the CSV like the image below configuration of Razorpay marketplace

Language translator -i18

Generate API Key and Secret Key

API Key and Secret Key:

First signup for a Razorpay account or login if you have an existing account.

Razorpay -API Key and Secret Key:

Fill in Your Details: Provide the necessary information to create your Razorpay account. This typically includes your email address, business name, and contact information.

API Key and Secret Key:

Verify Your Email: After completing the sign-up form, you’ll receive an email from Razorpay with a verification link. Click on the link to verify your email address.

Complete Business Details: Once your email is verified, log in to your Razorpay account and complete your business details. This includes information like your business type, address, and contact details.

razorpay kyc process
API Key and Secret Key:4

Bank Account Verification: Link your business bank account to your Razorpay account. This involves providing your bank account number and IFSC code. Razorpay will verify the account details.

personal bank details

Provide KYC Documents: Upload your KYC document as shown in the screenshot

document verification

Get API Keys: Go to Settings > API Keys. Click to “Generate Key tab.

dashboard

Use the generated API Key and Secret Key for integration

key generate

Please Note- The key you have added would be live or test.

Register for Webhooks details

Webhooks automate communication between apps. Events trigger them and send data about the event to the specified URL.

Navigate to the “My Account & Settings” section in your Razorpay dashboard.

In the “Developer Controls” section, you’ll find options related to webhooks. Click on “Edit Webhooks.”

To add a webhook, you need to find the webhook URL, create a secret key, choose the event, and click a button.

Add “payout.processed” and “payout.reversed” as active events.

webhok

Admin Configuration:

Go to the Magento 2 admin panel and navigate to Stores > Configuration > Sales > Payment Methods.

Initial configuration for Magento 2 Multi Vendor Razor pay Split Payment
  • Title: The admin can add Title for the Razorpay payment method.
  • Merchant name: Displayed in the Razorpay payment popup screen.
  • Payment action: You can choose to authorize the payment only or authorize and capture the payment immediately.
  • Pending Orders Cron: This will enable cron to move pending orders to Cancel status for a given timeout.
  • Pending Order Timeout: Set timeout in minutes (default: 30 minutes).
  • Note- Time out updates between a range of 20 minutes to 43200 minutes (30 days).
  • Reset Cart Cron: Enable/Disable cron for resetting the cart from new to canceled status for a given timeout.
  • Reset cart timeout: Enable cron for resetting the cart from new to canceled status for a given timeout.
  • Reset cart timeout: Set timeout in minutes (default: 30 minutes). A timeout can update between the range of 20 minutes and 43200 minutes (30 days).
  • Auto Generate Invoice: Admin can enable auto-generation of invoices for order management

Below find more settings for admin configurations

configuration of razorpay marketplace
  • API Key: Set API Publishable key provided by Razorpay Payment Gateway.
  • API Secret Key: Set API key provided by Razorpay Payment Gateway.
  • Webhooks secret: The admin can generate the webhook and see the collected data from the Razorpay dashboard.
  • Webhook Events: Select the event to receive real-time notifications.
  • This is for events, such as when an order is paid or a payment is authorized.

Rest setting as per the below screenshot.

Configuration-Settings-Stores-Magento-Admin-2

Admin can select all supported countries or they have an option to select a specific country to allow customers to make payments.

Seller End Workflow:

Once the seller has registered themself in the marketplace, the seller will be able to connect to the Razorpay account and start accepting payments from your customers.

In the Sellers dashboard, sellers navigate to the Settings where they can click on to Connect to Razorpay option:

Marketplace-Seller-Dashboard

Once sellers click to connect to Razor Pay they redirect to the page where they can enter all details Legal Business Name, select business type from the dropdown add category and subcategory.

connect razorpay account

Please note these are dependent field sellers who need to select a subcategory based on the category he selects for their business subcategory.

Please refer to this link for category and subcategory- https://razorpay.com/docs/api/payments/route/appendix/#business-sub-category

Note- For Razor Pay Connect seller needs to select India as the default country.

After that seller needs to enter bank details to collect online payment transfers using the Razorpay payment option

You will need to link your bank account by providing your bank account number and IFSC code.

image-278

Once your bank account links, you will be able to receive payments directly into your bank account and your status will display as active

active-seller-dashbaord

Note- Only the admin can change the account details for sellers in their Razorpay dashboard.

Razorpay Transactions:

Sellers can view all Razorpay transactions under the “Razorpay Transaction” tab for their respective orders.

Seller Razorpay Transactions

Customer Workflow – Marketplace Razorpay

Customer Places an Order:

A customer adds products to their cart and proceeds to checkout in the Multi-Vendor Marketplace.

shopping cart

Click on Proceed to Checkout to continue, Adds shipping method and details during checkout.

Proceed to Checkout

Payment Processing

At the payment step, choose “Razorpay” as the payment method.

Checkout-using-razorpay

On clicking “Pay Now,” a Razorpay popup appears with multiple payment options like – Credit/debit card, net banking, pay later, wallet option, and QR/UPI.

Checkout-razorpay-payement-popup

If the “Pay using card” option is chosen, card details are entered.

razorpay-payement-option

Click on “Pay Now” to complete the payment. Customers can cancel payments using the “Cancel” icon and the system asks for confirmation for cancellation.

After successful payment, a payment confirmation is made, and the invoice auto-generates.

sucussful-payment

Customers can check order details under the My Order section.

order

You can also checkout our stripe

Online Refund – Admin End

The admin initiates a refund by opening the invoice slip.

 invoice slip

On the invoice slip page, they’ll find a “Credit Memo” button. Click the “Credit Memo” button reveal options for refund: Refund Online.

Choosing “Refund Online” will return the invoice amount to the customer’s account.

image-302

Refund initiate -Seller End

Sellers locate the “Orders” or “Transactions” section where they can view a list of their recent orders.

From the list, sellers find the order for which a refund needs to be processed.

seller-refund

After creating the credit memo, the seller can see the details of the credit memo and can view the refund details as well.

The Magento 2 RMA System Marketplace module can help you automate the refund process and make it easier for your customers to return items.

refund2

Multi Vendor Razorpay Dashboard

The admin logs in to the Razorpay Dashboard using their credentials and navigates to Transactions.

In the “Payments” section, the admin can see a list of recent payments initiated by customers.
Each transaction is viewed with details such as transaction ID, date, customer name, and payment amount.

Marketplace Razorpay

The admin can use filters and search options to locate specific payments quickly.

Clicking on a payment ID opens a detailed view that provides more information about the order.

Marketplace Razorpay

In the detailed view, the admin can see the payment status (successful, pending, failed), payment method used (credit card, debit card, UPI), and customer details.

Order Splitting:

The order amount automatically splits between the involved sellers and the admin according to the pre-configured commission settings.

Razorpay-Dashboard-5

The admin has set commission rates for each seller in the marketplace. Based on the commission rates, the system calculates the commission amount for each seller and the remaining amount for the admin

The calculated commission amounts are automatically transferred to the respective sellers’ accounts linked with Razorpay. The remaining amount is transferred to the admin’s account.

Payment Actions: Status

Razorpay supports two types of payment actions:

  • Authorized: This action authorizes the fund availability first and then, later on, captures the fund manually. This is useful for merchants who want to verify the fund availability before capturing the payment.
  • Authorized and Capture: This action authorizes/verifies the fund availability and then captures the fund automatically. This is useful for merchants who want to capture the payment immediately after the customer completes the checkout process.
payment-type

Route Transfer

Razorpay’s “Route Transfer” feature allows admin to easily move funds from their Razorpay account to sellers’ accounts after deducting commissions.

Admins can view transferable amounts, initiate transfers, deduct fees, and track transactions in real-time.

Razorpay-route-transfer

Route Reversal

With “Route Reversal,” the admin can process refunds by reversing transaction amounts back to customers.

They identify refundable transactions, initiate reversals, track refund status, and maintain records for accurate reporting.

Razorpay-Dashboard-3

Connected seller’s accounts

To view a list of accounts connected to the Razorpay platform, including accounts of sellers in the Multi Vendor Marketplace, the admin navigates to the “Route” section and clicks on the “Accounts” option.

Razorpay-route

Clicking on a connected account opens a detailed view that provides more comprehensive information about the account.

Note: Sellers with dashboard access through connected accounts need to perform a “Forgot Password” to log in.

Support

Thus, that’s all for the Magento 2 Multi Vendor Razorpay Split Payment. Still, if have any issues or concerns please Email us at [email protected] 

You may also browse other Adobe Commerce marketplace add-ons and our quality Magento 2 extensions.

Current Product Version - 5.0.1

Supported Framework Version - Magento 2.0.x, 2.1.x, 2.2.x,2.3.x, 2.4.x

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home

Table of Content