Ejemplo n.º 1
0
 public function actionPaymentDelete($id)
 {
     /** @var UserAuthorizeNet $model */
     $model = UserAuthorizeNet::findOne($id);
     if (!is_null($model) && $model->user_id == $this->getLoggedUser()->id && $model->deleteProfile()) {
         $model->delete();
     }
     return $this->renderPartial('_sc_payment', ['model' => null, 'id' => null]);
 }