Files
clinicpro/src/Payment/Gateway/PaymentInitResult.php
T

20 lines
663 B
PHP

<?php
namespace App\Payment\Gateway;
final class PaymentInitResult
{
/**
* @param 'GET'|'POST' $redirectMethod نحوهٔ انتقال به درگاه: GET (302) یا POST (فرم auto-submit)
* @param array<string, string> $redirectParams فیلدهای فرم برای حالت POST
*/
public function __construct(
public readonly bool $success,
public readonly string $redirectUrl = '',
public readonly string $token = '',
public readonly string $errorMessage = '',
public readonly string $redirectMethod = 'GET',
public readonly array $redirectParams = [],
) {}
}