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

ActiveLibrary[Payment Processing](/categories/payments)

processwith/paywith-php
=======================

Easy multiple payments integration for PHP applications

v0.1-alpha(5y ago)422MITPHPPHP ^7.1

Since Nov 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/processwith/paywith-php)[ Packagist](https://packagist.org/packages/processwith/paywith-php)[ Docs](https://github.com/processwith/processwith-php)[ RSS](/packages/processwith-paywith-php/feed)WikiDiscussions master Synced 1w ago

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

 [![paywith repo image](https://raw.githubusercontent.com/processwith/processwith-assets/main/paywith-repo-featured%20image.png)](https://raw.githubusercontent.com/processwith/processwith-assets/main/paywith-repo-featured%20image.png)

Paywith
=======

[](#paywith)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ac696922addc8101576fa6500586acc528c614a3ca37f7110eda8facaa574c2c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70726f63657373776974682f706179776974682d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/processwith/paywith)[![](https://camo.githubusercontent.com/eafc480adaee0b8637a749e8c005cdd34c208c0338fefd47efce6eb3636537e5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f70726f63657373776974682f706179776974682d7068702e737667)](https://github.com/processwith/paywith-php/blob/master/LICENSE)[![](https://camo.githubusercontent.com/12e1dd4445e5990ee0ab5361be50095786f92d13fbbb9f14044ee8fae6c388e3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f70726f63657373776974682f70726f63657373776974682d7068702e737667)](https://travis-ci.com/github/processwith/paywith-php/)

Paywith makes it easy to use multiple payment gateways in your PHP application.

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

[](#installation)

You can install the package via composer:

```
composer require processwith/paywith-php
```

Usage
-----

[](#usage)

### basic transaction

[](#basic-transaction)

```
use ProcessWith\PayWith;

$paywith = new PayWith('Paystack', 'Your Paystack Secret');
$transaction->initialize([
    'amount' => 5000,
    'email'  => 'jeremiahsucceed@gmail.com',
    'callback_url' => 'http://localhost:3000/tests/verify',
    'currency' => 'NGN'
]);

$transaction->checkout(); // redirect to checkout page
```

Love more examples, see the example page.

### verify a transaction

[](#verify-a-transaction)

```
// Paywith must have be initialize with Paystack or Flutterwave
$transaction = $paywith->transaction();
$transaction->verify( $_GET['reference'] );

if( $transaction->status() )
{
    // check the email and the amount
    // before giving value
    $amount = 5000;
    $email  = 'jeremiah@gmail.com';

    if ( $amount == $transaction->getAmount() && $email == $transaction->getEmail() )
    {
        // give value
        // echo 'thanks for making payment';
    }
}
```

### webhook

[](#webhook)

```
// Paywith must have be initialize with Paystack or Flutterwave
$transaction    = $paywith->transaction();
$transaction->webhook();

if( $transaction->status() )
{
    // check the email and the amount
    // before giving value
    $amount = 5000;
    $email  = 'jeremiah@gmail.com';
    if ( $amount == $transaction->getAmount() && $email == $transaction->getEmail() )
    {
        // give value
        // echo 'thanks for making payment';
    }
}
```

### Tutorials

[](#tutorials)

We are making some plug and play tutorials. If you like to recieve one when it still HOT, click [here](#).

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Jeremiah Ikwuje](https://github.com/ijsucceed)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

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

Unknown

Total

1

Last Release

2022d ago

### Community

Maintainers

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

---

Top Contributors

[![jeremyikwuje](https://avatars.githubusercontent.com/u/20343924?v=4)](https://github.com/jeremyikwuje "jeremyikwuje (37 commits)")[![afsunday](https://avatars.githubusercontent.com/u/55183401?v=4)](https://github.com/afsunday "afsunday (5 commits)")

---

Tags

flutterwave-phppaystackpaystack-apipaystack-phpprocesswithravepayphppaystackraveflutterwavepaylinkmonnifyprocesswithpaywith

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/processwith-paywith-php/health.svg)

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

###  Alternatives

[kingflamez/laravelrave

A Laravel Package for Flutterwave Rave

151286.1k4](/packages/kingflamez-laravelrave)[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)

PHPackages © 2026

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