PHPackages                             fruitware/php-victoriabank-payment - 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. fruitware/php-victoriabank-payment

ActiveLibrary[Payment Processing](/categories/payments)

fruitware/php-victoriabank-payment
==================================

Victoriabank payment gateway integration

1.3(9y ago)1541BSD-3-ClausePHPPHP &gt;=5.3.5

Since Dec 7Pushed 3y ago3 watchersCompare

[ Source](https://github.com/Fruitware/php-victoriabank-payment)[ Packagist](https://packagist.org/packages/fruitware/php-victoriabank-payment)[ Docs](https://github.com/TerranetMD/php-victoriabank-payment)[ RSS](/packages/fruitware-php-victoriabank-payment/feed)WikiDiscussions master Synced today

READMEChangelog (3)DependenciesVersions (6)Used By (0)

#### Requirements

[](#requirements)

- PHP &gt; 5.4

#### Usage

[](#usage)

\######Request authorization &amp;&amp; completion use Terranet\\Payment; $bankPaymentGateway = new Victoriabank();

```
//Set basic info
$bankPaymentGateway
            ->setMerchantName('Your company name')
            ->setMerchantAddress('Your company address')
            ->setMerchantUrl('http://' . $_SERVER['HTTP_HOST'])
            ->setTimezoneName('Europe/Chisinau')
            ->setLanguage('ro')
            ->setCountryCode('md')
            ->setBackRefUrl('https://' . $_SERVER['HTTP_HOST'] . '/after-payment')
;

//Set security options - provided by the bank
$bankPaymentGateway
            ->setSecurityOptions($signatureFirst, $signaturePrefix, $signaturePadding, $publicKeyPath, $privateKeyPath, $bankPublicKeyPath)
;

//Request payment authorization - redirects to the banks page
$bankPaymentGateway
            ->requestAuthorization($amount, $code, $paymentDescription, $email)
;

```

\######Request reversal //Request payment reversal $bankPaymentGateway -&gt;requestReversal($amount,$orderId,$rrn,$intRef) ;

\######Receive bank responses - all bank responses are asynchronous server to server and are handled by same URI

```
$bankResponse       = $bankPaymentGateway->getResponseObject($_POST);

if (!$bankResponse->isValid())
    throw new Victoriabank\Exception('Invalid bank Auth response');

switch ($bankResponse::TRX_TYPE) {

    case Victoriabank::TRX_TYPE_AUTHORIZATION:

        $amount         = $bankResponse->{Victoriabank\Authorization_Response::AMOUNT};
        $bankOrderCode  = $bankResponse->{Victoriabank\Response::ORDER};
        $rrn            = $bankResponse->{Victoriabank\Response::RRN};
        $intRef         = $bankResponse->{Victoriabank\Response::INT_REF};

        #Funds locked on bank side - transfer the product/service to the customer and request completion
        $bankPaymentGateway->requestCompletion($amount, $bankOrderCode, $rrn, $intRef);

        break;

    case Victoriabank::TRX_TYPE_COMPLETION:
        #Funds successfully transferred on bank side
        break;

    case Victoriabank::TRX_TYPE_REVERSAL:
        #Reversal successfully applied on bank size
        break;

    default:
        throw new Exception('Unknown bank response transaction type');
}

```

#### Installation

[](#installation)

###### Via Composer

[](#via-composer)

add a following line (root-only) into your composer.json

```
"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/TerranetMD/php-victoriabank-payment"
    }
]

```

run

```
composer update

```

###### Via GitHub

[](#via-github)

```
git clone https://github.com/TerranetMD/php-victoriabank-payment

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

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

4

Last Release

3491d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0371db265a85312f31226b09e9c49e12d4eafe3d6d29acb6feb9cfde004b32df?d=identicon)[Fruitware](/maintainers/Fruitware)

---

Top Contributors

[![katrotz](https://avatars.githubusercontent.com/u/1922321?v=4)](https://github.com/katrotz "katrotz (11 commits)")[![ruscon](https://avatars.githubusercontent.com/u/1880059?v=4)](https://github.com/ruscon "ruscon (1 commits)")

---

Tags

payment gatewayvictoriabankterranet

### Embed Badge

![Health badge](/badges/fruitware-php-victoriabank-payment/health.svg)

```
[![Health](https://phpackages.com/badges/fruitware-php-victoriabank-payment/health.svg)](https://phpackages.com/packages/fruitware-php-victoriabank-payment)
```

###  Alternatives

[shetabit/payment

Laravel Payment Gateway Integration Package

944336.8k5](/packages/shetabit-payment)[shetabit/multipay

PHP Payment Gateway Integration Package

293355.3k4](/packages/shetabit-multipay)[cybersource/rest-client-php

Client SDK for CyberSource REST APIs

40930.1k6](/packages/cybersource-rest-client-php)[jomweb/billplz

PHP Agnostic library for working with BillPlz API

77201.2k3](/packages/jomweb-billplz)[luigel/laravel-paymongo

A laravel wrapper for Paymongo API

7961.3k1](/packages/luigel-laravel-paymongo)[hexters/coinpayment

CoinPayment is a Laravel module for handling transactions from CoinPayment like a create transaction, history transaction, etc.

7060.3k](/packages/hexters-coinpayment)

PHPackages © 2026

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