In the context of payment processing, particularly within some Indian payment gateway integrations, NB typically stands for Net Banking Codes. It is used as a parameter to identify a specific bank for online payments through Net Banking.
Understanding NB in Payment Integrations
When integrating Net Banking as a payment option, merchants often need to specify the customer's bank to the payment gateway. Instead of using full bank names, which can be inconsistent or prone to errors, a standardized code is used. This code is represented by "NB" in a parameter, usually alongside other information in the payment request.
For example, in a "Seamless integration" or "Server-to-Server" setup, you might see pg=NB&bankcode=ICICI
in the payment parameters. Here, NB
specifies that the payment is being made through Net Banking, and bankcode=ICICI
indicates that the payment is being made through ICICI Bank's Net Banking service.
How Net Banking Codes (NB) Work
- Merchant Integration: The merchant's system is set up to accept Net Banking payments via a payment gateway.
- Payment Request: When a customer chooses to pay via Net Banking, the merchant's system sends a payment request to the payment gateway.
- NB Parameter: The payment request includes the
pg=NB
parameter to specify Net Banking. - Bank Code: The payment request also includes a
bankcode
parameter with a specific code assigned to the customer's bank. This code is often provided by the payment gateway. For instance, "ICICI" for ICICI Bank, "HDFC" for HDFC Bank, etc. - Payment Gateway Processing: The payment gateway uses the
bankcode
to route the payment to the correct bank for authorization. - Transaction Completion: Upon successful authorization by the bank, the payment gateway confirms the transaction, and the merchant receives payment confirmation.
Example of NB Usage
Let's say a customer wants to pay via HDFC Bank's Net Banking. The payment gateway requires the bankcode
"HDFC". The relevant part of the payment request would then be:
pg=NB&bankcode=HDFC
This tells the payment gateway: "This is a Net Banking (NB) transaction, and the bank involved is HDFC Bank."