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

ActiveLibrary[Payment Processing](/categories/payments)

haykkarapetyan/omnipay-ameriabank
=================================

Ameria Bank Package

1.0.0(7y ago)02.0k1[2 issues](https://github.com/Hayk009/omnipay-ameriabank/issues)MITPHP

Since Jul 4Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Omnipay: Ameriabank
===================

[](#omnipay-ameriabank)

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

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

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

[](#installation)

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

```
{
    "require": {
        "haykkarapetyan/omnipay-ameriabank": "dev-master"
    }
}
```

And run composer to update your dependencies:

```
composer update

```

Or you can simply run

```
composer require haykkarapetyan/omnipay-ameriabank

```

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

[](#basic-usage)

1. Use Omnipay gateway class:

```
    use Omnipay\Omnipay;
```

2. Initialize Ameriabank gateway:

```
$gateway = Omnipay::create('Ameriabank');
$gateway->setClientId('Client_ID'); // Shoud be your Ameriabank Client ID (e.g. 7e7ef8ff-6300-4a78-bb31-3ad1a8c67d5f)
$gateway->setUsername('Username');  // Should be your Ameria Username
$gateway->setPassword('Password');  // Should be your Ameria password
$gateway->setOpaque('Opaque');      // Is not mandatory field and used as additional information during information exchange
$gateway->setOrderId('Order_ID');   // Is randomly generated ID. Integer which is generated by using system local time e.g. time()
$gateway->setCurrency('AMD');       // Uses national currency e.g. AMD, USD, EUR
$gateway->setTestMode(false);       // Boolean and can be only true or false
$payment = $gateway->purchase([
     'amount' => '100',
     'returnUrl' => 'http://example.com/xxx',  // The URL to which you will be redirected after completing the purchase. Please also refer to poin 4 below
     'description' => 'Description ...'
    ]
)->createPaymentRequest();
```

3. Processing payment
    After payment request approval, call receive positive or negative response

```
if (empty($payment->GetPaymentIDResult->PaymentID) || $payment->GetPaymentIDResult->Respmessage != 'OK') {

    return $payment->GetPaymentIDResult; // in case if response was negative (rejected).

} else {
    $gateway->setPaymentId($payment->GetPaymentIDResult->PaymentID);            //if positive, call receive payment ID
    $gateway->setClientUrl("http://example.com/ameriarequestframe.aspx");       // Setting /ameriarequestframe.aspx inside your site
    $gateway->setLanguage('en');
    $response = $gateway->purchase()->send();                                   // generate unique URL
    return [
        'redirectUrl' => $response->getRedirectUrl()                            // redirection to previously generated unique URL
    ];
}
```

4. Completeng Payment
    You will be redirected to AmeriaBank VPOS form page. After filling and submitting credit card data AmeriaBank page will webhook  (refer to also to point 2)

```
$gateway = Omnipay::create('Ameriabank');
$gateway->setClientId('Client_ID'); // Shoud be your Ameriabank Client ID (e.g. 7e7ef8ff-6300-4a78-bb31-3ad1a8c67d5f)
$gateway->setUsername('Username');  // Should be your Ameria Username
$gateway->setPassword('Password');  // Should be your Ameria password
$gateway->setOrderId('Order_ID');   // Is randomly generated ID. Integer which is generated by using system local time e.g. time()
$gateway->setTestMode(false);       // Boolean and can be only true or false
$$webService = $gateway->completePurchase([
     'amount' => '100'
    ]
)->getPaymentFields();

if ($paymentFields = $webService->GetPaymentFieldsResult) {
   // Your logic
    return $paymentFields;
}

return $webService; // Return error text in case of connection errors
```

For testing puposes you should use only AMD currency and charge not more than 10 AMD

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

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

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

Unknown

Total

1

Last Release

2875d ago

### Community

Maintainers

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

---

Top Contributors

[![Hayk009](https://avatars.githubusercontent.com/u/10217581?v=4)](https://github.com/Hayk009 "Hayk009 (12 commits)")

### Embed Badge

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

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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