Example #1
0
 /**
  *  Add country ID to start request
  *  @param Request $request 
  */
 public function beforeStart($request)
 {
     if (!$this->country) {
         throw new Exception("No country selected for Sofort Banking");
     }
     $request->bind("country", $this->country);
     $request->bind("type", 1);
 }
Example #2
0
 /**
  *  Check transaction with TargetPay
  */
 public function check()
 {
     // Create request object
     $request = new Request($this->checkApi);
     // Fill it up
     $request->bind(array("rtlo" => $this->rtlo, "trxid" => $this->txid, "test" => $this->test, "checksum" => md5($this->txid . $this->rtlo . self::SALT)));
     // Run check
     $httpResponse = $request->execute();
     // Make check response object and return it
     return $this->parseCheckResponse($httpResponse);
 }