Exemplo n.º 1
0
 public function completePurchase(array $parameters = array())
 {
     return parent::authorize($parameters);
 }
 /**
  * @return $this
  */
 public function sendPurchaseRequest()
 {
     $gateway = new Gateway();
     $purchaseResponse = $gateway->purchase($this->getPurchaseRequest())->send();
     $this->setPurchaseResponse($purchaseResponse);
     if ($purchaseResponse->isSuccessful()) {
         $this->setIsPurchased(1);
     }
     return $this;
 }