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]);
 }
示例#2
0
 /**
  * @return \yii\db\ActiveRelation
  */
 public function getOrder()
 {
     return $this->hasOne(\app\models\ar\Order::className(), ['id' => 'order_id']);
 }
示例#3
0
 /**
  * @return \yii\db\ActiveRelation
  */
 public function getOrders()
 {
     return $this->hasMany(\app\models\ar\Order::className(), ['user_id' => 'id']);
 }