redkooala / omnipay-best2pay
Omnipay driver for Best2Pay
Installs: 2 944
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: ^7.1
- ext-json: *
- ext-simplexml: *
- league/omnipay: ^3.0
Requires (Dev)
- omnipay/tests: ^3
- phpunit/phpunit: ^5.7|^6
- squizlabs/php_codesniffer: 3.*
This package is auto-updated.
Last update: 2024-04-29 04:13:22 UTC
README
Introduction
This package supports PHP 7.1 and higher
Download
Composer
// This assumes that you have composer installed globally
composer require redkooala/omnipay-best2pay
Solving problems with minimal stability
Add to your composer.json
{ "minimum-stability":"dev", "prefer-stable": true }
Simple Example
use Omnipay\Omnipay; // Setup payment gateway $gateway = Omnipay::create('Best2Pay'); // Set params for authorize request $gateway->authorize( [ 'orderNumber' => $localOrderNumber, // local order number 'amount' => $order_amount, // The amount of payment (you can use decimal with 2 precisions for copecs or string equal to decimal) 'returnUrl' => $callback_url // succesfull callback url 'currency' => 'RUB', 'description' => 'merchant order description', ] );