PHPackages                             hovakimyannn/omnipay-epg - 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. hovakimyannn/omnipay-epg

ActiveLibrary[Payment Processing](/categories/payments)

hovakimyannn/omnipay-epg
========================

SmartVista EPG (E-Commerce Payment Gateway) driver for Omnipay. Supports Arca, and any other EPG-based bank.

v1.0.1(yesterday)12↑1400%MITPHPPHP ^7.2|8.\*

Since Apr 6Pushed yesterdayCompare

[ Source](https://github.com/Hovakimyannn/omnipay-epg)[ Packagist](https://packagist.org/packages/hovakimyannn/omnipay-epg)[ Docs](https://github.com/hovakimyannn/omnipay-epg)[ RSS](/packages/hovakimyannn-omnipay-epg/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (3)Used By (0)

Omnipay: SmartVista EPG
=======================

[](#omnipay-smartvista-epg)

**SmartVista E-Commerce Payment Gateway (EPG)** driver for the [Omnipay](https://omnipay.thephpleague.com/) PHP payment library.

Supports any bank running on SmartVista EPG. Comes with a pre-configured gateway for **Arca / iPay** (`ipay.arca.am`).

[![Latest Stable Version](https://camo.githubusercontent.com/95106a009922a1d766a57957ce75d2af425aa240bf9707af4cdd6a9909cfca58/68747470733a2f2f706f7365722e707567782e6f72672f686f76616b696d79616e6e6e2f6f6d6e697061792d6570672f762f737461626c65)](https://packagist.org/packages/hovakimyannn/omnipay-epg)[![License](https://camo.githubusercontent.com/5bfc3220bc1debeeb3b4a8f2aa15a9befb6da6545d4e05baaa5af15c4d643f3e/68747470733a2f2f706f7365722e707567782e6f72672f686f76616b696d79616e6e6e2f6f6d6e697061792d6570672f6c6963656e7365)](https://packagist.org/packages/hovakimyannn/omnipay-epg)

---

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

[](#installation)

```
composer require hovakimyannn/omnipay-epg
```

---

Gateways
--------

[](#gateways)

ClassDescription`Omnipay\Epg\Gateway`Generic EPG — configure any bank's endpoint`Omnipay\Epg\ArcaGateway`Arca / iPay — endpoints pre-configured---

Usage
-----

[](#usage)

### Arca / iPay

[](#arca--ipay)

```
use Omnipay\Omnipay;

$gateway = Omnipay::create('Epg\Arca');
$gateway->setUsername('your_username');
$gateway->setPassword('your_password');
// $gateway->setTestMode(true); // use ipaytest.arca.am
```

### Generic EPG (any bank)

[](#generic-epg-any-bank)

```
use Omnipay\Epg\Gateway;

$gateway = new Gateway();
$gateway->setEndpoint('https://epg.yourbank.am/payment/rest');
$gateway->setTestEndpoint('https://epg-test.yourbank.am/payment/rest');
$gateway->setUsername('your_username');
$gateway->setPassword('your_password');
```

---

Supported Operations
--------------------

[](#supported-operations)

### Purchase (one-phase payment)

[](#purchase-one-phase-payment)

Registers the order and returns a redirect URL to the bank's hosted payment page.

```
$response = $gateway->purchase([
    'transactionId' => 'ORDER-001',       // your order number
    'amount'        => '10.00',
    'currency'      => 'AMD',
    'returnUrl'     => 'https://yoursite.com/payment/success',
    'failUrl'       => 'https://yoursite.com/payment/fail',  // optional
    'description'   => 'Order #001',                         // optional
    'language'      => 'en',                                 // optional
    'features'      => 'FORCE_TDS',                          // optional: FORCE_SSL | FORCE_TDS
])->send();

if ($response->isRedirect()) {
    // Store $response->getTransactionReference() (EPG orderId) for later status check
    $orderId = $response->getTransactionReference();

    $response->redirect(); // redirects customer to bank payment page
}
```

### Complete Purchase (check payment status after redirect)

[](#complete-purchase-check-payment-status-after-redirect)

Called after the customer returns from the bank payment page.

```
$response = $gateway->completePurchase([
    'transactionId' => $orderId, // the EPG orderId saved during purchase
])->send();

if ($response->isSuccessful()) {
    // Payment confirmed — fulfill the order
} else {
    echo $response->getMessage();
}
```

### Pre-Auth (two-phase payment)

[](#pre-auth-two-phase-payment)

**Phase 1** — reserve funds:

```
$response = $gateway->registerPreAuth([
    'transactionId' => 'ORDER-002',
    'amount'        => '50.00',
    'currency'      => 'AMD',
    'returnUrl'     => 'https://yoursite.com/payment/success',
])->send();

$orderId = $response->getTransactionReference();
```

**Phase 2** — confirm (deposit) reserved funds:

```
$response = $gateway->deposit([
    'transactionId' => $orderId,
    'amount'        => '50.00',
])->send();
```

### Reverse (cancel / void)

[](#reverse-cancel--void)

```
$response = $gateway->reverse([
    'transactionId' => $orderId,
])->send();
```

### Refund

[](#refund)

```
$response = $gateway->refund([
    'transactionId' => $orderId,
    'amount'        => '10.00',
])->send();
```

### Order Status

[](#order-status)

```
// Basic status
$response = $gateway->getOrderStatus([
    'transactionId' => $orderId,
])->send();

// Extended status (includes card info, binding info, etc.)
$response = $gateway->getOrderStatusExtended([
    'transactionId' => $orderId,
])->send();

echo $response->getOrderStatus();        // 0–6 (EPG status code)
echo $response->getTransactionReference();
print_r($response->getCardAuthInfo());
```

### Verify Enrollment (3DS check)

[](#verify-enrollment-3ds-check)

```
$response = $gateway->verifyEnrollment([
    'pan' => '4111111111111111',
])->send();
```

### Bindings (saved cards)

[](#bindings-saved-cards)

**Pay with a saved card:**

```
$response = $gateway->bindingPayment([
    'transactionReference' => $orderId,  // mdOrder
    'bindingId'            => $bindingId,
    'language'             => 'en',
])->send();
```

**Get list of bindings for a customer:**

```
$response = $gateway->getBindings([
    'clientId' => 'customer-123',
])->send();
```

---

Response Methods
----------------

[](#response-methods)

MethodDescription`isSuccessful()``true` if payment is fully deposited`isRedirect()``true` if customer should be redirected to `formUrl``getRedirectUrl()`Hosted payment page URL`getTransactionReference()`EPG `orderId``getOrderNumberReference()`Merchant `orderNumber``getOrderStatus()`EPG order status code`getMessage()`Error message`getCode()`Error code (`0` = success)`getBindingId()`Binding ID (if applicable)`getCardAuthInfo()`Card info array (masked PAN, expiry, etc.)`getRequestId()``Request-Id` response header### Order status codes

[](#order-status-codes)

CodeMeaning0Registered, not paid1Pre-authorized (held)2Deposited (fully paid) ✅3Cancelled4Refunded5ACS authorization in progress6Authorization declined---

License
-------

[](#license)

MIT

###  Health Score

36

—

LowBetter than 81% of packages

Maintenance100

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

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

Total

2

Last Release

1d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2dd5bf1455b2e40a49aa7ad72ea151586bac27351bbc6c09b61ca3d07df4e357?d=identicon)[Hovakimyannn](/maintainers/Hovakimyannn)

---

Tags

paymentgatewaypaymerchantomnipayarcaipayepgsmartvista

### Embed Badge

![Health badge](/badges/hovakimyannn-omnipay-epg/health.svg)

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

PHPackages © 2026

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