0
我被要求協助將SagePay定製支付實施從協議v2.22升級到協議v3.0。SagePay升級2.22至3.0無密鑰字段
我試圖按照此頁面上的說明: https://www.sagepay.co.uk/support/12/36/upgrading-from-2-22-to-3-00-a-brief-overview
的第一個問題我已經是無處在現有的代碼是有一個「地穴」字段。事實上, '數據' 是使用curl發送的SSL與這些線(及其他):
// Set the URL
curl_setopt ($curlSession, CURLOPT_URL, $url);
// No headers, please
curl_setopt ($curlSession, CURLOPT_HEADER, 0);
// It's a POST request
curl_setopt ($curlSession, CURLOPT_POST, 1);
// Set the fields for the POST
curl_setopt ($curlSession, CURLOPT_POSTFIELDS, $data);
// Return it direct, don't print it out
curl_setopt($curlSession, CURLOPT_RETURNTRANSFER,1);
// This connection will timeout in 60 seconds
curl_setopt($curlSession, CURLOPT_TIMEOUT,60);
//The next two lines must be present for the kit to work with newer version of cURL
//You should remove them if you have any problems in earluer version of cURL
curl_setopt($curlSession, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($curlSession, CURLOPT_SSL_VERIFYHOST, 1);
難道我也許只是需要改變這樣的:
$ProtocolVersion = "2.22";
要這樣:
$ProtocolVersion = "3.0";
並添加新的必填字段。工作完成了嗎?
謝謝!
謝謝。我會玩一些測試付款,看看事情是如何平息的。我會報告結果。 – Claud