@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use hiqdev\yii2\merchant\Module; |
| 9 | 9 | use Yii; |
| 10 | 10 | use yii\base\Action; |
| 11 | -use yii\base\Event; |
|
| 12 | 11 | use yii\web\BadRequestHttpException; |
| 13 | 12 | |
| 14 | 13 | class RequestAction extends Action |
@@ -146,7 +146,7 @@ |
||
| 146 | 146 | * Renders depositing buttons for given request data. |
| 147 | 147 | * |
| 148 | 148 | * @param DepositForm $form request data: |
| 149 | - * @return \yii\web\Response |
|
| 149 | + * @return string |
|
| 150 | 150 | */ |
| 151 | 151 | public function renderDeposit($form) |
| 152 | 152 | { |
@@ -234,6 +234,9 @@ discard block |
||
| 234 | 234 | return is_string($page) && $page[0] !== '/' ? ('/' . $this->id . '/pay/' . $page) : $page; |
| 235 | 235 | } |
| 236 | 236 | |
| 237 | + /** |
|
| 238 | + * @param string $destination |
|
| 239 | + */ |
|
| 237 | 240 | public function getPage($destination) |
| 238 | 241 | { |
| 239 | 242 | $name = $destination . 'Page'; |
@@ -304,6 +307,10 @@ discard block |
||
| 304 | 307 | return $this->transactionRepository->save($transaction); |
| 305 | 308 | } |
| 306 | 309 | |
| 310 | + /** |
|
| 311 | + * @param string $id |
|
| 312 | + * @param string $merchant |
|
| 313 | + */ |
|
| 307 | 314 | public function insertTransaction($id, $merchant, $data) |
| 308 | 315 | { |
| 309 | 316 | $transaction = $this->transactionRepository->create($id, $merchant, $data); |
@@ -10,9 +10,6 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | namespace hiqdev\yii2\merchant; |
| 12 | 12 | |
| 13 | -use Closure; |
|
| 14 | -use hiqdev\php\merchant\AbstractMerchant; |
|
| 15 | -use hiqdev\php\merchant\Helper; |
|
| 16 | 13 | use hiqdev\yii2\merchant\Collection; |
| 17 | 14 | use hiqdev\yii2\merchant\models\DepositForm; |
| 18 | 15 | use hiqdev\yii2\merchant\controllers\PayController; |
@@ -23,9 +20,6 @@ discard block |
||
| 23 | 20 | use hiqdev\yii2\merchant\transactions\TransactionRepositoryInterface; |
| 24 | 21 | use Yii; |
| 25 | 22 | use yii\base\InvalidConfigException; |
| 26 | -use yii\helpers\ArrayHelper; |
|
| 27 | -use yii\helpers\FileHelper; |
|
| 28 | -use yii\helpers\Json; |
|
| 29 | 23 | use yii\helpers\Url; |
| 30 | 24 | |
| 31 | 25 | /** |