PHPackages                             arm092/omnipay-ameriabank - 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. arm092/omnipay-ameriabank

ActiveLibrary[Payment Processing](/categories/payments)

arm092/omnipay-ameriabank
=========================

AmeriaBank gateway for Omnipay payment processing library

1.0.2(3y ago)025↓50%MITPHPPHP ^7.4|8.\*

Since Feb 12Pushed 3y agoCompare

[ Source](https://github.com/arm092/omnipay-ameriabank)[ Packagist](https://packagist.org/packages/arm092/omnipay-ameriabank)[ Docs](https://github.com/arm092/omnipay-ameriabank)[ RSS](/packages/arm092-omnipay-ameriabank/feed)WikiDiscussions master Synced 1mo ago

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

Omnipay: AmeriaBank
===================

[](#omnipay-ameriabank)

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

[![Latest Stable Version](https://camo.githubusercontent.com/70c94235688c61e6f061b91b6db55c6869330156e396929dcb796fdfc6cbd5d9/68747470733a2f2f706f7365722e707567782e6f72672f61726d3039322f6f6d6e697061792d616d6572696162616e6b2f76657273696f6e2e706e67)](https://packagist.org/packages/arm092/omnipay-ameriabank)[![Total Downloads](https://camo.githubusercontent.com/101f1afafeb12210f245f40dd3aa939a707a54962d254a6d4be5d99aa65a50cc/68747470733a2f2f706f7365722e707567782e6f72672f61726d3039322f6f6d6e697061792d616d6572696162616e6b2f642f746f74616c2e706e67)](https://packagist.org/packages/arm092/omnipay-ameriabank)

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

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

[](#installation)

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

```
{
    "require": {
        "arm092/omnipay-ameriabank": "^1"
    }
}
```

And run composer to update your dependencies:

```
composer update

```

Or you can simply run

```
composer require arm092/omnipay-ameriabank

```

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')); // Merchant ID - Provided by bank
    $gateway->setUsername(env('AMERIA_USERNAME')); // Username - Provided by bank
    $gateway->setPassword(env('AMERIA_PASSWORD')); // Password - Provided by bank
    $purchase = $gateway->purchase(); // Creating purchase request
    $purchase->setReturnUrl(env('AMERIA_RETURN_URL')); // Return url, that should be point to your arca webhook route
    $purchase->setAmount(10); // Amount to charge - should be decimal - use only 10 AMD if you are in test mode
    $purchase->setTransactionId(XXXX); // Transaction ID from your system
    $purchase->setTestMode(true); // For enabling test mode
    $purchase->setOpaque(json_encode(['email' => 'user@example.com'])); // Is not mandatory field and used as additional information during information exchange
```

3. Call send, check if request is successful and redirect to AmeriaBank's hosted page

```
    $purchaseResponse = $purchase->send();
    if ($purchaseResponse->isSuccessfull()) {
        $purchaseResponse->setLanguage(\App::getLocale()); // Interface language ('am', 'ru', 'en')
        $purchaseResponse->setTestMode(true); // For enabling test mode
        $purchaseResponse->redirect();
    }
```

4. Create a webhook controller to handle the back URL request at your `AMERIA_RETURN_URL` and catch the webhook as follows

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

    $purchaseCompleteRequest = $gateway->completePurchase();
    $purchaseCompleteRequest->setTransactionId(request()->get('paymentID'));
    $purchaseCompleteResponse = $purchaseCompleteRequest->send();

    // Do the rest with $purchase and response with 'OK'
    if ($purchaseCompleteResponse->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/arm092/omnipay-ameria/issues), or better yet, fork the library and submit a pull request.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

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

1183d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/164d92f2197474470e0481c423db3b73140c82abdae8a9427e0dfba087e94bf3?d=identicon)[arm092](/maintainers/arm092)

---

Top Contributors

[![arm092](https://avatars.githubusercontent.com/u/26311312?v=4)](https://github.com/arm092 "arm092 (38 commits)")[![k3rnel](https://avatars.githubusercontent.com/u/44973047?v=4)](https://github.com/k3rnel "k3rnel (21 commits)")[![gaurav-ucraft](https://avatars.githubusercontent.com/u/59954080?v=4)](https://github.com/gaurav-ucraft "gaurav-ucraft (1 commits)")

---

Tags

paymentgatewaypaymerchantomnipaypurchasearcaAmeriaameria-bank

### Embed Badge

![Health badge](/badges/arm092-omnipay-ameriabank/health.svg)

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

###  Alternatives

[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)
