Java汇丰API支付网关
我正在寻找一个Java汇丰API支付网关脚本。我用php开发了它,但即将推出 下面是我使用的php代码Java汇丰API支付网关,java,xml,Java,Xml,我正在寻找一个Java汇丰API支付网关脚本。我用php开发了它,但即将推出 下面是我使用的php代码 $ch = curl_init(); $url = ‘https://www.secure-epayments.apixml.hsbc.com’; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl
$ch = curl_init();
$url = ‘https://www.secure-epayments.apixml.hsbc.com’;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml_data_will_go_here);
ob_start();
$data = curl_exec($ch);
curl_close ($ch);
ob_end_clean();
看看HTTPConnection类,这可能会有所帮助