fix(formating)

This commit is contained in:
Anatoliy Poloz
2026-01-28 03:36:26 +03:00
parent 1723177949
commit b15d29f8e9
313 changed files with 1863 additions and 1533 deletions

View File

@@ -1,16 +1,16 @@
<?php
use Apoloz\AlfaBank\Sbp\SbpConnector;
use Apoloz\AlfaBank\Core\AlfaConfig;
use Apoloz\AlfaBank\Sbp\SbpConnector;
test('can parse payment notification webhook', function () {
test('can parse payment notification webhook', function (): void {
$config = new AlfaConfig(
baseUrl: 'https://test.com',
certificatePath: __DIR__ . '/../../test_key.pem',
privateKeyPath: __DIR__ . '/../../test_key.pem'
);
$connector = new SbpConnector($config, 'alias');
$payload = [
'command' => 'qrc/notification',
'qrcId' => 'QR123',
@@ -20,7 +20,7 @@ test('can parse payment notification webhook', function () {
'timestamp' => '2025-01-01T10:00:00Z',
'payerId' => '7900',
'payrrn' => 'RR123',
'TermNo' => 'T123'
'TermNo' => 'T123',
];
$dto = $connector->parsePaymentNotification($payload);