PHPackages                             krishna035/icici-bank-corporate-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. krishna035/icici-bank-corporate-api

ActiveLibrary[API Development](/categories/api)

krishna035/icici-bank-corporate-api
===================================

PHP implementation for integrating with ICICI Bank Corporate API.

00PHP

Since Dec 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/krishna035/icici-bank-corporate-api-php)[ Packagist](https://packagist.org/packages/krishna035/icici-bank-corporate-api)[ RSS](/packages/krishna035-icici-bank-corporate-api/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

ICICI Bank Corporate API Integration
====================================

[](#icici-bank-corporate-api-integration)

This repository provides a PHP implementation for integrating with the ICICI Bank Corporate API. It includes a core API class `ICICIBankCorporateAPI` for handling various ICICI Bank services such as CIB Registration, Dealer Balance Check, Dealer Collection, and Payment Status Inquiry. Additionally, a sample script is provided to demonstrate how to use the API class.

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
    - [Configuration](#configuration)
    - [Example Test Cases](#example-test-cases)
- [API Methods](#api-methods)
    - [CIB Registration](#cib-registration)
    - [Dealer Balance Check](#dealer-balance-check)
    - [Dealer Collection](#dealer-collection)
    - [Payment Status Inquiry](#payment-status-inquiry)
- [Contributing](#contributing)
- [License](#license)

Installation
------------

[](#installation)

1. Clone this repository to your local environment:

    ```
    git clone https://github.com/krishna035/icici-bank-corporate-api-php.git
    ```
2. Ensure you have the necessary SSL certificates and public keys for ICICI Bank's Sandbox and Live environments.
3. Set up your server or local environment to run PHP scripts.

Usage
-----

[](#usage)

### Configuration

[](#configuration)

Before using the API, you must configure your credentials and paths in the `ICICIBankCorporateAPI` class.

1. **Client ID and Client Secret**: Replace the placeholders with your actual Client ID and Client Secret for both Sandbox and Live environments.

    ```
    $this->clientId = 'YOUR_SANDBOX_CLIENT_ID';
    $this->clientSecret = 'YOUR_SANDBOX_CLIENT_SECRET';
    ```
2. **Certificate Paths**: Replace the placeholder paths with the actual file paths where your certificates and public keys are stored.

    ```
    $this->caCertPath = '/path/to/your/certificates/YOUR_SANDBOX_CERTIFICATE.pem';
    $this->publicKey = file_get_contents('/path/to/your/certificates/YOUR_SANDBOX_PUBLIC_KEY.cer');
    ```

### Example Test Cases

[](#example-test-cases)

The `ICICICorporateAPITestCases.php` script provides example usage of the `ICICIBankCorporateAPI` class. It includes several test cases for common API requests.

1. **Running the Example Script**:
    - Open `ICICICorporateAPITestCases.php`.
    - Modify the `$testCase` variable to select the desired test case (e.g., `'CIBRegistration'`, `'DealerBalanceCheck'`, etc.).
    - Run the script on your server or local environment: ```
        php ICICICorporateAPITestCases.php
        ```
    - The script will output the request payload and the API response.

API Methods
-----------

[](#api-methods)

### CIB Registration

[](#cib-registration)

Registers a customer for Corporate Internet Banking (CIB).

- **Method**: `CIBRegistration($payload)`
- **Payload Parameters**:
    - `AGGRNAME`: Aggregator Name
    - `AGGRID`: Aggregator ID (random for testing)
    - `CORPID`: Corporate ID
    - `USERID`: User ID
    - `URN`: Unique Reference Number

### Dealer Balance Check

[](#dealer-balance-check)

Checks the balance for a dealer.

- **Method**: `DealerBalanceCheck($payload)`
- **Payload Parameters**:
    - `CORPID`: Corporate ID
    - `USERID`: User ID
    - `AGGRID`: Aggregator ID
    - `AGGRNAME`: Aggregator Name

### Dealer Collection

[](#dealer-collection)

Processes a dealer collection transaction.

- **Method**: `DealerCollection($payload)`
- **Payload Parameters**:
    - `CORPID`: Corporate ID
    - `USERID`: User ID
    - `DEBITACCT`: Debit Account Number
    - `CREDITACCT`: Credit Account Number
    - `TXN_AMOUNT`: Transaction Amount
    - `TXN_CURRENCY`: Transaction Currency (e.g., `INR`)
    - `URN`: Unique Reference Number
    - `AGGR_ID`: Aggregator ID
    - `UNIQUE_ID`: Unique Transaction ID (use the `generateRandomKey` method to create this)

### Payment Status Inquiry

[](#payment-status-inquiry)

Inquires about the status of a payment transaction.

- **Method**: `PaymentStatusInquiry($payload)`
- **Payload Parameters**:
    - `AGGRID`: Aggregator ID
    - `CORPID`: Corporate ID
    - `USERID`: User ID
    - `UNIQUEID`: Unique Transaction ID (same as used in `DealerCollection`)
    - `URN`: Unique Reference Number

Contributing
------------

[](#contributing)

We welcome contributions to improve this library! Please fork this repository and submit a pull request with your changes.

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor1

Top contributor holds 60% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/43237988?v=4)[Krishna Gajera](/maintainers/krishna035)[@krishna035](https://github.com/krishna035)

---

Top Contributors

[![krishna035](https://avatars.githubusercontent.com/u/43237988?v=4)](https://github.com/krishna035 "krishna035 (3 commits)")[![dipeshpatel09](https://avatars.githubusercontent.com/u/12229132?v=4)](https://github.com/dipeshpatel09 "dipeshpatel09 (2 commits)")

### Embed Badge

![Health badge](/badges/krishna035-icici-bank-corporate-api/health.svg)

```
[![Health](https://phpackages.com/badges/krishna035-icici-bank-corporate-api/health.svg)](https://phpackages.com/packages/krishna035-icici-bank-corporate-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k16](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
