{"title":"Online Banking India for API only","category":"default","creationDate":1776961628,"content":"<p>You can add Online Banking India to your existing integration. The following instructions show only what you must add to your integration specifically for Online Banking India.<\/p>\n<p>If an instruction on this page corresponds with a step in the main integration guide, it includes a link to that corresponding step of the main integration guide.<\/p>\n<h2>Requirements<\/h2>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Requirement<\/th>\n<th style=\"text-align: left;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><strong>Integration type<\/strong><\/td>\n<td style=\"text-align: left;\">Make sure that you have an existing <a href=\"\/pt\/online-payments\/build-your-integration\/advanced-flow\/?platform=Web&amp;integration=API%20only\">API-only integration<\/a>.  <br> This page includes only instructions to add Online Banking India to your existing integration.<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Redirect handling<\/strong><\/td>\n<td style=\"text-align: left;\">Make sure that your existing integration is set up to <a href=\"\/pt\/online-payments\/build-your-integration\/advanced-flow\/?platform=Web&amp;integration=API%20only#handle-the-redirect\">handle the redirect<\/a>. <br>  <code>action.type<\/code>: <span translate=\"no\"><strong>redirect<\/strong><\/span><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>Setup steps<\/strong><\/td>\n<td style=\"text-align: left;\">Before you begin, <a href=\"\/pt\/payment-methods\/add-payment-methods\">add Online Banking India in your Customer Area<\/a>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Get Online Banking India as an available payment method<\/h2>\n<p>When you make the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/paymentMethods<\/a> to <a href=\"\/pt\/online-payments\/build-your-integration\/advanced-flow\/?platform=Web&amp;integration=API%20only#get-available-payment-methods\">get available payment methods<\/a>, specify the following so that Online Banking India is included in the response.<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Values<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods#request-countryCode\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">countryCode<\/a><\/td>\n<td><strong>IN<\/strong><\/td>\n<\/tr>\n<tr>\n<td> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods#request-amount-currency\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">amount.currency<\/a><\/td>\n<td><strong>INR<\/strong><\/td>\n<\/tr>\n<tr>\n<td> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods#request-channel\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">channel<\/a><\/td>\n<td><span translate=\"no\"><strong>Web<\/strong><\/span>, <span translate=\"no\"><strong>iOS<\/strong><\/span>, or <span translate=\"no\"><strong>Android<\/strong><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Build your payment form<\/h2>\n<div class=\"sc-notice info\"><div>\n<p>We provide the logo for Online Banking India that <a href=\"\/pt\/online-payments\/build-your-integration\/advanced-flow\/?platform=Web&amp;integration=API%20only#downloading-logos\">you can download<\/a>.<\/p>\n<\/div><\/div>\n<p>Your payment form for Online Banking India does the following:<\/p>\n<ol>\n<li>Show a list of available banks to your shopper. You can get the list of issuing banks from the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/paymentMethods\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/paymentMethods<\/a> response, in the object with <code>type<\/code>: <span translate=\"no\"><strong>onlineBanking_IN<\/strong><\/span>.<br \/>\nWe recommend that you dynamically create the payment form, because of the following:\n<ul>\n<li>The list of available issuers for Online Banking India can change often.<\/li>\n<li>There is a large number of small issuers. When you dynamically create the form, we recommend that you show the top ten issuers and include an option to show more issuers.<\/li>\n<\/ul><\/li>\n<li>When the shopper selects a bank, pass the corresponding\u00a0<code>issuer<\/code> value to your server.<\/li>\n<\/ol>\n<h2>Add additional parameters to your \/payments request<\/h2>\n<p>When you <a href=\"\/pt\/online-payments\/build-your-integration\/advanced-flow\/?platform=Web&amp;integration=API%20only#make-a-payment\">make a payment<\/a>, add the following parameters:<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Required<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>paymentMethod.issuer<\/code><\/td>\n<td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td>The issuing bank that the shopper selected.<\/td>\n<\/tr>\n<tr>\n<td> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/Checkout\/latest\/post\/payments#request-browserInfo\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">browserInfo<\/a><\/td>\n<td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td>The shopper's browser information.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Example request'\" :id=\"'payments-request'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;curl&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/checkout-test.adyen.com\\\/v72\\\/payments \\\\\\n-H 'x-api-key: ADYEN_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-d '{\\n  \\&quot;merchantAccount\\&quot;:\\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n  \\&quot;reference\\&quot;:\\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n  \\&quot;amount\\&quot;:{\\n    \\&quot;currency\\&quot;:\\&quot;INR\\&quot;,\\n    \\&quot;value\\&quot;:1000\\n  },\\n  \\&quot;paymentMethod\\&quot;:{\\n    \\&quot;type\\&quot;:\\&quot;onlinebanking_IN\\&quot;,\\n    \\&quot;issuer\\&quot;:\\&quot;CBI\\&quot;\\n  },\\n  \\&quot;returnUrl\\&quot;:\\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;,\\n  \\&quot;browserInfo\\&quot; : {\\n        \\&quot;acceptHeader\\&quot; : \\&quot;*\\\\\\\/*\\&quot;,\\n        \\&quot;colorDepth\\&quot; : 24,\\n        \\&quot;javaEnabled\\&quot; : false,\\n        \\&quot;language\\&quot; : \\&quot;en-US\\&quot;,\\n        \\&quot;screenHeight\\&quot; : 1440,\\n        \\&quot;screenWidth\\&quot; : 2560,\\n        \\&quot;timeZoneOffset\\&quot; : -330,\\n        \\&quot;userAgent\\&quot; : \\&quot;Mozilla\\\\\\\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\\/141.0.0.0 Safari\\\\\\\/537.36\\&quot;\\n  }\\n}'&quot;},{&quot;language&quot;:&quot;java&quot;,&quot;tabTitle&quot;:&quot;Java&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Java API Library v40.0.0\\nimport com.adyen.Client;\\nimport com.adyen.enums.Environment;\\nimport com.adyen.model.checkout.*;\\nimport java.time.OffsetDateTime;\\nimport java.util.*;\\nimport com.adyen.model.RequestOptions;\\nimport com.adyen.service.checkout.*;\\n\\n\\\/\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\nClient client = new Client(\\&quot;ADYEN_API_KEY\\&quot;, Environment.TEST);\\n\\n\\\/\\\/ Create the request object(s)\\nAmount amount = new Amount()\\n  .currency(\\&quot;INR\\&quot;)\\n  .value(1000L);\\n\\nGenericIssuerPaymentMethodDetails genericIssuerPaymentMethodDetails = new GenericIssuerPaymentMethodDetails()\\n  .type(GenericIssuerPaymentMethodDetails.TypeEnum.ONLINEBANKING_IN)\\n  .issuer(\\&quot;CBI\\&quot;);\\n\\nBrowserInfo browserInfo = new BrowserInfo()\\n  .acceptHeader(\\&quot;*\\\/*\\&quot;)\\n  .screenWidth(2560)\\n  .javaEnabled(false)\\n  .screenHeight(1440)\\n  .timeZoneOffset(-330)\\n  .language(\\&quot;en-US\\&quot;)\\n  .userAgent(\\&quot;Mozilla\\\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\\\/537.36 (KHTML, like Gecko) Chrome\\\/141.0.0.0 Safari\\\/537.36\\&quot;)\\n  .colorDepth(24);\\n\\nPaymentRequest paymentRequest = new PaymentRequest()\\n  .reference(\\&quot;YOUR_ORDER_NUMBER\\&quot;)\\n  .amount(amount)\\n  .merchantAccount(\\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;)\\n  .paymentMethod(new CheckoutPaymentMethod(genericIssuerPaymentMethodDetails))\\n  .returnUrl(\\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;)\\n  .browserInfo(browserInfo);\\n\\n\\\/\\\/ Send the request\\nPaymentsApi service = new PaymentsApi(client);\\nPaymentResponse response = service.payments(paymentRequest, new RequestOptions().idempotencyKey(\\&quot;UUID\\&quot;));&quot;},{&quot;language&quot;:&quot;php&quot;,&quot;tabTitle&quot;:&quot;PHP&quot;,&quot;content&quot;:&quot;&lt;?php\\n\\\/\\\/ Adyen PHP API Library v28.3.0\\nuse Adyen\\\\Client;\\nuse Adyen\\\\Environment;\\nuse Adyen\\\\Model\\\\Checkout\\\\Amount;\\nuse Adyen\\\\Model\\\\Checkout\\\\CheckoutPaymentMethod;\\nuse Adyen\\\\Model\\\\Checkout\\\\BrowserInfo;\\nuse Adyen\\\\Model\\\\Checkout\\\\PaymentRequest;\\nuse Adyen\\\\Service\\\\Checkout\\\\PaymentsApi;\\n\\n$client = new Client();\\n$client-&gt;setXApiKey(\\&quot;ADYEN_API_KEY\\&quot;);\\n\\\/\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\n$client-&gt;setEnvironment(Environment::TEST);\\n\\n\\n\\\/\\\/ Create the request object(s)\\n$amount = new Amount();\\n$amount\\n  -&gt;setCurrency(\\&quot;INR\\&quot;)\\n  -&gt;setValue(1000);\\n\\n$checkoutPaymentMethod = new CheckoutPaymentMethod();\\n$checkoutPaymentMethod\\n  -&gt;setType(\\&quot;onlinebanking_IN\\&quot;)\\n  -&gt;setIssuer(\\&quot;CBI\\&quot;);\\n\\n$browserInfo = new BrowserInfo();\\n$browserInfo\\n  -&gt;setAcceptHeader(\\&quot;*\\\/*\\&quot;)\\n  -&gt;setScreenWidth(2560)\\n  -&gt;setJavaEnabled(false)\\n  -&gt;setScreenHeight(1440)\\n  -&gt;setTimeZoneOffset(-330)\\n  -&gt;setLanguage(\\&quot;en-US\\&quot;)\\n  -&gt;setUserAgent(\\&quot;Mozilla\\\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\\\/537.36 (KHTML, like Gecko) Chrome\\\/141.0.0.0 Safari\\\/537.36\\&quot;)\\n  -&gt;setColorDepth(24);\\n\\n$paymentRequest = new PaymentRequest();\\n$paymentRequest\\n  -&gt;setReference(\\&quot;YOUR_ORDER_NUMBER\\&quot;)\\n  -&gt;setAmount($amount)\\n  -&gt;setMerchantAccount(\\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;)\\n  -&gt;setPaymentMethod($checkoutPaymentMethod)\\n  -&gt;setReturnUrl(\\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;)\\n  -&gt;setBrowserInfo($browserInfo);\\n\\n$requestOptions['idempotencyKey'] = 'UUID';\\n\\n\\\/\\\/ Send the request\\n$service = new PaymentsApi($client);\\n$response = $service-&gt;payments($paymentRequest, $requestOptions);&quot;},{&quot;language&quot;:&quot;cs&quot;,&quot;tabTitle&quot;:&quot;C#&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen .NET API Library v32.2.1\\nusing Adyen;\\nusing Environment = Adyen.Model.Environment;\\nusing Adyen.Model;\\nusing Adyen.Model.Checkout;\\nusing Adyen.Service.Checkout;\\n\\n\\\/\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\nvar config = new Config()\\n{\\n    XApiKey = \\&quot;ADYEN_API_KEY\\&quot;,\\n    Environment = Environment.Test\\n};\\nvar client = new Client(config);\\n\\n\\\/\\\/ Create the request object(s)\\nAmount amount = new Amount\\n{\\n  Currency = \\&quot;INR\\&quot;,\\n  Value = 1000\\n};\\n\\nGenericIssuerPaymentMethodDetails genericIssuerPaymentMethodDetails = new GenericIssuerPaymentMethodDetails\\n{\\n  Type = GenericIssuerPaymentMethodDetails.TypeEnum.OnlinebankingIN,\\n  Issuer = \\&quot;CBI\\&quot;\\n};\\n\\nBrowserInfo browserInfo = new BrowserInfo\\n{\\n  AcceptHeader = \\&quot;*\\\/*\\&quot;,\\n  ScreenWidth = 2560,\\n  JavaEnabled = false,\\n  ScreenHeight = 1440,\\n  TimeZoneOffset = -330,\\n  Language = \\&quot;en-US\\&quot;,\\n  UserAgent = \\&quot;Mozilla\\\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\\\/537.36 (KHTML, like Gecko) Chrome\\\/141.0.0.0 Safari\\\/537.36\\&quot;,\\n  ColorDepth = 24\\n};\\n\\nPaymentRequest paymentRequest = new PaymentRequest\\n{\\n  Reference = \\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n  Amount = amount,\\n  MerchantAccount = \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n  PaymentMethod = new CheckoutPaymentMethod(genericIssuerPaymentMethodDetails),\\n  ReturnUrl = \\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;,\\n  BrowserInfo = browserInfo\\n};\\n\\n\\\/\\\/ Send the request\\nvar service = new PaymentsService(client);\\nvar response = service.Payments(paymentRequest, requestOptions: new RequestOptions { IdempotencyKey = \\&quot;UUID\\&quot;});&quot;},{&quot;language&quot;:&quot;js&quot;,&quot;tabTitle&quot;:&quot;NodeJS (JavaScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v30.0.0\\nconst { Client, CheckoutAPI } = require('@adyen\\\/api-library');\\n\\n\\\/\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\nconst config = new Config({\\n  apiKey: \\&quot;ADYEN_API_KEY\\&quot;,\\n  environment: EnvironmentEnum.TEST\\n});\\n\\nconst client = new Client(config);\\n\\n\\\/\\\/ Create the request object(s)\\nconst paymentRequest = {\\n  merchantAccount: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n  reference: \\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n  amount: {\\n    currency: \\&quot;INR\\&quot;,\\n    value: 1000\\n  },\\n  paymentMethod: {\\n    type: \\&quot;onlinebanking_IN\\&quot;,\\n    issuer: \\&quot;CBI\\&quot;\\n  },\\n  returnUrl: \\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;,\\n  browserInfo: {\\n    acceptHeader: \\&quot;*\\\/*\\&quot;,\\n    colorDepth: 24,\\n    javaEnabled: false,\\n    language: \\&quot;en-US\\&quot;,\\n    screenHeight: 1440,\\n    screenWidth: 2560,\\n    timeZoneOffset: -330,\\n    userAgent: \\&quot;Mozilla\\\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\\\/537.36 (KHTML, like Gecko) Chrome\\\/141.0.0.0 Safari\\\/537.36\\&quot;\\n  }\\n}\\n\\n\\\/\\\/ Send the request\\nconst checkoutAPI = new CheckoutAPI(client);\\nconst response = checkoutAPI.PaymentsApi.payments(paymentRequest, { idempotencyKey: \\&quot;UUID\\&quot; });&quot;},{&quot;language&quot;:&quot;go&quot;,&quot;tabTitle&quot;:&quot;Go&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Go API Library v21.0.0\\nimport (\\n  \\&quot;context\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v21\\\/src\\\/common\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v21\\\/src\\\/adyen\\&quot;\\n  \\&quot;github.com\\\/adyen\\\/adyen-go-api-library\\\/v21\\\/src\\\/checkout\\&quot;\\n)\\n\\\/\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\nclient := adyen.NewClient(&amp;common.Config{\\n  ApiKey:      \\&quot;ADYEN_API_KEY\\&quot;,\\n  Environment: common.TestEnv,\\n})\\n\\n\\\/\\\/ Create the request object(s)\\namount := checkout.Amount{\\n  Currency: \\&quot;INR\\&quot;,\\n  Value: 1000,\\n}\\n\\ngenericIssuerPaymentMethodDetails := checkout.GenericIssuerPaymentMethodDetails{\\n  Type: \\&quot;onlinebanking_IN\\&quot;,\\n  Issuer: \\&quot;CBI\\&quot;,\\n}\\n\\nbrowserInfo := checkout.BrowserInfo{\\n  AcceptHeader: \\&quot;*\\\/*\\&quot;,\\n  ScreenWidth: 2560,\\n  JavaEnabled: false,\\n  ScreenHeight: 1440,\\n  TimeZoneOffset: -330,\\n  Language: \\&quot;en-US\\&quot;,\\n  UserAgent: \\&quot;Mozilla\\\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\\\/537.36 (KHTML, like Gecko) Chrome\\\/141.0.0.0 Safari\\\/537.36\\&quot;,\\n  ColorDepth: 24,\\n}\\n\\npaymentRequest := checkout.PaymentRequest{\\n  Reference: \\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n  Amount: amount,\\n  MerchantAccount: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n  PaymentMethod: checkout.GenericIssuerPaymentMethodDetailsAsCheckoutPaymentMethod(&amp;genericIssuerPaymentMethodDetails),\\n  ReturnUrl: \\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;,\\n  BrowserInfo: &amp;browserInfo,\\n}\\n\\n\\\/\\\/ Send the request\\nservice := client.Checkout()\\nreq := service.PaymentsApi.PaymentsInput().IdempotencyKey(\\&quot;UUID\\&quot;).PaymentRequest(paymentRequest)\\nres, httpRes, err := service.PaymentsApi.Payments(context.Background(), req)&quot;},{&quot;language&quot;:&quot;py&quot;,&quot;tabTitle&quot;:&quot;Python&quot;,&quot;content&quot;:&quot;# Adyen Python API Library v13.6.0\\nimport Adyen\\n\\nadyen = Adyen.Adyen()\\nadyen.client.xapikey = \\&quot;ADYEN_API_KEY\\&quot;\\n# For the LIVE environment, also include your liveEndpointUrlPrefix.\\nadyen.client.platform = \\&quot;test\\&quot; # The environment to use library in.\\n\\n# Create the request object(s)\\njson_request = {\\n  \\&quot;merchantAccount\\&quot;: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n  \\&quot;reference\\&quot;: \\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n  \\&quot;amount\\&quot;: {\\n    \\&quot;currency\\&quot;: \\&quot;INR\\&quot;,\\n    \\&quot;value\\&quot;: 1000\\n  },\\n  \\&quot;paymentMethod\\&quot;: {\\n    \\&quot;type\\&quot;: \\&quot;onlinebanking_IN\\&quot;,\\n    \\&quot;issuer\\&quot;: \\&quot;CBI\\&quot;\\n  },\\n  \\&quot;returnUrl\\&quot;: \\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;,\\n  \\&quot;browserInfo\\&quot;: {\\n    \\&quot;acceptHeader\\&quot;: \\&quot;*\\\/*\\&quot;,\\n    \\&quot;colorDepth\\&quot;: 24,\\n    \\&quot;javaEnabled\\&quot;: False,\\n    \\&quot;language\\&quot;: \\&quot;en-US\\&quot;,\\n    \\&quot;screenHeight\\&quot;: 1440,\\n    \\&quot;screenWidth\\&quot;: 2560,\\n    \\&quot;timeZoneOffset\\&quot;: -330,\\n    \\&quot;userAgent\\&quot;: \\&quot;Mozilla\\\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\\\/537.36 (KHTML, like Gecko) Chrome\\\/141.0.0.0 Safari\\\/537.36\\&quot;\\n  }\\n}\\n\\n# Send the request\\nresult = adyen.checkout.payments_api.payments(request=json_request, idempotency_key=\\&quot;UUID\\&quot;)&quot;},{&quot;language&quot;:&quot;rb&quot;,&quot;tabTitle&quot;:&quot;Ruby&quot;,&quot;content&quot;:&quot;# Adyen Ruby API Library v11.0.0\\nrequire \\&quot;adyen-ruby-api-library\\&quot;\\n\\nadyen = Adyen::Client.new\\nadyen.api_key = 'ADYEN_API_KEY'\\n# For the LIVE environment, also include your liveEndpointUrlPrefix.\\nadyen.env = :test # Set to \\&quot;live\\&quot; for live environment\\n\\n# Create the request object(s)\\nrequest_body = {\\n  :merchantAccount =&gt; 'ADYEN_MERCHANT_ACCOUNT',\\n  :reference =&gt; 'YOUR_ORDER_NUMBER',\\n  :amount =&gt; {\\n    :currency =&gt; 'INR',\\n    :value =&gt; 1000\\n  },\\n  :paymentMethod =&gt; {\\n    :type =&gt; 'onlinebanking_IN',\\n    :issuer =&gt; 'CBI'\\n  },\\n  :returnUrl =&gt; 'https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..',\\n  :browserInfo =&gt; {\\n    :acceptHeader =&gt; '*\\\/*',\\n    :colorDepth =&gt; 24,\\n    :javaEnabled =&gt; false,\\n    :language =&gt; 'en-US',\\n    :screenHeight =&gt; 1440,\\n    :screenWidth =&gt; 2560,\\n    :timeZoneOffset =&gt; -330,\\n    :userAgent =&gt; 'Mozilla\\\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\\\/537.36 (KHTML, like Gecko) Chrome\\\/141.0.0.0 Safari\\\/537.36'\\n  }\\n}\\n\\n# Send the request\\nresult = adyen.checkout.payments_api.payments(request_body, headers: { 'Idempotency-Key' =&gt; 'UUID' })&quot;},{&quot;language&quot;:&quot;ts&quot;,&quot;tabTitle&quot;:&quot;NodeJS (TypeScript)&quot;,&quot;content&quot;:&quot;\\\/\\\/ Adyen Node API Library v30.0.0\\nimport { Client, CheckoutAPI, Types } from \\&quot;@adyen\\\/api-library\\&quot;;\\n\\n\\\/\\\/ For the LIVE environment, also include your liveEndpointUrlPrefix.\\nconst config = new Config({\\n  apiKey: \\&quot;ADYEN_API_KEY\\&quot;,\\n  environment: EnvironmentEnum.TEST\\n});\\n\\nconst client = new Client(config);\\n\\n\\\/\\\/ Create the request object(s)\\nconst amount: Types.checkout.Amount = {\\n  currency: \\&quot;INR\\&quot;,\\n  value: 1000\\n};\\n\\nconst genericIssuerPaymentMethodDetails: Types.checkout.GenericIssuerPaymentMethodDetails = {\\n  type: Types.checkout.GenericIssuerPaymentMethodDetails.TypeEnum.OnlinebankingIn,\\n  issuer: \\&quot;CBI\\&quot;\\n};\\n\\nconst browserInfo: Types.checkout.BrowserInfo = {\\n  acceptHeader: \\&quot;*\\\/*\\&quot;,\\n  screenWidth: 2560,\\n  javaEnabled: false,\\n  screenHeight: 1440,\\n  timeZoneOffset: -330,\\n  language: \\&quot;en-US\\&quot;,\\n  userAgent: \\&quot;Mozilla\\\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\\\/537.36 (KHTML, like Gecko) Chrome\\\/141.0.0.0 Safari\\\/537.36\\&quot;,\\n  colorDepth: 24\\n};\\n\\nconst paymentRequest: Types.checkout.PaymentRequest = {\\n  reference: \\&quot;YOUR_ORDER_NUMBER\\&quot;,\\n  amount: amount,\\n  merchantAccount: \\&quot;ADYEN_MERCHANT_ACCOUNT\\&quot;,\\n  paymentMethod: genericIssuerPaymentMethodDetails,\\n  returnUrl: \\&quot;https:\\\/\\\/your-company.example.com\\\/checkout?shopperOrder=12xy..\\&quot;,\\n  browserInfo: browserInfo\\n};\\n\\n\\\/\\\/ Send the request\\nconst checkoutAPI = new CheckoutAPI(client);\\nconst response = checkoutAPI.PaymentsApi.payments(paymentRequest, { idempotencyKey: \\&quot;UUID\\&quot; });&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h2>Handle the additional action<\/h2>\n<p>You must <a href=\"\/pt\/online-payments\/build-your-integration\/advanced-flow\/?platform=Web&amp;integration=API%20only#additional-action\">handle the additional action<\/a> for Online Banking India.<\/p>\n<p>The <code>action.type<\/code> is <span translate=\"no\"><strong>redirect<\/strong><\/span>.<\/p>\n<h2>Test and go live<\/h2>\n<p>To test Netbanking offered in India, use the <a href=\"https:\/\/www.mystoredemo.io\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">MyStore demo<\/a>. At the bottom-right of the screen, select <strong>India<\/strong>.<\/p>\n<p><\/p>\n<p>Before you can accept live Online banking India payments, you need to submit a request for Online banking India in your <a href=\"https:\/\/ca-live.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">live Customer Area<\/a>.<\/p>\n<h2 id=\"see-also\">See also<\/h2>\n<div class=\"see-also-links output-inline\" id=\"see-also\">\n<ul><li><a href=\"\/online-payments\/build-your-integration\/advanced-flow\/?platform=Web&amp;integration=API%20only\"\n                        target=\"_self\"\n                        >\n                    API-only integration guide\n                <\/a><\/li><\/ul><\/div>\n","url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/online-banking-india\/api-only","articleFields":{"description":"Add Online Banking India to your API-only integration.","never_cache_twig":true,"parameters":{"flow":"Advanced","integration_guide_url":"\/online-payments\/build-your-integration\/advanced-flow\/?platform=Web&integration=API%20only","payment_method":"Online Banking India","payment_method_type":"onlinebanking_IN","payment_method_type_capitalized":"Onlinebanking_in","tx_variant":"onlinebanking_IN","tx_variant_capitalized":"Onlinebanking_in","country_codes":"<strong>IN<\/strong>","currency_codes":"<strong>INR<\/strong>","additional_api":"true","api_version":"none","action_type":"redirect","pm_directory":"online-banking-india","contact":"false"},"page_id":"3f8dd394-0fb2-4afe-976a-00501a586bac","feedback_component":true,"filters_component":false,"decision_tree":"[]"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/payment-methods\/online-banking-india\/api-only","title":"Online Banking India for API only","content":"You can add Online Banking India to your existing integration. The following instructions show only what you must add to your integration specifically for Online Banking India.\nIf an instruction on this page corresponds with a step in the main integration guide, it includes a link to that corresponding step of the main integration guide.\nRequirements\n\n\n\nRequirement\nDescription\n\n\n\n\nIntegration type\nMake sure that you have an existing API-only integration.   This page includes only instructions to add Online Banking India to your existing integration.\n\n\n\nRedirect handling\nMake sure that your existing integration is set up to handle the redirect.   action.type: redirect\n\n\n\nSetup steps\nBefore you begin, add Online Banking India in your Customer Area.\n\n\n\nGet Online Banking India as an available payment method\nWhen you make the  \/paymentMethods to get available payment methods, specify the following so that Online Banking India is included in the response.\n\n\n\nParameter\nValues\n\n\n\n\n countryCode\nIN\n\n\n amount.currency\nINR\n\n\n channel\nWeb, iOS, or Android\n\n\n\nBuild your payment form\n\nWe provide the logo for Online Banking India that you can download.\n\nYour payment form for Online Banking India does the following:\n\nShow a list of available banks to your shopper. You can get the list of issuing banks from the  \/paymentMethods response, in the object with type: onlineBanking_IN.\nWe recommend that you dynamically create the payment form, because of the following:\n\nThe list of available issuers for Online Banking India can change often.\nThere is a large number of small issuers. When you dynamically create the form, we recommend that you show the top ten issuers and include an option to show more issuers.\n\nWhen the shopper selects a bank, pass the corresponding\u00a0issuer value to your server.\n\nAdd additional parameters to your \/payments request\nWhen you make a payment, add the following parameters:\n\n\n\nParameter\nRequired\nDescription\n\n\n\n\npaymentMethod.issuer\n\nThe issuing bank that the shopper selected.\n\n\n browserInfo\n\nThe shopper's browser information.\n\n\n\n\n    \n\nHandle the additional action\nYou must handle the additional action for Online Banking India.\nThe action.type is redirect.\nTest and go live\nTo test Netbanking offered in India, use the MyStore demo. At the bottom-right of the screen, select India.\n\nBefore you can accept live Online banking India payments, you need to submit a request for Online banking India in your live Customer Area.\nSee also\n\n\n                    API-only integration guide\n                \n","type":"page","locale":"pt","boost":17,"hierarchy":{"lvl0":"Home","lvl1":"Payment methods","lvl2":"Online Banking India","lvl3":"Online Banking India for API only"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/payment-methods","lvl2":"https:\/\/docs.adyen.com\/pt\/payment-methods\/online-banking-india","lvl3":"\/pt\/payment-methods\/online-banking-india\/api-only"},"levels":4,"category":"Payment method","category_color":"green","tags":["Online","Banking","India"]},"articleFiles":{"payments-request.js":"<p alt=\"\">payments-request.js<\/p>"}}
