1 | <?php |
||
24 | class PayController extends \yii\web\Controller |
||
25 | { |
||
26 | public function actions() |
||
34 | |||
35 | /** |
||
36 | * @return Module|\yii\base\Module |
||
37 | */ |
||
38 | public function getMerchantModule() |
||
42 | |||
43 | /** |
||
44 | * Disable CSRF validation for POST requests we receive from outside |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function beforeAction($action) |
||
55 | |||
56 | /** |
||
57 | * @return Response |
||
58 | */ |
||
59 | public function actionCancel() |
||
65 | |||
66 | /** |
||
67 | * @param string|null $transactionId |
||
68 | * |
||
69 | * Parameters are NOT required because some merchants may NOT send them, or send in POST or JSON bode. |
||
70 | * The main purpose of these parameters is handling of special routes using UrlManager |
||
71 | * |
||
72 | * @return string |
||
73 | * @throws InvalidConfigException |
||
74 | */ |
||
75 | public function actionReturn(string $transactionId = null) |
||
86 | |||
87 | /** |
||
88 | * @param string $transactionId |
||
89 | * @throws BadRequestHttpException |
||
90 | * @return array |
||
91 | */ |
||
92 | public function actionCheckReturn($transactionId) |
||
112 | |||
113 | /** |
||
114 | * Action handles notifications from payment systems, |
||
115 | * processes them and report success or error for the payment system. |
||
116 | * |
||
117 | * @param string|null $transactionId Parameters is NOT required because some merchants may NOT send it, or send in POST or JSON body. |
||
118 | * The main purpose of these parameters is handling of special routes using UrlManager |
||
119 | * |
||
120 | * @return null|string |
||
121 | * @throws InvalidConfigException |
||
122 | */ |
||
123 | public function actionNotify(string $transactionId = null) |
||
134 | |||
135 | /** |
||
136 | * Check notifications. |
||
137 | * TODO: implement actual request check and proper handling. |
||
138 | * |
||
139 | * @param string|null $transactionId Parameters is NOT required because some merchants may NOT send it, or send in POST or JSON body. |
||
140 | * The main purpose of these parameters is handling of special routes using UrlManager |
||
141 | * |
||
142 | * @return Transaction|null |
||
143 | * @throws InvalidConfigException |
||
144 | */ |
||
145 | public function checkNotify(string $transactionId = null): ?Transaction |
||
149 | |||
150 | public function actionProxyNotification() |
||
154 | |||
155 | public function actionDeposit() |
||
171 | |||
172 | /** |
||
173 | * Renders depositing buttons for given request data. |
||
174 | * |
||
175 | * @param DepositForm $form request data |
||
176 | * @return \yii\web\Response |
||
177 | */ |
||
178 | public function renderDeposit($form) |
||
192 | } |
||
193 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.