PHPackages                             inqord/paymenthelper - 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. [Payment Processing](/categories/payments)
4. /
5. inqord/paymenthelper

ActiveLibrary[Payment Processing](/categories/payments)

inqord/paymenthelper
====================

A multi-driver payment gateway integration helper for Laravel

v1.0.3(3mo ago)36MITPHPPHP ^8.1

Since Mar 15Pushed 3mo agoCompare

[ Source](https://github.com/inqord/paymenthelper)[ Packagist](https://packagist.org/packages/inqord/paymenthelper)[ Docs](https://github.com/inqord/paymenthelper)[ RSS](/packages/inqord-paymenthelper/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Inqord Payment Helper
=====================

[](#inqord-payment-helper)

A simple, multi-gateway abstract payment integration package for Laravel.

Currently supports:

- **EPS** (Easy Payment System)
- **SSLCommerz** (v4 API / IPN Verification)
- **bKash** (Tokenized Checkout API v1.2.0-beta)

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

[](#installation)

You can install the package via composer:

```
composer require inqord/paymenthelper
```

After installing, run the install command to publish the configuration and append the necessary environment variables to your `.env` file:

```
php artisan paymenthelper:install
```

Configuration
-------------

[](#configuration)

In your `.env` file, choose your default gateway and fill in your credentials. For example, to use EPS:

```
PAYMENT_GATEWAY=eps

EPS_ENABLED=true
EPS_VERIFY_SSL=true
EPS_MERCHANT_ID=your_merchant_id
EPS_STORE_ID=your_store_id
EPS_USER_NAME=your_username
EPS_PASSWORD=your_password
EPS_HASH_KEY=your_hash_key
EPS_API_URL=https://sandboxpgapi.eps.com.bd
```

Usage
-----

[](#usage)

Use the provided `PaymentHelper` facade to initiate payments and verify callbacks effortlessly.

### 1. Initiate a Payment

[](#1-initiate-a-payment)

```
use Inqord\PaymentHelper\Facades\PaymentHelper;
use Inqord\PaymentHelper\DataTransferObjects\PaymentRequest;

$checkoutUrl = PaymentHelper::initiate(new PaymentRequest([
    'transaction_id' => 'INV-12345',
    'amount'         => 500.00,
    'customer_name'  => 'John Doe',
    'customer_email' => 'john@example.com',
    'customer_phone' => '01700000000',
    'success_url'    => route('payment.success'),
    'fail_url'       => route('payment.fail'),
    'cancel_url'     => route('payment.cancel'),

    // Optional Dynamic Shipping/Product Fields
    'currency'          => 'BDT',
    'customer_address'  => 'Dhanmondi, Dhaka',
    'customer_city'     => 'Dhaka',
    'customer_postcode' => '1205',
    'customer_country'  => 'Bangladesh',
    'shipping_method'   => 'NO',
    'num_of_item'       => 1,
    'product_category'  => 'Tuition Fee',
    'product_profile'   => 'general',
    'intent'            => 'sale', // Primarily used for bKash

    // Secure Gateway Metadata Passthrough
    'metadata'       => [
        'user_id' => 5,
        'item'    => 'premium_subscription'
    ]
]));

return redirect($checkoutUrl);
```

### 2. Verify a Payment (Success Callback/Webhook)

[](#2-verify-a-payment-success-callbackwebhook)

```
use Illuminate\Http\Request;
use Inqord\PaymentHelper\Facades\PaymentHelper;

public function paymentSuccess(Request $request)
{
    $verification = PaymentHelper::verify($request);

    if ($verification->isSuccessful()) {
        $transactionId = $verification->transactionId;
        $amount = $verification->amount;
        $metadata = $verification->metadata; // Contains 'user_id' and 'item' from above

        // Your database logic to mark the order as paid...
        return redirect('/dashboard')->with('success', 'Payment successful!');
    }

    return redirect('/dashboard')->with('error', 'Payment failed or declined.');
}
```

Creating Custom Drivers
-----------------------

[](#creating-custom-drivers)

This package uses Laravel's `Manager` pattern. You can easily extend it by calling `PaymentHelper::extend('custom_gateway', function($app) { ... })` in your AppServiceProvider.

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance81

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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 ~0 days

Total

4

Last Release

101d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e49db1b939dabdff6ec24c55c7575eee501bfbd6ebbf5b9eca6814f91d3a2b3?d=identicon)[inqord](/maintainers/inqord)

![](https://www.gravatar.com/avatar/d6d6ae0dcc61470f01dac0d31fb5bd8ceb81a9217556422ae90a90a11836b319?d=identicon)[mehedihasanfaiyaz](/maintainers/mehedihasanfaiyaz)

---

Top Contributors

[![mehedihasanfaiyaz](https://avatars.githubusercontent.com/u/71901812?v=4)](https://github.com/mehedihasanfaiyaz "mehedihasanfaiyaz (5 commits)")

---

Tags

laravellaravel-packagepaymentpayment gatewaypayment-helper

### Embed Badge

![Health badge](/badges/inqord-paymenthelper/health.svg)

```
[![Health](https://phpackages.com/badges/inqord-paymenthelper/health.svg)](https://phpackages.com/packages/inqord-paymenthelper)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

882.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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