public function actionBankReturn() { /** @var $ecom Component */ $ecom = \Yii::$app->ecom; /** @var $model Order */ $model = $ecom->payment->handleResponse($_REQUEST, Order::className()); $this->redirect(['order/view', 'orderId' => $model->id]); }
/** * @return \yii\db\ActiveRelation */ public function getOrder() { return $this->hasOne(\app\models\ar\Order::className(), ['id' => 'order_id']); }
/** * @return \yii\db\ActiveRelation */ public function getOrders() { return $this->hasMany(\app\models\ar\Order::className(), ['user_id' => 'id']); }