Ejemplo n.º 1
0
 public function handleCancel()
 {
     try {
         $success = $this->payPal->doPayment();
         $this->onCancel($this, $success);
     } catch (Exception $e) {
         if (!$this->onError) {
             throw $e;
         }
         $this->onError($this, $e);
     }
     //$this->redirect('this'); // todo: rly?
 }
Ejemplo n.º 2
0
 public function handleCancel()
 {
     try {
         $token = $this->getPresenter()->getParameter('token');
         $this->onCancel($this, $this->payPal->getCheckoutDetails($token));
     } catch (Exception $e) {
         if (!$this->onError) {
             throw $e;
         }
         $this->onError($this, $e);
     }
     $this->getPresenter()->redirect('this');
 }