Hi All,I want to add ICICI payment gateway in my web application.How to do it?

Dani AI

Generated

— practical path and gotchas.

can provide the official merchant onboarding and integration kit; correctly points out that using a payment aggregator is an alternative (tradeoffs: faster onboarding and tokenization vs higher fees and less control). The usual safe approach is:

  1. Get merchant credentials and a sandbox account from the bank.
  2. Choose flow: hosted redirect (gateway takes card data) or direct/transparent API (you collect card data — this increases PCI scope).
  3. Implement the payment initiation on the server: build the required parameter set, compute the checksum/signature exactly as the bank specifies, then either POST the user to the gateway or call the gateway server-to-server.
  4. Implement a secure return/callback endpoint that validates the gateway signature, verifies amount and order id, updates order state once (idempotency), and logs the full gateway response for debugging (mask card data).

Common ASP.NET implementation notes:

  • Always use HTTPS for callbacks and site pages involved in payments.
  • Verify the exact checksum algorithm and parameter ordering in the bank docs. A typical helper to compute an HMAC-SHA256 signature in C#:
using System;
using System.Text;
using System.Security.Cryptography;

static string ComputeHmacSha256(string data, string key)
{
    var keyBytes = Encoding.UTF8.GetBytes(key);
    var dataBytes = Encoding.UTF8.GetBytes(data);
    using (var hmac = new HMACSHA256(keyBytes))
    {
        var hash = hmac.ComputeHash(dataBytes);
        return BitConverter.ToString(hash).Replace("-", "").ToLowerInvariant();
    }
}

Troubleshooting checklist:

  • Signature mismatch: check parameter order, encoding (UTF-8), and whether to URL-encode before hashing.
  • Sandbox vs production credentials/endpoints mix-up.
  • Return URL must exactly match the one configured in merchant admin.
  • TLS 1.2+ requirement or firewall blocking outbound/inbound 443.
  • Amount format (paisa vs decimal) and duplicate order ids.

Banks provide exact field names, sample requests, and test card numbers in their kit — use those. If anything fails, capture the raw request/response and share it with bank support rather than guessing.

Hi All,I want to add ICICI payment gateway in my web application.How to do it?

Hi, we're from ICICI and will be glad to assist you. Please write to us at [email removed] with your contact details and we will contact you. Warm regards.

Hi All,I want to add ICICI payment gateway in my web application.How to do it?

I am sending you a link of company who Provides all payment gateways of all banks of india... www.ccavenue.com

Mark as Correct answer if i helped you...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.