Download the PHP package voronkovich/sberbank-acquiring-client without Composer
On this page you can find all versions of the php package voronkovich/sberbank-acquiring-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download voronkovich/sberbank-acquiring-client
More information about voronkovich/sberbank-acquiring-client
Files in voronkovich/sberbank-acquiring-client
Package sberbank-acquiring-client
Short Description Client for working with Sberbank's acquiring REST API
License MIT
Homepage https://github.com/voronkovich/sberbank-acquiring-client
Informations about the package sberbank-acquiring-client
sberbank-acquiring-client
PHP client for Sberbank, Alfabank and YooKassa REST APIs.
Requirements
- PHP 7.1 or above (Old version for PHP 5 you can find here)
- TLS 1.2 or above (more information you can find here)
php-json
extension installed
Installation
Usage
Instantiating a client
In most cases to instantiate a client you need to pass your username
and password
to a factory:
Alternatively you can use an authentication token
:
More advanced example:
Also you can use an adapter for the Guzzle:
Also, there are available adapters for Symfony and PSR-18 HTTP clents.
Low level method "execute"
You can interact with the Gateway REST API using a low level method execute
:
But it's more convenient to use one of the shortcuts listed below.
Creating a new order
If you want to use UUID identifiers (ramsey/uuid) for orders you should convert them to a hex format:
Use a registerOrderPreAuth
method to create a 2-step order.
Getting a status of an exising order
Also, you can get an order's status by using you own identifier (e.g. assigned by your database):
Reversing an exising order
Refunding an exising order
SBP payments using QR codes
_Currently only supported by Alfabank, see docs._
See Client
source code to find methods for payment bindings and dealing with 2-step payments.
License
Copyright (c) Voronkovich Oleg. Distributed under the MIT.
All versions of sberbank-acquiring-client with dependencies
ext-json Version *