Running XAMPP 1.7.3 on Windows XP Professional SP3
Zend package is the latest version, updated 1/11/2011
code:
static function processCreditCard($account_number, $policy_number, $amount, $card_number, $card_exp, $first_name, $last_name, $street, $city, $state, $zip, $email, $ip) {
$return_obj = new stdclass();
$return_obj->reference_code = $request->merchantReferenceCode;
$return_obj->processor_request_id = $reply->requestID;
$return_obj->status = $reply->decision;
$return_obj->reason_code = $reply->reason_code;
//should return the object
return $return_obj;
}
yanıtı:
Fatal error: Uncaught exception 'Zend_XmlRpc_Client_FaultException' with message 'Failed to parse response' in C:\xampp\xampp\php\PEAR\Zend\XmlRpc\Client.php:370
Stack trace:
0 C:\xampp\xampp\htdocs\dev\webserviceTest.php(130): Zend_XmlRpc_Client->call('Payment.process...', Array)
1 {main}
thrown in C:\xampp\xampp\php\PEAR\Zend\XmlRpc\Client.php on line 370
Ben XML-RPC kullanmadan yerel bu yöntemi çağırın Ancak, ben XML-RPC beklediğiniz benzer aşağıdaki olsun:
stdClass Object
(
[reference_code] => 201101120000000093
[processor_request_id] => 2948483462210008284268
[status] => ACCEPT
[reason_code] =>
)
Debian sunucu üzerinde aynı kodu çalıştırırken Biz bu sorunu yok.