コード例 #1
0
 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);
 }