PHPackages                             samyan/omnipay-ecopayz - 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. samyan/omnipay-ecopayz

ActiveLibrary[Payment Processing](/categories/payments)

samyan/omnipay-ecopayz
======================

Ecopayz driver for the Omnipay payment processing library

v2.2.0(7y ago)12.0k↓76.9%MITPHP

Since Apr 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/samyan/omnipay-ecopayz)[ Packagist](https://packagist.org/packages/samyan/omnipay-ecopayz)[ Docs](https://github.com/samyan/omnipay-ecopayz)[ RSS](/packages/samyan-omnipay-ecopayz/feed)WikiDiscussions master Synced 3d ago

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

Omnipay: Ecopayz
================

[](#omnipay-ecopayz)

**Ecopayz driver for the Omnipay V3 PHP payment processing library**

[![Build Status](https://camo.githubusercontent.com/e99ad0d14c34d93931cb00ed2b86f6dd97b54e91beec92709a966c3d90ab2845/68747470733a2f2f7472617669732d63692e6f72672f73616d79616e2f6f6d6e697061792d65636f7061797a2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/samyan/omnipay-ecopayz) [![Latest Stable Version](https://camo.githubusercontent.com/59a31427a159e19bdecad9fc241bd7340088f9be0d830707fb73e93050076608/68747470733a2f2f706f7365722e707567782e6f72672f73616d79616e2f6f6d6e697061792d65636f7061797a2f762f737461626c652e706e67)](https://packagist.org/packages/samyan/omnipay-ecopayz) [![Total Downloads](https://camo.githubusercontent.com/b00aa08cd0357f9bb0e3dfdf8624e544edc517b8329fc66ef8d41edde5192adc/68747470733a2f2f706f7365722e707567782e6f72672f73616d79616e2f6f6d6e697061792d65636f7061797a2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/samyan/omnipay-ecopayz) [![Latest Unstable Version](https://camo.githubusercontent.com/1c41de62fb9b12b5fc53619ebd0c9dd5a14dae7ee5ff90c878b7063b2381b607/68747470733a2f2f706f7365722e707567782e6f72672f73616d79616e2f6f6d6e697061792d65636f7061797a2f762f756e737461626c652e706e67)](https://packagist.org/packages/samyan/omnipay-ecopayz) [![License](https://camo.githubusercontent.com/42dd31020792595473caa58ad1b3711537697aab5186411953b65469ad3e216f/68747470733a2f2f706f7365722e707567782e6f72672f73616d79616e2f6f6d6e697061792d65636f7061797a2f6c6963656e73652e706e67)](https://packagist.org/packages/samyan/omnipay-ecopayz)

[Omnipay](https://github.com/omnipay/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements [Ecopayz](http://www.ecopayz.com) support for Omnipay.

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

[](#installation)

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

```
{
    "require": {
        "samyan/omnipay-ecopayz": "~2.2.0"
    }
}
```

And run composer to update your dependencies:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

```

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

[](#basic-usage)

The following gateways are provided by this package:

- Ecopayz

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

**Purchase Example:**

```
$gateway = Omnipay::create('Ecopayz');

// You code
// { . . . }

$params = array(
	'customerIdAtMerchant' => $customerIdAtMerchant,
	'transactionId' => $transactionId,
	'amount' => $amount,
	'currency' => $currency,
	'notifyUrl' => $notifyUrl,
	'returnUrl' => $returnUrl,
	'cancelUrl' => $cancelUrl
);

$request = $gateway->purchase($params);
$response = $request->send();

if ($response->isRedirect() === true) {
	echo $response->getRedirectUrl();
}
```

**PurchaseComplete Example:**

```
// You code
// { . . . }

$request = $gateway->completePurchase();
$response = $request->send();

// Check if ok
if (!$response->isSuccessful()) {
	return false;
}

// Get XML object
$xml = $response->getData();

$resultCode = (string)$xml->TransactionResult->Code;

// Check transaction status
switch ($resultCode) {
	case '0':
		$state = 'success';
		break;
	case '1':
		$state = 'failed';
		break;
	case '2':
		$state = 'cancelled';
		break;
	case '3':
		$state = 'failed';
		break;
	case '4':
		$state = 'pending';
		break;
	case '5':
		$state = 'cancelled';
}

// You code
// { . . . }

// At the end print the response to Ecopayz  (obligatory for completation of purchase)
echo $response->getXmlData();
```

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/samyan/omnipay-ecopayz/issues), or better yet, fork the library and submit a pull request.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

3

Last Release

2621d ago

### Community

Maintainers

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

---

Top Contributors

[![samyan](https://avatars.githubusercontent.com/u/3801362?v=4)](https://github.com/samyan "samyan (13 commits)")

---

Tags

paymentgatewaypaymerchantomnipayecopayz

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/samyan-omnipay-ecopayz/health.svg)

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

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

557422.8k11](/packages/lokielse-omnipay-alipay)[omnipay/mollie

Mollie driver for the Omnipay payment processing library

631.8M10](/packages/omnipay-mollie)[sudiptpa/omnipay-nabtransact

National Australia Bank (NAB) Transact driver for the Omnipay payment processing library.

1019.5k](/packages/sudiptpa-omnipay-nabtransact)[lucassmacedo/omnipay-mercadopago

MercadoPago gateway for OmniPay

155.4k](/packages/lucassmacedo-omnipay-mercadopago)

PHPackages © 2026

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