| 1 | <?php |
||
| 18 | class PurchaseResponse extends Response implements RedirectResponseInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Đường dẫn dẫn khách đến hệ thống VNPay để thanh toán. |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $redirectUrl; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | public function __construct(RequestInterface $request, array $data, string $redirectUrl) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | public function isSuccessful(): bool |
||
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | public function isRedirect(): bool |
||
| 52 | |||
| 53 | /** |
||
| 54 | * {@inheritdoc} |
||
| 55 | */ |
||
| 56 | public function getRedirectUrl(): string |
||
| 60 | } |
||
| 61 |