https://github.com/militska/sberbank-acquiring-api
simple php rest client for api sberbank (with logging)
https://github.com/militska/sberbank-acquiring-api
acquiring rest-api sber sberbank
Last synced: 3 months ago
JSON representation
simple php rest client for api sberbank (with logging)
- Host: GitHub
- URL: https://github.com/militska/sberbank-acquiring-api
- Owner: militska
- Created: 2020-12-05T11:01:30.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-23T20:42:03.000Z (over 4 years ago)
- Last Synced: 2025-01-14T03:16:01.910Z (4 months ago)
- Topics: acquiring, rest-api, sber, sberbank
- Language: PHP
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Rest клиент для эквайинга сбербанка
Простой клиент для апи, и очень много логирования.
```php
$confFile = include __DIR__ . '/../src/config/config_test.php';
$conf = new Configuration($confFile);
$logger = new \Monolog\Logger('t');$requestCreate = new RegisterRequest();
$requestCreate->orderNumber = 123;
$requestCreate->amount = 100;
$requestCreate->description = 'test';$api = new SberbankAcquiringApi($conf, $logger);
$res = $api->create($requestCreate);
var_export($conf);`