public function testACHDebitCorporate5()
 {
     $check = TestCheck::certification();
     $check->secCode = 'POP';
     $checkService = new HpsCheckService(TestServicesConfig::CertServicesConfigWithDescriptor());
     $response = $checkService->sale('SALE', $check, 15.0);
     $this->assertNotNull($response, 'Response is null');
     $this->assertEquals('0', $response->responseCode);
     $this->assertEquals('Transaction Approved', $response->responseText);
     $voidResponse = $checkService->void($response->transactionId);
     $this->assertEquals('0', $voidResponse->responseCode);
     $this->assertEquals('Transaction Approved', $voidResponse->responseText);
 }
 /**
  * Creates a void transaction through the HpsCheckService
  */
 public function execute()
 {
     parent::execute();
     $voidSvc = new HpsCheckService($this->service->servicesConfig());
     return $voidSvc->void($this->transactionId, $this->clientTransactionId);
 }
 public function testESilver32SavingsBusiness()
 {
     $check = TestCheck::certification();
     $check->secCode = HpsSECCode::POP;
     $check->accountType = HpsAccountType::SAVINGS;
     $check->checkType = HpsCheckType::BUSINESS;
     $checkService = new HpsCheckService(TestServicesConfig::ValidEGoldConfig());
     $response = $checkService->sale($check, 19.0);
     $this->assertNotNull($response, 'Response is null');
     $this->assertEquals('0', $response->responseCode);
     $this->assertEquals('Transaction Approved', $response->responseText);
     $voidResponse = $checkService->void($response->transactionId);
     $this->assertEquals('0', $voidResponse->responseCode);
     $this->assertEquals('Transaction Approved', $voidResponse->responseText);
 }