PHPackages                             karen6630/omnipay-ameria - 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. karen6630/omnipay-ameria

ActiveLibrary[Payment Processing](/categories/payments)

karen6630/omnipay-ameria
========================

Ameria gateway for Omnipay payment processing library

v1.0.0(1y ago)06MITPHPPHP 8.\*

Since Nov 23Pushed 8mo ago1 watchersCompare

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

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

Omnipay: Ameria
===============

[](#omnipay-ameria)

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](LICENSE)[![GitHub issues](https://camo.githubusercontent.com/bfccb6ffac83f71f21145854c58310dd9ff2cc952681f833b9e71929cb0b8471/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6b6172656e363633302f6f6d6e697061792d616d65726961)](https://github.com/karen6630/omnipay-ameria/issues)[![GitHub stars](https://camo.githubusercontent.com/a2c4192741e7a90c24429a941f450e2684505dae94d883919466ce9470a499a4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6b6172656e363633302f6f6d6e697061792d616d65726961)](https://github.com/karen6630/omnipay-ameria/stargazers)

**Ameria driver for the Omnipay Laravel payment processing library**
**Added the ability to cancel payment (CancelRequest) and refund payment (RefundRequest)**

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

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

[](#installation)

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

```
{
    "require": {
        "karen6630/omnipay-ameria": "dev-master"
    }
}
```

And run composer to update your dependencies:

```
composer update
```

Or you can simply run:

```
composer require karen6630/omnipay-ameria
```

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

[](#basic-usage)

1. Use Omnipay gateway class:

```
use Omnipay\Omnipay;
```

2. Initialize Ameria gateway:

```
$gateway = Omnipay::create('Ameria');
$gateway->setClientId(env('AMERIA_CLIENT_ID'));
$gateway->setUsername(env('AMERIA_USERNAME'));
$gateway->setPassword(env('AMERIA_PASSWORD'));
$gateway->setReturnUrl(env('AMERIA_RETURN_URL')); // Return URL (webhook)
$gateway->setLanguage(\App::getLocale());
$gateway->setAmount(10); // Amount to charge
$gateway->setTransactionId(XXXX); // Transaction ID from your system
```

3. Call purchase — it will automatically redirect to Ameria's hosted page:

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

4. Handle the callback request at your `AMERIA_RESULT_URL`:

```
$gateway = Omnipay::create('Ameria');
$gateway->setUsername(env('AMERIA_USERNAME'));
$gateway->setPassword(env('AMERIA_PASSWORD'));

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

if ($purchase->isSuccessful()) {
    // Your logic here
}

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

5. Added the ability to cancel payment (CancelRequest):

```
public function cancel(array $parameters = []): \Omnipay\Common\Message\AbstractRequest
{
    return $this->createRequest('\Omnipay\Ameria\Message\CancelRequest', $parameters);
}
```

6. Added the ability to refund payment (RefundRequest):

```
public function refund(array $parameters = []): \Omnipay\Common\Message\AbstractRequest
{
    return $this->createRequest('\Omnipay\Ameria\Message\RefundRequest', $parameters);
}
```

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/questions/tagged/omnipay) — use the `omnipay` tag.

If you want to stay updated with release announcements or discuss ideas for the project,
you can join the [mailing list](https://groups.google.com/forum/#!forum/omnipay).

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance49

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

588d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22687065?v=4)[karen6630](/maintainers/karen6630)[@karen6630](https://github.com/karen6630)

---

Top Contributors

[![karen6630](https://avatars.githubusercontent.com/u/22687065?v=4)](https://github.com/karen6630 "karen6630 (3 commits)")

---

Tags

paymentgatewaypaymerchantomnipaypurchasearcaAmeria

### Embed Badge

![Health badge](/badges/karen6630-omnipay-ameria/health.svg)

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

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

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

PHPackages © 2026

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