@@ -146,6 +146,9 @@ discard block |
||
| 146 | 146 | $this->response->setResult(Response::SUCCESS,$additional_params); |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | + /** |
|
| 150 | + * @param string[] $fields |
|
| 151 | + */ |
|
| 149 | 152 | private function check_for_required_field($fields) |
| 150 | 153 | { |
| 151 | 154 | $arr = $this->request->all(); |
@@ -162,6 +165,9 @@ discard block |
||
| 162 | 165 | return true; |
| 163 | 166 | } |
| 164 | 167 | |
| 168 | + /** |
|
| 169 | + * @param integer $currency |
|
| 170 | + */ |
|
| 165 | 171 | public function getRedirectParams($model, $amount, $currency, $url) |
| 166 | 172 | { |
| 167 | 173 | $time = date('Y-m-d H:i:s', time()); |
@@ -11,6 +11,9 @@ |
||
| 11 | 11 | private $response; |
| 12 | 12 | |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @param Response $response |
|
| 16 | + */ |
|
| 14 | 17 | public function __construct($response) |
| 15 | 18 | { |
| 16 | 19 | $this->config = PaymentSystemService::getPaymentSystemParamsCollect(PaymentSystem::CLICK); |
@@ -427,6 +427,10 @@ |
||
| 427 | 427 | return $result; |
| 428 | 428 | |
| 429 | 429 | } |
| 430 | + |
|
| 431 | + /** |
|
| 432 | + * @param integer $currency |
|
| 433 | + */ |
|
| 430 | 434 | public function getRedirectParams($model, $amount, $currency, $url){ |
| 431 | 435 | return [ |
| 432 | 436 | 'merchant' => $this->config['merchant_id'], |
@@ -23,6 +23,7 @@ |
||
| 23 | 23 | /** |
| 24 | 24 | * Request constructor. |
| 25 | 25 | * Parses request payload and populates properties with values. |
| 26 | + * @param Response $response |
|
| 26 | 27 | */ |
| 27 | 28 | public function __construct($response) |
| 28 | 29 | { |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | * Store a newly created resource in storage. |
| 44 | 44 | * |
| 45 | 45 | * @param \Illuminate\Http\Request $request |
| 46 | - * @return \Illuminate\Http\Response |
|
| 46 | + * @return \Illuminate\Http\RedirectResponse |
|
| 47 | 47 | */ |
| 48 | 48 | public function store(Request $request) |
| 49 | 49 | { |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | class PaymentSystemService |
| 17 | 17 | { |
| 18 | 18 | /** |
| 19 | - * @param $request |
|
| 19 | + * @param \Illuminate\Http\Request $request |
|
| 20 | 20 | * @return mixed |
| 21 | 21 | */ |
| 22 | 22 | public static function createPaymentSystem($request) |
@@ -48,6 +48,9 @@ discard block |
||
| 48 | 48 | } |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | + /** |
|
| 52 | + * @param PaymentSystem $payment_system |
|
| 53 | + */ |
|
| 51 | 54 | public static function updatePaymentSystem(\Illuminate\Http\Request $request,$payment_system) |
| 52 | 55 | { |
| 53 | 56 | $payment_system->update([ |
@@ -69,6 +69,10 @@ |
||
| 69 | 69 | header("Location: ". $this->request->url); |
| 70 | 70 | echo "<script>window.location.href='".$this->request->url."';</script>"; |
| 71 | 71 | } |
| 72 | + |
|
| 73 | + /** |
|
| 74 | + * @param integer $currency |
|
| 75 | + */ |
|
| 72 | 76 | public function getRedirectParams($model, $amount, $currency, $url){ |
| 73 | 77 | return [ |
| 74 | 78 | 'config' => $this->config, |
@@ -7,6 +7,10 @@ |
||
| 7 | 7 | public $config; |
| 8 | 8 | public $request; |
| 9 | 9 | |
| 10 | + /** |
|
| 11 | + * @param Request $request |
|
| 12 | + * @param Response $response |
|
| 13 | + */ |
|
| 10 | 14 | public function __construct($config, $request, $response) |
| 11 | 15 | { |
| 12 | 16 | $this->config = $config; |
@@ -28,6 +28,9 @@ |
||
| 28 | 28 | public $params; |
| 29 | 29 | private $response; |
| 30 | 30 | |
| 31 | + /** |
|
| 32 | + * @param Response $response |
|
| 33 | + */ |
|
| 31 | 34 | public function __construct($response) |
| 32 | 35 | { |
| 33 | 36 | $this->response = $response; |