1 | <?php |
||
20 | class PurchaseResponse extends AbstractResponse implements RedirectResponseInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var string URL to redirect client to payment system. Used when [[isRedirect]] |
||
24 | */ |
||
25 | protected $_redirect = 'https://sci.interkassa.com/'; |
||
26 | |||
27 | /** |
||
28 | * Always returns `false`, because InterKassa always needs redirect |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | 1 | public function isSuccessful() |
|
35 | |||
36 | /** |
||
37 | * Always returns `true`, because InterKassa always needs redirect |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | 1 | public function isRedirect() |
|
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function getRedirectUrl() |
||
52 | |||
53 | /** |
||
54 | * Always `POST` for InterKassa |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | 1 | public function getRedirectMethod() |
|
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | 1 | public function getRedirectData() |
|
69 | } |
||
70 |