Files
alfa-bank-sdk/src/Sbp/Data/QrCodeRequestData.php
2026-01-14 16:48:36 +03:00

32 lines
1.0 KiB
PHP

<?php
namespace Apoloz\AlfaBank\Sbp\Data;
use Spatie\LaravelData\Data;
class QrCodeRequestData extends Data
{
public function __construct(
public string $TermNo,
public string $qrcType = '01', // '01' = Static, '02' = Dynamic
public ?string $amount = null,
public string $currency = 'RUB',
public ?string $paymentPurpose = null,
public ?string $redirectUrl = null,
public ?string $messageID = null,
public ?string $width = null,
public ?string $height = null,
public ?string $notificationUrl = null,
// Dynamic QR specific fields
public ?string $OrderNumber = null,
public ?string $qrTtl = null, // Minutes, 1-6
public ?string $subscriptionServiceId = null,
public ?string $subscriptionServiceName = null,
// Optional user data for Dynamic QR
public ?string $SenderFIO = null,
public ?string $SenderID = null,
public ?string $SenderBankBIC = null,
) {}
}