Netbanking Payment

Create a payment transaction for NetBanking. Once you have the response, depending on the “method” attribute, you will have to take the next step. If you receive GET, then take the value in the “URL” attribute and redirect the user to this location. If you receive POST, then “params” attribute will hold a map containing key-value pairs.

For Web, you can create a form with these parameters as hidden variables and auto submit the form. Example code in Javascript: Serialize Parameters.

For Android, serialize this data such that it can be loaded to WebView directly via postData. Example code in Java: Serialize Parameters.

payment_methodBank
NB_AXISAxis Bank
NB_BOIBank of India
NB_BOMBank of Maharashtra
NB_CBICentral Bank Of India
NB_CORPCorporation Bank
NB_DCBDevelopment Credit Bank
NB_FEDFederal Bank
NB_HDFCHDFC Bank
NB_ICICIICICI Netbanking
NB_IDBIIndustrial Development Bank of India
NB_INDBIndian Bank
NB_INDUSIndusInd Bank
NB_IOBIndian Overseas Bank
NB_JNKJammu and Kashmir Bank
NB_KARNKarnataka Bank
NB_KVBKarur Vysya
NB_SBBJState Bank of Bikaner and Jaipur
NB_SBHState Bank of Hyderabad
NB_SBIState Bank of India
NB_SBMState Bank of Mysore
NB_SBTState Bank of Travancore
NB_SOIBSouth Indian Bank
NB_UBIUnion Bank of India
NB_UNIBUnited Bank Of India
NB_VJYBVijaya Bank
NB_YESBYes Bank
NB_CUBCityUnion
NB_CANRCanara Bank
NB_SBPState Bank of Patiala
NB_CITICiti Bank NetBanking
NB_DEUTDeutsche Bank
NB_KOTAKKotak Bank
NB_DLSDhanalaxmi Bank
NB_INGING Vysya Bank
NB_ANDHRAAndhra Bank
NB_PNBCORPPunjab National Bank CORPORATE
NB_PNBPunjab National Bank
NB_BOBBank of Baroda
NB_CSBCatholic Syrian Bank
NB_OBCOriental Bank Of Commerce
NB_SCBStandard Chartered Bank
NB_TMBTamilnad Mercantile Bank
NB_SARASBSaraswat Bank
NB_SYNBSyndicate Bank
NB_UCOBUCO Bank
NB_BOBCORPBank of Baroda Corporate
NB_ALLBAllahabad Bank
NB_BBKMBank of Bahrain and Kuwait
NB_JSBJanata Sahakari Bank
NB_LVBCORPLakshmi Vilas Bank Corporate
NB_LVBLakshmi Vilas Bank Retail
NB_NKGSBNorth Kanara GSB
NB_PMCBPunjab and Maharashtra Coop Bank
NB_PNJSBPunjab and Sind Bank
NB_RATNRatnakar Bank
NB_RBSRoyal Bank of Scotland
NB_SVCBShamrao Vithal Coop Bank
NB_TNSCTamil Nadu State Apex Coop Bank
NB_DENADENA Bank
NB_COSMOSCOSMOS Bank
NB_DBSDBS Bank Ltd
NB_DCBBDCB BANK Business
NB_SVCSVC Cooperative Bank
NB_BHARATBharat Bank
NB_KVBCORPKarur Vysya Corporate Banking
NB_UBICORPUnion Bank Corporate Banking
NB_IDFCIDFC Bank
NB_NAIBThe Nainital Bank

Handling POST
When you get POST as the authentication method in the response, then the customer must be redirected using a form. Example HTML code is given to you. Depending on your client language, choose the appropriate way to create the form.

<form method="POST" action="$authentication.url" id="authForm">
  {{ for key in  $authentication.params }}
  <input type="hidden" name="$key" value="$authentication.params[$key]">
  {{ end }}
</form>
<script type="text/javascript">
 document.forms["authForm"].submit()
</script>

Handling GET
When you get GET as the authentication method in the response, you may load the URL directly into the customer’s browser. You can easily achieve this by sending HTTP 302 from your server. However, if the API call was made from the browser, then you can utilize the code snippet provided.

<!-- Example for handling GET response -->
<script type="text/javascript">
 // assuming that you are passing the JSON response of /txns API directly here
 function handleJuspayGetResponse(juspayResponse) {
   window.location.href = juspayResponse.payment.authentication.url
 }
 handleJuspayGetResponse(response)
</script>
Language
Click Try It! to start a request and see the response here!