PHPackages                             gdbhosale/paywitheasebuzz-php - 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. gdbhosale/paywitheasebuzz-php

ActiveLibrary[API Development](/categories/api)

gdbhosale/paywitheasebuzz-php
=============================

PHP Package integration kit for pay with easebuzz pay.easebuzz.in

1.0.4(3y ago)24.1k↓45.8%MITPHPPHP &gt;=5.5

Since Mar 8Pushed 3y ago2 watchersCompare

[ Source](https://github.com/gdbhosale/paywitheasebuzz-php)[ Packagist](https://packagist.org/packages/gdbhosale/paywitheasebuzz-php)[ Docs](https://docs.easebuzz.in/docs/payment-gateway/ex7xej43lwl4g-php)[ RSS](/packages/gdbhosale-paywitheasebuzz-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

paywitheasebuzz-php
===================

[](#paywitheasebuzz-php)

PHP Laravel package for Easebuzz Payment Gateway pay.easebuzz.in

Software Requirement
====================

[](#software-requirement)

*Setup php kits on test/development/production environment install below software*

1. PHP 5.5 or above

Easebuzz Documentation for kit integration
==========================================

[](#easebuzz-documentation-for-kit-integration)

Installation
============

[](#installation)

A. Install via composer

```
composer require gdbhosale/paywitheasebuzz-php

```

B. Usage:

```
use Easebuzz\Easebuzz;

$MERCHANT_KEY = "10PBP71ABZ2";
$SALT = "ABC55E8IBW";
$ENV = "test";   // set enviroment name : test / development / production

$easebuzzObj = new Easebuzz($MERCHANT_KEY, $SALT, $ENV);

```

Easebuzz API calls:

1. Initiate Payment API

    POST Format and call initiatePaymentAPI

    ```
    $postData = array (
        "txnid" => "T3SAT0B5OL",
        "amount" => "100.0",
        "firstname" => "jitendra",
        "email" => "test@gmail.com",
        "phone" => "1231231235",
        "productinfo" => "Laptop",
        "surl" => "http://localhost:3000/response.php",
        "furl" => "http://localhost:3000/response.php",
        "udf1" => "aaaa",
        "udf2" => "aaaa",
        "udf3" => "aaaa",
        "udf4" => "aaaa",
        "udf5" => "aaaa",
        "address1" => "aaaa",
        "address2" => "aaaa",
        "city" => "aaaa",
        "state" => "aaaa",
        "country" => "aaaa",
        "zipcode" => "123123"
    );

    $easebuzzObj->initiatePaymentAPI($postData);

    ```

    ### Advanced Parameter:

    [](#advanced-parameter)

    - "sub\_merchant\_id" : - Mandatory parameter if you are using sub-aggregator feature otherwise not mandatory.Here Pass sub-aggregator id.You can create sub aggregator from Easebuzz dashboard web portal."
    - "unique\_id" : - Mandatory parameter if you are using customer save card feature otherwise not mandatory. This is customer’s unique id. You need to enable save card feature from the Easebuzz dashboard web portal.
    - "split\_payments" : - Mandatory parameter if you are using split payment feature otherwise not mandatory.You need to pass here payment slots in JSON format like {"label\_HDFC": 100,"label\_icici":100}, Please use label provided by Easebuzz team.

        ```
        e.g. "split_payments" => { "axisaccount" : 100, "hdfcaccount" : 100}

        ```
2. Transaction API

    POST Format and call transaction API

    ```
    $postData = array (
        "txnid" => "TZIF0SS24C",
        "amount" => "1.03",
        "email" => "test@gmail.com",
        "phone" => "1231231235"
    );

    $result = $easebuzzObj->transactionAPI($postData);

    ```
3. Transaction API (by date)

    POST Format and call transactionDateAPI

    ```
    $postData = array(
        "merchant_email" => "jitendra@gmail.com",
        "transaction_date" => "06-06-2018"
    );

    $result = $easebuzzObj->transactionDateAPI($postData);

    ```
4. Refund API

    POST Format and call refundAPI

    ```
    $postData = array(
        "txnid" => "ASD20088",
        "refund_amount" => "1.03",
        "phone" => "1231231235",
        "email" => "test@gmail.com",
        "amount" => "1.03"
    );

    $result = $easebuzzObj->refundAPI($postData);

    ```
5. Payout API

    POST Format and call payoutAPI

    ```
    $postData = array(
        "merchant_email" => "jitendra@gmail.com",
        "payout_date" => "08-06-2018"
    );

    $result = $easebuzzObj->payoutAPI($postData);

    ```
6. Handle Initiate Payment API response

    Note:- initiate payment API response will get for success URL or failure URL

    1. Import Easebuzz library ```
        use Easebuzz\Easebuzz;

        ```
    2. set $SALT ```
        $SALT = "ABC55E8IBW";

        ```
    3. create Easebuzz class object and pass $SALT. ```
        $easebuzzObj = new Easebuzz($MERCHANT_KEY = null, $SALT, $ENV = null);

        ```
    4. call Easebuzz class methods or functions ```
        $result = $easebuzzObj->easebuzzResponse($_POST);

        ```
7. If the server is not supporting the header():-

    *Note:- Please follow the below steps.*

    1. Go to the path easebuzz-lib/payment.php
    2. Open the payment.php file
    3. Goto the function \_paymentResponse($result) and un-comment the below code.

        ```
        function _paymentResponse($result){

            if ($result->status === 1){
                // first way (comment below line)
                // header( 'Location:' . $result->data );

                // second way (un-comment below code)
                echo "

                        window.location ='".$result->data."'

                ";

                exit();
            }else{
                //echo ''.$result['data'].'';
                print_r(json_encode($result));
            }
        }

        ```
8. If you have to enable ease checkout (iframe) in php kit :-

    Note:- Please follow the below steps.\*

    1. Go to the path easebuzz-lib/easebuzz\_payment\_gateway.php
    2. Open the easebuzz\_payment\_gateway.php file
    3. Go to the function initiatePaymentAPI($params, $redirect=False) change in below code.

        ```
        public function initiatePaymentAPI($params, $redirect=False) {
            return initiate_payment($params, $redirect, $this->MERCHANT_KEY, $this->SALT, $this->ENV);
        }

        ```
    4. $redirect parameter as False for ease checkout (iframe).
    5. $redirect parameter as True for Hosted checkout .

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~1 days

Total

5

Last Release

1161d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4520276?v=4)[Ganesh Bhosale](/maintainers/gdbhosale)[@gdbhosale](https://github.com/gdbhosale)

---

Top Contributors

[![ganeshabmiro](https://avatars.githubusercontent.com/u/106964289?v=4)](https://github.com/ganeshabmiro "ganeshabmiro (6 commits)")

---

Tags

phpapiclienteasebuzzpaywitheasebuzz

### Embed Badge

![Health badge](/badges/gdbhosale-paywitheasebuzz-php/health.svg)

```
[![Health](https://phpackages.com/badges/gdbhosale-paywitheasebuzz-php/health.svg)](https://phpackages.com/packages/gdbhosale-paywitheasebuzz-php)
```

###  Alternatives

[kunalvarma05/dropbox-php-sdk

Dropbox PHP API V2 SDK (Unofficial)

3633.0M18](/packages/kunalvarma05-dropbox-php-sdk)[mozex/anthropic-php

Anthropic PHP is a supercharged community-maintained PHP API client that allows you to interact with Anthropic API.

46365.1k13](/packages/mozex-anthropic-php)[google-gemini-php/symfony

Symfony Bundle for Gemini

149.4k1](/packages/google-gemini-php-symfony)[sima-land/api-php-client

Client library for Simaland APIs

311.5k](/packages/sima-land-api-php-client)

PHPackages © 2026

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