src/controllers/RobokassaController.php
public function actionSuccess()
    {
        RobokassaPaySystem::logInfo('success request');

        if (!isset($_REQUEST['OutSum'], $_REQUEST['InvId'], $_REQUEST['SignatureValue'])) {
            RobokassaPaySystem::logError('Not found params');
            throw new BadRequestHttpException('Not found params');
        }

        $order = $this->loadModel($_REQUEST['InvId']);
        $merchant = $this->getMerchant($order);
        $shp = $this->getShp();

        if ($merchant->checkSignature($_REQUEST['SignatureValue'], $_REQUEST['OutSum'], $_REQUEST['InvId'],
            $merchant->sMerchantPass1, $shp)
        ) {

            $order->ps_status = "STATUS_ACCEPTED";
            $order->save();
            return $this->redirect(Url::to(['/shop/order/view', 'id' => $order->id]));
        }

        RobokassaPaySystem::logError('bad signature');
        throw new BadRequestHttpException('bad signature');
    }
public function actionSuccess()
    {
        RobokassaPaySystem::logInfo('success request');

        if (!isset($_REQUEST['OutSum'], $_REQUEST['InvId'], $_REQUEST['SignatureValue'])) {
            RobokassaPaySystem::logError('Not found params');
            throw new BadRequestHttpException('Not found params');
        }

        $order = $this->loadModel($_REQUEST['InvId']);
        $merchant = $this->getMerchant($order);
        $shp = $this->getShp();

        if ($merchant->checkSignature($_REQUEST['SignatureValue'], $_REQUEST['OutSum'], $_REQUEST['InvId'],
            $merchant->sMerchantPass1, $shp)
        ) {

            $order->ps_status = "STATUS_ACCEPTED";
            $order->save();
            return $this->redirect(Url::to(['/shop/order/view', 'id' => $order->id]));
        }

        RobokassaPaySystem::logError('bad signature');
        throw new BadRequestHttpException('bad signature');
    }
/*public function actionInvoice()
{
$model = new Invoice();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
@var \robokassa\Merchant $merchant
$merchant = Yii::$app->get('robokassa');
return $merchant->payment($model->sum, $model->id,  \Yii::t('skeeks/shop/app', 'Refill'), null, Yii::$app->user->identity->email);
} else {
return $this->render('invoice', [
'model' => $model,
]);
}
}