1 | <?php |
||
18 | class PurchaseResponse extends Response implements RedirectResponseInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $redirectUrl; |
||
24 | |||
25 | /** |
||
26 | * Khởi tạo đối tượng PurchaseResponse. |
||
27 | * |
||
28 | * @param \Omnipay\Common\Message\RequestInterface $request |
||
29 | * @param array $data |
||
30 | * @param string $redirectUrl |
||
31 | */ |
||
32 | public function __construct(RequestInterface $request, array $data, string $redirectUrl) |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function isSuccessful(): bool |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function isRedirect(): bool |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function getRedirectUrl(): string |
||
62 | } |
||
63 |