PHPackages                             parkwayprojects/paywithbank3d-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. parkwayprojects/paywithbank3d-php

ActiveLibrary

parkwayprojects/paywithbank3d-php
=================================

A PHP API wrapper for PayWithBank3D.

0.0.2(5y ago)161MITPHPPHP &gt;= 5.6.0

Since Jul 26Pushed 5y ago2 watchersCompare

[ Source](https://github.com/parkwayprojects/paywithbank3d-php)[ Packagist](https://packagist.org/packages/parkwayprojects/paywithbank3d-php)[ Docs](https://github.com/parkwayprojects/paywithbank3d-php)[ RSS](/packages/parkwayprojects-paywithbank3d-php/feed)WikiDiscussions master Synced yesterday

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

PayWithBank3D PHP
=================

[](#paywithbank3d-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a1e10efa1b517180ff5e044c01b7ed000ab01a4a10faa6e3fda8d6626e112c5f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7061726b77617970726f6a656374732f7061797769746862616e6b33642d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/parkwayprojects/paywithbank3d-php)[![Build Status](https://camo.githubusercontent.com/4e4eda8746ce9f12e84172ac5dcfd39eb15a24a870496aea75e8b1f97a2e34ec/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7061726b77617970726f6a656374732f7061797769746862616e6b33642d7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/parkwayprojects/paywithbank3d-php)[![Quality Score](https://camo.githubusercontent.com/437a5b290abb35807f258159ad0e1476dcac140990476d5548c0d3a7065165aa/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7061726b77617970726f6a656374732f7061797769746862616e6b33642d7068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/parkwayprojects/paywithbank3d-php)[![Total Downloads](https://camo.githubusercontent.com/4ca9cdab7fa18653af43d090a0dcb46485ae0e0549a4dec01f03eb6f05dc2dcb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7061726b77617970726f6a656374732f7061797769746862616e6b33642d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/parkwayprojects/paywithbank3d-php)

PayWithBank3D PHP is a library for using the PayWithBank3D API from PHP.

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

[](#installation)

You can install the package via composer:

```
composer require parkwayprojects/paywithbank3d-php
```

Usage
-----

[](#usage)

First you initialize the library with your public key, secret key and option(live or staging)

```
$bank3d = \ParkwayProjects\PayWithBank3D\PayWithBank3D::setup('Public Key', 'Secret Key', 'staging');
```

Transaction
-----------

[](#transaction)

initialize a transaction

```
\ParkwayProjects\PayWithBank3D\Transaction::addBody('reference', time())
            ->addBody('amount', '100000')
            ->addBody('currencyCode', 'NGN')
            ->addBody('customer', [
                'name' => 'Edward Paul',
                'email' => 'infinitypaul@live.com',
                'phone' => '0848494839'
            ])
            ->addBody('returnUrl', 'https://infinitypaul.com')
            ->addBody('color', '#FF0000')
            ->addBody('metadata', [
                'orderId'=> '1234'
            ])->getAuthorizationUrl()->redirectNow();
```

This will automatically take you to secure payment page on PayWithBank3D, Once payment is completed, you are redirected to the url you specify in the returnURL

Verify Transaction
------------------

[](#verify-transaction)

```
\ParkwayProjects\PayWithBank3D\Transaction::verify();
```

This return the status of the payment you just made and some other values of the transaction

Configuration Parameters
------------------------

[](#configuration-parameters)

ParameterRequiredDescriptionamountTrueAmount to be charged in kobo.colorFalseYou get to choose a theme color for the payment modal that reflects your brandcustomerTrueThis is an object that contains customer detailsemailFalseCustomer email addressmetadataFalseThis is an object that allows you to add additional detail(s) to your requestphoneFalsePhone number of customerreferenceFalseYour unique transaction reference.returnUrlTrueUrl Redirected To After A Successful Payment.### Testing

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

- [Paul Edward](https://github.com/infinitypaul)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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

2

Last Release

2115d ago

### Community

Maintainers

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

---

Top Contributors

[![infinitypaul](https://avatars.githubusercontent.com/u/15332137?v=4)](https://github.com/infinitypaul "infinitypaul (11 commits)")

---

Tags

payment gatewayinfinitypaulpaywithbank3d-phpparkwayprojects

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/parkwayprojects-paywithbank3d-php/health.svg)

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

###  Alternatives

[shetabit/multipay

PHP Payment Gateway Integration Package

291348.2k3](/packages/shetabit-multipay)[luigel/laravel-paymongo

A laravel wrapper for Paymongo API

7956.2k1](/packages/luigel-laravel-paymongo)[musahmusah/laravel-multipayment-gateways

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

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[creagia/redsys-php

Online payments with Redsys

1837.4k2](/packages/creagia-redsys-php)[karson/mpesa-php-sdk

172.2k](/packages/karson-mpesa-php-sdk)

PHPackages © 2026

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