コード例 #1
0
 public function testACHDebitCorporate16SavingsBusiness()
 {
     $check = TestCheck::certification();
     $check->secCode = HpsSECCode::CCD;
     $check->accountType = HpsAccountType::SAVINGS;
     $check->checkType = HpsCheckType::BUSINESS;
     $check->checkHolder->checkName = 'Heartland Pays';
     $checkService = new HpsCheckService(TestServicesConfig::CertServicesConfigWithDescriptor());
     $response = $checkService->sale($check, 19.0);
     $this->assertNotNull($response, 'Response is null');
     $this->assertEquals('0', $response->responseCode);
     $this->assertEquals('Transaction Approved', $response->responseText);
 }
コード例 #2
0
 public function testACHDebitCorporate8SavingsBusiness()
 {
     $check = TestCheck::certification();
     $check->accountType = 'savings';
     $check->checkType = 'business';
     $check->secCode = 'ccd';
     $checkService = new HpsCheckService(TestServicesConfig::CertServicesConfigWithDescriptor());
     $response = $checkService->sale('SALE', $check, 18.0);
     $this->assertNotNull($response, 'Response is null');
     $this->assertEquals('0', $response->responseCode);
     $this->assertEquals('Transaction Approved', $response->responseText);
 }