Ejemplo n.º 1
0
 public function actionTestAbort()
 {
     if (YII_ENV_DEV && YII_DEBUG) {
         $process = PaymentProcess::findById(Yii::$app->session->get('storeTransactionId', 0));
         // redirect the user back to where he can choose another payment.
         $process->close(PaymentProcess::STATE_ABORT);
         return 'abort/stop button!';
     }
 }