Customer selects bank transfer as the payment method on Checkout.
A virtual bank account is created with bank account number and IFSC details and displayed to customer.
Customer copies these details and make a netbanking payment from their online banking portal.
These virtual bank accounts are linked to the bank account you have registered with Razorpay. The money will be settled to your account as per the settlement schedule.
Feature Request
This is an on-demand feature. Please raise a request with our Support team to get this feature activated on your Razorpay account.
If you have integrated with Razorpay Standard Checkout using the manual method, you must implement the ondismiss function to track the lifecyle of the Checkout modal. This displays the close icon, which the customer can use to exit the Checkout.
For bank transfer payments, Checkout will not give a success or a failure callback. You must attach event listeners to the Razorpay instance to track if and when the customer has selected the bank transfer payment method.
Here is the code to be added:
Copyvar rzp = newRazorpay(options);
rzp.on('payment.submit', function (data) {
if (data.method === 'bank_transfer') {
// User has selected Bank Transfer
}
});
You must subscribe to the virtual_account.credited webhook event on the Razorpay Dashboard to receive notifications whenever customers make payments using bank transfers. Learn how to setup webhooks.
Copy{"entity":"event","account_id":"acc_BFQ7uQEaa7j2z7","event":"virtual_account.credited","contains":["payment","virtual_account","bank_transfer"],"payload":{"payment":{"entity":{"id":"pay_DETA2KrOlhqQzF","entity":"payment","amount":50000,"currency":"INR","status":"captured","order_id":"order_DBJOWzybf0sJbb","invoice_id":null,"international":false,"method":"bank_transfer","amount_refunded":0,"amount_transferred":0,"refund_status":null,"captured":true,"description":"NA","card_id":null,"bank":null,"wallet":null,"vpa":null,"email":"gaurav.kumar@example.com","contact":"+919123456789","customer_id":"cust_1Aa00000000004","notes":[],"fee":731,"tax":112,"error_code":null,"error_description":null,"created_at":1567675983}},"virtual_account":{"entity":{"id":"va_DET8z3wBxfPB5L","name":"Acme Corp","entity":"virtual_account","status":"active","description":"Virtual Account to test webhook","amount_expected":null,"notes":{"Important":"Notes for Internal Reference"},"amount_paid":50000,"customer_id":"cust_1Aa00000000004","close_by":null,"closed_at":null,"created_at":1567675923,"receivers":[{"id":"ba_DET8z5Z5ghv4hW","entity":"bank_account","ifsc":"RATN0VAAPIS","bank_name":"RBL Bank","name":"Acme Corp","account_number":"1112220006712324"}]}},"bank_transfer":{"entity":{"id":"bt_DETA2KSUJ3uCM9","entity":"bank_transfer","payment_id":"pay_DETA2KrOlhqQzF","mode":"NEFT","bank_reference":"156767598340","amount":50000,"payer_bank_account":{"id":"ba_DETA2UuuKtKLR1","entity":"bank_account","ifsc":"KKBK0000007","bank_name":"Kotak Mahindra Bank","name":"Gaurav Kumar","account_number":"765432123456789"},"virtual_account_id":"va_DET8z3wBxfPB5L"}}},"created_at":1567675983}
This ensures that each customer will be allocated a unique virtual bank account, whenever they use bank transfer method on Checkout. This method requires specific integration steps, which are mentioned in the following section.
You must create a customer using the Customers ID. You can also do same using the Razorpay Dashboard.
The following endpoint creates or add a customer with basic details such as name and contact details. You can use this API for various Razorpay Solution offerings.
string Customer's name. Alphanumeric value with period (.), apostrophe (') and parentheses are allowed. The name must be between 3-50 characters in length. For example, Gaurav Kumar.
contact optional
string The customer's phone number. A maximum length of 15 characters including country code. For example, +919876543210.
email optional
string The customer's email address. A maximum length of 64 characters. For example, gaurav.kumar@example.com.
fail_existingoptional
string Possible values:
0: If a customer with the same details already exists, fetches details of the existing customer.
1 (default): If a customer with the same details already exists, throws an error.
gstinoptional
string Customer's GST number, if available. For example, 29XAbbA4369J1PA.
notesoptional
object This is a key-value pair that can be used to store additional information about the entity. It can hold a maximum of 15 key-value pairs, 256 characters (maximum) each. For example, "note_key": "Beam me up Scotty”.
string Unique identifier of the customer. For example, cust_1Aa00000000004.
name
string Customer's name. Alphanumeric, with period (.), apostrophe (') and parentheses allowed. The name must be between 3-50 characters in length. For example, Gaurav Kumar.
contact
string The customer's phone number. A maximum length of 15 characters including country code. For example, +919876543210.
email
string The customer's email address. A maximum length of 64 characters. For example, gaurav.kumar@example.com.
gstin
string GST number linked to the customer. For example, 29XAbbA4369J1PA.
notes
This is a key-value pair that can be used to store additional information about the entity. It can hold a maximum of 15 key-value pairs, 256 characters (maximum) each. For example, "note_key": "Beam me up Scotty”.
created_at
integer UNIX timestamp, when the customer was created. For example, 1234567890.
Pass the customer_id available in the response to Checkout.
CopyRazorpayClient client = new RazorpayClient(your_key_id, your_secret);
Dictionary<string, object> options = new Dictionary<string,object>();
options.Add("amount", 50000); // amount in the smallest currency unit
options.add("receipt", "order_rcptid_11");
options.add("currency", "INR");
Order order = client.Order.Create(options);
Here is the list of parameters for creating an order:
amountmandatory
integer The transaction amount, expressed in the currency subunit, such as paise (in case of INR). For example, for an actual amount of ₹299.35, the value of this field should be 29935.
currencymandatory
string The currency in which the transaction should be made. See the list of supported currencies. Length must be of 3 characters.
receiptoptional
string Your receipt id for this order should be passed here. Maximum length 40 characters.
notesoptional
json object Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, "note_key": "Beam me up Scotty”.
partial_paymentoptional
boolean Indicates whether the customer can make a partial payment. Possible values:
true: The customer can make partial payments.
false (default): The customer cannot make partial payments.
first_payment_min_amountoptional
integer Minimum amount that must be paid by the customer as the first partial payment. For example, if an amount of ₹7,000 is to be received from the customer in two installments of #1 - ₹5,000, #2 - ₹2,000, then you can set this value as 500000. This parameter should be passed only if partial_payment is true.
If you have integrated with Razorpay Standard Checkout using the manual method, you must implement the ondismiss function to track the lifecyle of the Checkout modal. This displays the close icon, which the customer can use to exit the Checkout.
For bank transfer payments, Checkout will not give a success or a failure callback. You must attach event listeners to the Razorpay instance to track if and when the customer has selected the bank transfer payment method.
Here is the code to be added:
Copyvar rzp = newRazorpay(options);
rzp.on('payment.submit', function (data) {
if (data.method === 'bank_transfer') {
// User has selected Bank Transfer
}
});
You must subscribe to the virtual_account.credited webhook event on the Razorpay Dashboard to receive notifications whenever customers make payments using bank transfers. Learn how to setup webhooks.
Copy{"entity":"event","account_id":"acc_BFQ7uQEaa7j2z7","event":"virtual_account.credited","contains":["payment","virtual_account","bank_transfer"],"payload":{"payment":{"entity":{"id":"pay_DETA2KrOlhqQzF","entity":"payment","amount":50000,"currency":"INR","status":"captured","order_id":"order_DBJOWzybf0sJbb","invoice_id":null,"international":false,"method":"bank_transfer","amount_refunded":0,"amount_transferred":0,"refund_status":null,"captured":true,"description":"NA","card_id":null,"bank":null,"wallet":null,"vpa":null,"email":"gaurav.kumar@example.com","contact":"+919123456789","customer_id":"cust_1Aa00000000004","notes":[],"fee":731,"tax":112,"error_code":null,"error_description":null,"created_at":1567675983}},"virtual_account":{"entity":{"id":"va_DET8z3wBxfPB5L","name":"Acme Corp","entity":"virtual_account","status":"active","description":"Virtual Account to test webhook","amount_expected":null,"notes":{"Important":"Notes for Internal Reference"},"amount_paid":50000,"customer_id":"cust_1Aa00000000004","close_by":null,"closed_at":null,"created_at":1567675923,"receivers":[{"id":"ba_DET8z5Z5ghv4hW","entity":"bank_account","ifsc":"RATN0VAAPIS","bank_name":"RBL Bank","name":"Acme Corp","account_number":"1112220006712324"}]}},"bank_transfer":{"entity":{"id":"bt_DETA2KSUJ3uCM9","entity":"bank_transfer","payment_id":"pay_DETA2KrOlhqQzF","mode":"NEFT","bank_reference":"156767598340","amount":50000,"payer_bank_account":{"id":"ba_DETA2UuuKtKLR1","entity":"bank_account","ifsc":"KKBK0000007","bank_name":"Kotak Mahindra Bank","name":"Gaurav Kumar","account_number":"765432123456789"},"virtual_account_id":"va_DET8z3wBxfPB5L"}}},"created_at":1567675983}