PHPackages                             armyan/omnipay-sagepaycoza - 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. armyan/omnipay-sagepaycoza

ActiveLibrary[Payment Processing](/categories/payments)

armyan/omnipay-sagepaycoza
==========================

SagePay.co.za driver for the Omnipay Laravel Payment processing library

1.0.3(6y ago)090MITPHP

Since Oct 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/arm-yan/omnipay-sagepaycoza)[ Packagist](https://packagist.org/packages/armyan/omnipay-sagepaycoza)[ Docs](https://github.com/armyan/omnipay-sagepaycoza)[ RSS](/packages/armyan-omnipay-sagepaycoza/feed)WikiDiscussions develop Synced yesterday

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

Omnipay: SagePayCoZa
====================

[](#omnipay-sagepaycoza)

**SagePayCoZa driver for the Omnipay Laravel payment processing library**

[![Latest Stable Version](https://camo.githubusercontent.com/cb30211ad14cee7c2bf1ff5d696ae6a05c4c59f0d5fe7d54fa59be364e57f14a/68747470733a2f2f706f7365722e707567782e6f72672f61726d79616e2f6f6d6e697061792d73616765706179636f7a612f762f737461626c65)](https://packagist.org/packages/armyan/omnipay-sagepaycoza)[![Total Downloads](https://camo.githubusercontent.com/beb0534bfe4103bd37c0113ee84731cb4bb16a8cbfd261d4de7546812da1fe1e/68747470733a2f2f706f7365722e707567782e6f72672f61726d79616e2f6f6d6e697061792d73616765706179636f7a612f642f746f74616c2e706e67)](https://packagist.org/packages/armyan/omnipay-sagepaycoza)

[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.5+. This package implements SagePayCoZa support for Omnipay.

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

[](#installation)

Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it to your `composer.json` file:

```
{
    "require": {
        "armyan/omnipay-sagepaycoza": "dev-master"
    }
}
```

And run composer to update your dependencies:

```
composer update

```

Or you can simply run

```
composer require armyan/omnipay-sagepaycoza

```

Basic Usage
-----------

[](#basic-usage)

1. Use Omnipay gateway class:

```
    use Omnipay\Omnipay;
```

2. Initialize SagePayCoZa gateway:

```
    $gateway = Omnipay::create('SagePay');
    $gateway->setVendorKey(env('VENDOR_KEY'));
    $gateway->setAccountId(env('ACCOUNT_ID'));
    $gateway->setServiceKey(env('SERVICE_KEY')); // Language
    $gateway->setAmount(10); // Amount to charge
    $gateway->setTransactionId(XXXX); // Transaction ID from your system
```

3. Call purchase, it will automatically redirect to SagePayCoZa's hosted page

```
    $purchase = $gateway->purchase()->send();
    $purchase->redirect();
```

4. Create a webhook controller to handle the callback request at your `RESULT_URL` and catch the webhook as follows

```
    $gateway = Omnipay::create('SagePay');
    $gateway->setAccountId(env('ACCOUNT_ID'));
    $gateway->setServiceKey(env('SERVICE_KEY'));

    $purchase = $gateway->completePurchase()->send();

    // Do the rest with $purchase and response with 'OK'
    if ($purchase->isSuccessful()) {

        // Your logic

    }

    return new Response('OK');
```

For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay)repository.

Support
-------

[](#support)

If you are having general issues with Omnipay, we suggest posting on [Stack Overflow](http://stackoverflow.com/). Be sure to add the [omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.

If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which you can subscribe to.

If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/arm-yan/omnipay-sagepaycoza/issues), or better yet, fork the library and submit a pull request.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

4

Last Release

2394d ago

### Community

Maintainers

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

---

Tags

paymentgatewaypaymerchantomnipaypurchasesagepay

### Embed Badge

![Health badge](/badges/armyan-omnipay-sagepaycoza/health.svg)

```
[![Health](https://phpackages.com/badges/armyan-omnipay-sagepaycoza/health.svg)](https://phpackages.com/packages/armyan-omnipay-sagepaycoza)
```

###  Alternatives

[omnipay/sagepay

Sage Pay driver for the Omnipay PHP payment processing library

561.2M7](/packages/omnipay-sagepay)[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

587421.0k11](/packages/lokielse-omnipay-alipay)

PHPackages © 2026

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