PHPackages                             fruitware/victoria-bank-gateway - 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/victoria-bank-gateway

ActiveLibrary[Payment Processing](/categories/payments)

fruitware/victoria-bank-gateway
===============================

Victoria bank e-Commerce Gateway merchant interface

1.1.0(6y ago)93.5k↓52.4%8[1 issues](https://github.com/Fruitware/VictoriaBankGateway/issues)MITPHPPHP &gt;=5.5CI failing

Since Jul 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Fruitware/VictoriaBankGateway)[ Packagist](https://packagist.org/packages/fruitware/victoria-bank-gateway)[ Docs](https://github.com/Fruitware/VictoriaBankGateway)[ RSS](/packages/fruitware-victoria-bank-gateway/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (2)Versions (12)Used By (0)

Welcome to VictoriaBank Merchant e-Commerce Library 👋
=====================================================

[](#welcome-to-victoriabank-merchant-e-commerce-library-)

[![GitHub issues](https://camo.githubusercontent.com/124d735ef97bc86723706025d86e16cc78d59eac2c37b1239e8bc28db4ba6268/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f4672756974776172652f566963746f72696142616e6b47617465776179)](https://github.com/Fruitware/VictoriaBankGateway/issues)[![Version](https://camo.githubusercontent.com/e73da5a486d43fd896716ee4ae30e1773561057b25e030e32085b8858365708e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6672756974776172652f766963746f7269612d62616e6b2d67617465776179)](https://packagist.org/packages/fruitware/victoria-bank-gateway)[![Packagist](https://camo.githubusercontent.com/7e979e3280d3c3d238fb8b3d65564f17b903fb87fa12fa0a1cb705428a38f100/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6672756974776172652f766963746f7269612d62616e6b2d67617465776179)](https://camo.githubusercontent.com/7e979e3280d3c3d238fb8b3d65564f17b903fb87fa12fa0a1cb705428a38f100/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6672756974776172652f766963746f7269612d62616e6b2d67617465776179)[![Donate](https://camo.githubusercontent.com/ae5ed79d657852f08d335d128972c689205557dc95a9f5aec7ed896cebc1d257/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f6e6174652d50617950616c2d253233333761353536)](https://paypal.me/fruitware?locale.x=en_US)

---

> Packagist package (library) to give any php-based website an access to the interface of VictoriaBank (Republic Of Moldova) that merchant systems use to process credit card based e- commerce transactions using the standard CGI/WWW forms posting method. This interface transparently supports various cardholder authentication protocols such as 3-D Secure and Secure Code as well as legacy unauthenticated SSL commerce transactions.

#### 🏠 [Homepage](https://github.com/Fruitware/VictoriaBankGateway)

[](#-homepage)

Install
-------

[](#install)

```
composer require fruitware/victoria-bank-gateway
```

### Requirements

[](#requirements)

- PHP &gt;= 5.5
- OpenSSL &gt;=0.9.8

Usage
-----

[](#usage)

### Step 1. Environment configuration (not required)

[](#step-1-environment-configuration-not-required)

You can use one of the composer packages

```
composer require vlucas/phpdotenv
```

or

```
composer require symfony/dotenv
```

.env file

```
# Merchant ID assigned by bank
VICTORIA_BANK_MERCHANT_ID=xxxxxxxxxxxxxxx

# Merchant Terminal ID assigned by bank
VICTORIA_BANK_MERCHANT_TERMINAL=xxxxxxxx

# Merchant primary web site URL
VICTORIA_BANK_MERCHANT_URL='http://example.com'

# Merchant name (recognizable by cardholder)
VICTORIA_BANK_MERCHANT_NAME='Merchant company name'

# Merchant company registered office address
VICTORIA_BANK_MERCHANT_ADDRESS='Merchant address'

# Security options - provided by the bank
VICTORIA_BANK_SECURITY_SIGNATURE_FIRST='0001'
VICTORIA_BANK_SECURITY_SIGNATURE_PREFIX='A00B00C00D00EA864886F70D020505000410'
VICTORIA_BANK_SECURITY_SIGNATURE_PADDING='00'

# Merchant public rsa key
VICTORIA_BANK_MERCHANT_PUBLIC_KEY=public.pem

# Merchant private rsa key
VICTORIA_BANK_MERCHANT_PRIVATE_KEY=private.pem

# The public part of the bank key that P_SIGN is encrypted in the response in PEM format.
VICTORIA_BANK_MERCHANT_BANK_PUBLIC_KEY=victoria_pub.pem

# Default Merchant shop timezone
# Used to calculate the timezone offset sent to VictoriaBank
VICTORIA_BANK_MERCHANT_TIMEZONE_NAME='Europe/Chisinau'

# Merchant shop 2-character country code.
# Must be provided if merchant system is located
# in a country other than the gateway server's country.
VICTORIA_BANK_MERCHANT_COUNTRY_CODE=MD

# Default currency for all operations: 3-character currency code
VICTORIA_BANK_MERCHANT_DEFAULT_CURRENCY=MDL

# Default forms language
# By default are available forms in en, ro, ru.
# If need forms in another languages please contact gateway
# administrator
VICTORIA_BANK_MERCHANT_DEFAULT_LANGUAGE=ro
```

### Step 2. Init Gateway client

[](#step-2-init-gateway-client)

#### Init Gateway client through configureFromEnv method

[](#init-gateway-client-through-configurefromenv-method)

```
