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.
More information about voronkovich/sberbank-acquiring-client
Files in voronkovich/sberbank-acquiring-client
Informations about the package sberbank-acquiring-client
- 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)
Instantiating a client
In most cases to instantiate a client you need to pass your username and password to a constructor:
Alternatively you can use an authentication token:
More advanced example:
Example for Alphabank:
Also you can use an adapter for the Guzzle:
Low level method "execute"
You can interact with the Sberbank REST API using a low level method
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:
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._
Client source code to find methods for payment bindings and dealing with 2-step payments.
Copyright (c) Voronkovich Oleg. Distributed under the MIT.