Bank Transfer
Offer bank transfer as a payment method to customers at Razorpay Checkout.
Accept payments from customers using online bank transfers at Razorpay Checkout.
Feature Request
This is an on-demand feature. Please raise a request with our
to get this feature activated on your Curlec account.- Customer selects bank transfer as the payment method on Checkout.
- A Customer Identifier 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 Customer Identifiers are linked to the bank account you have registered with Razorpay. The money will be settled to your account as per the settlement schedule. You can choose:
Watch Out!
All bank transfer payments are auto-captured.
of payments is not supported.This creates a new Customer Identifier per order, every time a customer selects bank transfer as the payment method on Checkout.
The bank transfer payment method will appear for the
and products such as Payment Links and Payment Pages.Payment Links and Payment Pages
No additional integration is required if you are using Payment Links and Payment Pages. Raise a request with our
to activate the feature on your account.Apart from enabling this feature on your account, complete the following steps to integrate this feature on your Razorpay Standard Integration:
If you have integrated with
, you must implement theondismiss
function to track the lifecycle of the Checkout modal. This displays the close
icon, which the customer can use to exit the Checkout.Handy Tips
If you are using
, you can rely on the "payment cancelled by user" error response to track the lifecycle of the Checkout modal."modal": {"ondismiss": function(){console.log(data);}}
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.
var rzp = new Razorpay(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. Know how to
Sample Payload
{"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": "+919000090000","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 Customer Identifier, whenever they use the bank transfer method on Checkout. This method requires specific integration steps, which are mentioned in the following section.
The bank transfer payment method will appear for the
and products such as Payment Links and Payment Pages.Payment Links and Payment Pages
No additional integration is required if you are using Payment Links and Payment Pages. Raise a request with our
to activate the feature on your account.Apart from enabling this feature on your account, you must implement the following steps in your payment gateway integration:
You must create a customer using the Customers API. You can also do this 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 Curlec Solution offerings.
name
optional
string
Customer's name. Alphanumeric value with period (.), apostrophe ('), forward slash (/), at (@) and parentheses are allowed. The name must be between 3-50 characters in length. For example, Nur Aisyah
.
contact
optional
string
The customer's phone number. A maximum length of 15 characters including country code. For example, +60748901142
.
optional
string
The customer's email address. A maximum length of 64 characters. For example, gaurav.kumar@example.com
.
fail_existing
optional
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.
notes
optional
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”
.
Order is an important step in the payment process.
- An order should be created for every payment.
- You can create an order using the . It is a server-side API call. Know how to Orders API.
- The
order_id
received in the response should be passed to the checkout. This ties the order with the payment and secures the request from being tampered.
Use this endpoint to create an order using the Orders API.
curl -X POST https://api.razorpay.com/v1/orders-U [YOUR_KEY_ID]:[YOUR_KEY_SECRET]-H 'content-type:application/json'-d '{"amount": 100,"currency": "MYR","receipt": "qwsaq1","partial_payment": true,"first_payment_min_amount": 230,"notes": {"key1": "value3","key2": "value2"}}'
amount
mandatory
integer
The amount to be paid by the customer in sen. For example, if the amount is RM 500.00, enter 50000
.
currency
mandatory
string
The currency in which the payment should be made by the customer. Length must be of 3 characters.
receipt
optional
string
Your receipt id for this order should be passed here. Maximum length is 40 characters.
notes
optional
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_payment
optional
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_amount
optional
integer
Minimum amount that must be paid by the customer as the first partial payment. For example, if an amount of RM 7,000.00 is to be received from the customer in two installments of #1 - RM 5,000.00, #2 - RM 2,000.00 then you can set this value as 500000
. This parameter should be passed only if partial_payment
is true
.
Know more about
.Descriptions for the response parameters are present in the
parameters table.The error response parameters are available in the
.You must pass the customer_id
and order_id
generated in the previous steps to Checkout, as shown below:
<button id="rzp-button1">Pay</button><script src="https://checkout.razorpay.com/v1/checkout.js"></script><script>var options = {"key": "<YOUR_KEY_ID>", // Enter the Key ID generated from the Dashboard"amount": "50000", // Amount is in currency subunits. Default currency is INR. Hence, 50000 refers to 50000 paise"currency": "INR","name": "Acme Corp","description": "Test Transaction","image": "https://cdn.razorpay.com/logos/BUVypPrCFaKDu3_large.jpg","order_id": "order_DBJOWzybf0sJbb","customer_id": "cust_1Aa00000000004","handler": function (response){alert(response.razorpay_payment_id);alert(response.razorpay_order_id);alert(response.razorpay_signature)},"theme": {"color": "#3399cc"}};var rzp1 = new Razorpay(options);document.getElementById('rzp-button1').onclick = function(e){rzp1.open();e.preventDefault();}</script>
(Only if you are using
)If you have integrated with Razorpay Standard Checkout, 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.
"modal": {"ondismiss": function(){console.log(data);}}
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.
var rzp = new Razorpay(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. Know how to
Sample Payload
{"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": "+919000090000","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}
Was this page helpful?