PHPackages                             amirreza/omnipay-azki-vam - 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. amirreza/omnipay-azki-vam

ActiveLibrary[Payment Processing](/categories/payments)

amirreza/omnipay-azki-vam
=========================

v1.1.0(2y ago)26MITPHPPHP ^7.3

Since Jan 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/saalid/omnipay-azki-vam)[ Packagist](https://packagist.org/packages/amirreza/omnipay-azki-vam)[ RSS](/packages/amirreza-omnipay-azki-vam/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (8)Versions (4)Used By (0)

Instalation
-----------

[](#instalation)

```
composer require amirreza/omnipay-azki-vam

```

Example
-------

[](#example)

###### Purchase

[](#purchase)

#### The result will be a redirect to the gateway or bank.

[](#the-result-will-be-a-redirect-to-the-gateway-or-bank)

```
    $this->gateway = new Gateway(
            new Client(new \Http\Adapter\Guzzle7\Client()),
    );
    $amount = 60;
    $customerPhone = '09xxxxxxxxx';
    $items = [
        [
            "name" => "کالای شماره 1",
            "count" => 6,
            "amount" => 10,
            "url" => "https://merchant-website/items/1",
        ]
    ];

    /** @var CreateTicketResponse $response */
    $response = $this->gateway->purchase([
        'subUrl' => '/payment/purchase',
        'amount' => $amount,
        'customerPhone' => $customerPhone,
        'items' => $items,
    ])->send();
    if ($response->isSuccessful() && $response->isRedirect()) {
    // store the transaction reference to use in completePurchase()
    $transactionReference = $response->getTransactionReference();
    // Redirect to offsite payment gateway
    $response->redirect();
    } else {
        // Payment failed: display message to customer
        echo $response->getMessage();
    }
```

### Complete Purchase (Verify)

[](#complete-purchase-verify)

```
// Send purchase complete request
    $param= [
        'subUrl' => '/payment/verify',
        'ticketId' => 'PJQPHFwN1AM6EUAJ',
    ];
    $response = $this->gateway->completePurchase($param)->send();

    if (!$response->isSuccessful() || $response->isCancelled()) {
        // Payment failed: display message to customer
        echo $response->getMessage();
    } else {
        // Payment was successful
        print_r($response);
    }
```

### Refund Order

[](#refund-order)

Refund an order by the $refNum:

```
    $param= [
        'subUrl' => '/payment/reverse',
        'ticketId' => 'PJQPHFwN1AM6EUAJ',
    ];
    /** @var ReverseTicketResponse $response */
    $response = $this->gateway->refund($param)->send();

    if ($response->isSuccessful()) {
        // Refund was successful
        print_r($response);
    } else {
        // Refund failed
        echo $response->getMessage();
    }
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

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

Every ~0 days

Total

3

Last Release

833d ago

PHP version history (2 changes)v1.0.0PHP ^8

v1.0.0.x-devPHP ^7.3

### Community

Maintainers

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

---

Top Contributors

[![saalid](https://avatars.githubusercontent.com/u/54904021?v=4)](https://github.com/saalid "saalid (61 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/amirreza-omnipay-azki-vam/health.svg)

```
[![Health](https://phpackages.com/badges/amirreza-omnipay-azki-vam/health.svg)](https://phpackages.com/packages/amirreza-omnipay-azki-vam)
```

PHPackages © 2026

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