PHPackages                             faizpay/php-payment-sdk - 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. faizpay/php-payment-sdk

ActiveLibrary[Payment Processing](/categories/payments)

faizpay/php-payment-sdk
=======================

SDK for working with FaizPay payment APIs.

v1.0.4(4y ago)010.6k1MITPHP

Since Nov 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/fena-co/faizpay-php-payment-sdk)[ Packagist](https://packagist.org/packages/faizpay/php-payment-sdk)[ RSS](/packages/faizpay-php-payment-sdk/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (2)Versions (6)Used By (0)

FaizPay PHP Payment SDK
=======================

[](#faizpay-php-payment-sdk)

SDK for working with FaizPay payment APIs.

Documentation
-------------

[](#documentation)

Full documentation can be found at:

Requirements
------------

[](#requirements)

PHP 7.0.0 and later.

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

[](#installation)

You can install the bindings via Composer. Run the following command:

```
composer require faizpay/php-payment-sdk
```

To use the bindings, use Composer's autoload:

```
require_once('vendor/autoload.php');
```

Dependencies
------------

[](#dependencies)

- [`json`](https://secure.php.net/manual/en/book.json.php)
- [`mbstring`](https://secure.php.net/manual/en/book.mbstring.php) (Multibyte String)

Getting Started
---------------

[](#getting-started)

Simple new payment looks like:

```
use FaizPay\PaymentSDK\Connection;
use FaizPay\PaymentSDK\Payment;

$connection = Connection::createConnection(
    $terminalId = '8afa74ae-6ef9-48bb-93b2-9fe8be53db50',
    $terminalSecret = '55d7d5ed-be22-4321-bb3f-aec8524d8be2'
);

$payment = Payment::createPayment(
    $connection,
    $orderId = 'AA-11',
    $amount = '10.00'
);

$payment->process();
```

**Webhook / Notification Handling**

```
use FaizPay\PaymentSDK\Connection;
use FaizPay\PaymentSDK\NotificationHandler;

$connection = Connection::createConnection($terminalId, $terminalSecret);
$notificationHandler = NotificationHandler::createNotificationHandler($connection, $token = $_POST['token']);

// extract the order id
$orderId = $notificationHandler->getOrderID();

// fetch the order from your database
$data = findFromDatabase($orderId);

// if order is not found in system
if (checkIfEntryFound($data)) {
    echo "Invalid Token";
    die();
}

// validate if the requested payment matches with token
if (!$notificationHandler->validateAmount($data['amount'])) {
    echo "Invalid Token";
    die();
}

// all checks are passed - update the database to mark payment complete
updateDatabase($orderId, ['completed' => true]);
```

**Optional: Set User or Pre Selected Provider For New Payment**

```
use FaizPay\PaymentSDK\Connection;
use FaizPay\PaymentSDK\Payment;
use FaizPay\PaymentSDK\Provider;
use FaizPay\PaymentSDK\User;

$connection = Connection::createConnection($terminalId, $terminalSecret);
$payment = Payment::createPayment(
    $connection,
    $orderId = 'AA-11',
    $amount = '10.00'
);

$user = User::createUser(
    $email = 'john.doe@test.com',
    $firstName = 'John',
    $lastName = 'Doe',
    $contactNumber = '07000845953'
);
$payment->setUser($user);

$provider = Provider::createProvider(
    $providerId = 'lloyds-bank',
    $sortCode = '123456',
    $accountNumber = '12345678'
);
$payment->setProvider($provider);
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Total

5

Last Release

1762d ago

### Community

Maintainers

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

---

Top Contributors

[![slfaiz](https://avatars.githubusercontent.com/u/216867818?v=4)](https://github.com/slfaiz "slfaiz (20 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/faizpay-php-payment-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/faizpay-php-payment-sdk/health.svg)](https://phpackages.com/packages/faizpay-php-payment-sdk)
```

###  Alternatives

[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[cybersource/rest-client-php

Client SDK for CyberSource REST APIs

40952.8k6](/packages/cybersource-rest-client-php)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

123256.9k1](/packages/ellaisys-aws-cognito)[paypayopa/php-sdk

PHP SDK for PayPay Open Payment API

18313.8k5](/packages/paypayopa-php-sdk)

PHPackages © 2026

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