src/controllers/RobokassaController.php
protected function loadModel($id)
    {
        $model = ShopOrder::findOne($id);
        if ($model === null) {
            throw new BadRequestHttpException("Order: {$id} not found");
        }
        return $model;
    }
protected function loadModel($id)
    {
        $model = ShopOrder::findOne($id);
        if ($model === null) {
            throw new BadRequestHttpException("Order: {$id} not found");
        }
        return $model;
    }
Загрузка заказа

@param integer $id
@return ShopOrder
@throws \yii\web\BadRequestHttpException