3

我必须通过 USAePay SOAP API 进行交易。

try {
     $Request=array(
              'AccountHolder' => 'Tester Jones',
              'Details' => array(
              'Description' => 'Example Transaction',
              'Amount' => '4.99',
              'Invoice' => '44539'),
              'CheckData' => array(
                            'CheckNumber' => '1234',
                            'Routing' => '123456789',
                            'Account' => '11111111',
                            'AccountType' => 'Savings',
                            'DriversLicense' => '34521343',
                            'DriversLicenseState' => 'CA',
                            'RecordType' => 'PPD'));
return $res=$this->CLIENT->runCheckSale($this->TOKEN, $Request);
}catch (SoapFault $e){
echo $this->CLIENT->__getLastRequest();
echo $this->CLIENT->__getLastResponse();
die("runCheckSale failed :" .$e->getMessage());
} 

此代码用于进行支票交易,但它不起作用。我创建了$clientand ,这些在和其他功能$token中都可以正常工作。addCustomer

4

0 回答 0