Available in🇮🇳 India
This section details the following wallet operations with an amount of ₹ 500 as an example:
- Load a Wallet: Customer wants to add ₹ 500 to the wallet.
- Accept Payments from a Wallet: Customer wants to pay ₹ 500 from the wallet.
- Refund to a Wallet: Merchant wants to refund ₹ 500 to a wallet.
- Send Cashback to a Wallet: Merchant wants to send ₹ 500 as a cashback to a wallet.
- Make a Payout
Prerequisites
- Set up your Razorpay account.
- Generate API Keys from Razorpay Dashoboard.
- Create a Customer.
Load a Wallet
When a customer adds funds or money into the wallet, it is called loading a wallet. A wallet is created only when a customer adds funds or money into the wallet for the first time. Follow the below steps for loading a wallet:- Customer proceeds to Checkout from the normal payment flow for an amount, say ₹ 500, using the selected payment mode (Net Banking/Debit card/Credit card/UPI).
- You authenticate the customer in your backend and make a capture payment request for the payment made and the amount gets credited to your account.
- You make a transfer payment request of ₹ 500 to the customer’s wallet.
- Customer’s wallet gets credited with ₹ 500 and your account gets debited with the same amount.
- Razorpay sends a ‘success information’ response which you may show to your customer.
Reloading the wallet at the time of checkout will have the same flow. This usually happens when the customer finds out that there is insufficient balance in the wallet at the time of making a payment.
Refer to the API Reference to see the APIs with the examples that are used in this operation.
Accept Payments from a Wallet
Follow the below steps for accepting payment from a wallet:- The customer initiates payment of ₹ 500 for an order from the wallet.
- You authenticate the customer in your backend and make a create payment request with the
customer_id. - You make a capture payment request for the payment of ₹ 500.
- ₹ 500 gets debited from the customer’s wallet and your account gets credited with the same amount.
Refer to the API reference to see the APIs with the examples that are used in this operation.
Refund to a Wallet
Follow the below steps to refund to a wallet when payment is made from a wallet:- You make a Refund to wallet request for a payment of ₹ 500 with the
payment_id. - Customer’s wallet gets credited with ₹ 500 and your account gets debited with the same amount.
Handy TipsRefunds are always made against a payment. While making a refund, the customer (payee) is identified using the
payment_id that is generated at the time of payment.
Refer to the API Reference to see the APIs with the examples that are used in this operation.
Send Cashback to a Wallet
Follow the below steps to send cashback to a wallet:- You make a direct transfer request of ₹ 500 with the
customer_id. - Customer’s wallet gets credited with ₹ 500 and your account gets debited with the same amount.
Handy TipsAs per RBI Domestic Money Transfer (DMT) guidelines, you can transfer a maximum of ₹ 25000 to other wallets in a calendar month.