application/components/payment/IntellectMoneyPayment.php 1 location
|
@@ 56-58 (lines=3) @@
|
| 53 |
|
]; |
| 54 |
|
$check = strtoupper(md5(implode('::', $check))); |
| 55 |
|
if ($check === strtoupper(\Yii::$app->request->get('hash'))) { |
| 56 |
|
if (null === $transaction = $this->loadTransaction(\Yii::$app->request->get('orderId'))) { |
| 57 |
|
throw new BadRequestHttpException(); |
| 58 |
|
} |
| 59 |
|
$transaction->result_data = Json::encode(\Yii::$app->request->get()); |
| 60 |
|
$transaction->status = OrderTransaction::TRANSACTION_SUCCESS; |
| 61 |
|
if ($transaction->save(true, ['result_data', 'status'])) { |
application/components/payment/InterkassaPayment.php 1 location
|
@@ 57-59 (lines=3) @@
|
| 54 |
|
throw new BadRequestHttpException(); |
| 55 |
|
} |
| 56 |
|
if ($this->getHash(\Yii::$app->request->get()) === \Yii::$app->request->get('ik_sign')) { |
| 57 |
|
if (null === $transaction = $this->loadTransaction(\Yii::$app->request->get('ik_pm_no'))) { |
| 58 |
|
throw new BadRequestHttpException(); |
| 59 |
|
} |
| 60 |
|
$transaction->result_data = Json::encode(\Yii::$app->request->get()); |
| 61 |
|
$transaction->status = 'success' === \Yii::$app->request->get('ik_inv_st') |
| 62 |
|
? OrderTransaction::TRANSACTION_SUCCESS |
application/components/payment/PayOnlinePayment.php 1 location
|
@@ 69-71 (lines=3) @@
|
| 66 |
|
if (\Yii::$app->request->post('SecurityKey') !== md5($queryString)) { |
| 67 |
|
throw new BadRequestHttpException(); |
| 68 |
|
} |
| 69 |
|
if (null === $transaction = $this->loadTransaction(\Yii::$app->request->post('OrderId'))) { |
| 70 |
|
throw new BadRequestHttpException(); |
| 71 |
|
} |
| 72 |
|
$transaction->result_data = Json::encode(\Yii::$app->request->post()); |
| 73 |
|
$transaction->status = OrderTransaction::TRANSACTION_SUCCESS; |
| 74 |
|
if (!$transaction->save(true, ['status', 'result_data'])) { |
application/components/payment/RobokassaPayment.php 1 location
|
@@ 61-63 (lines=3) @@
|
| 58 |
|
public function customCheck() |
| 59 |
|
{ |
| 60 |
|
|
| 61 |
|
if (null === $this->transaction = $this->loadTransaction(\Yii::$app->request->post('InvId'))) { |
| 62 |
|
throw new BadRequestHttpException(); |
| 63 |
|
} |
| 64 |
|
if (\Yii::$app->request->get('action') == 'result') { |
| 65 |
|
return $this->checkResult($this->transaction->generateHash()); |
| 66 |
|
} elseif (\Yii::$app->request->get('action') == 'success') { |