cashier-provider / sber-auth
Sber API Authorization Driver
Fund package maintenance!
TheDragonCode
Open Collective
Boosty
Yoomoney
Installs: 5 081
Dependents: 2
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 2
Open Issues: 0
Requires
- php: ^7.3|^8.0
- ext-json: *
- cashier-provider/core: ^3.0
- dragon-code/contracts: ^2.0
- dragon-code/simple-dto: ^2.2
- dragon-code/support: ^5.0
- illuminate/support: ^6.0|^7.0|^8.0
Requires (Dev)
- orchestra/testbench: ^4.0|^5.0|^6.0
- phpunit/phpunit: ^9.0
- symfony/var-dumper: ^4.3.4|^5.0
This package is auto-updated.
Last update: 2023-05-17 14:46:37 UTC
README
Note: This driver doesn't need to be installed in the application. I's needed to implement Sber bank authorization for Cashier drivers.
Installation
To get the latest version of Sber Cashier Authorization Driver
, simply require the project using Composer:
$ composer require cashier-provider/sber-auth
Or manually update require
block of composer.json
and run composer update
.
{ "require": { "cashier-provider/sber-auth": "^2.0" } }
Using
namespace CashierProvider\Sber\QrCode\Requests; use CashierProvider\Core\Http\Request; use CashierProvider\Sber\Auth\Auth; use CashierProvider\Sber\QrCode\Constants\Body; use CashierProvider\Sber\QrCode\Constants\Scopes; class Create extends Request { protected $path = '/ru/prod/order/v3/creation'; // You need to provide a link to the authorization class: protected $auth = Auth::class; // You need to specify a scope to receive a token by auth: protected $auth_extra = [ Body::SCOPE => Scopes::CREATE, ]; }
It's all. Enjoy 😎