0

在沙箱中運行DoDirectPayment方法時出現以下錯誤。實時版本中相同的代碼實際上工作正常。沙盒中的經典API NVP,經典ASP DoDirectPayment

WinHttp.WinHttpRequest error '80072f7d' 

An error occurred in the secure channel support 

順便說一句,我使用的端點是:

API_ENDPOINT = "https://api-3t.sandbox.paypal.com/nvp" 

我發現,建議修改後:

Set objHttp = Server.CreateObject("WinHTTP.WinHTTPRequest.5.1") 

通過

Set objhttp = Server.CreateObject ("MSXML2.XMLHTTP.6.0") 

在這種如果答案是:

TIMESTAMP=2016-08-11T17:04:06Z& 
CORRELATIONID=aa25568f7686b& 
ACK=Failure& 
VERSION=63.0& 
BUILD=000000& 
L_ERRORCODE0=10759& 
L_SHORTMESSAGE0=Transaction cannot be processed.& 
L_LONGMESSAGE0=Please use a different payment card.& 
L_SEVERITYCODE0=Error& 
AMT=4.00& 
CURRENCYCODE=USD 

順便說一句,我已經測試了多張卡片。即:

MasterCard 5555555555554444 
MasterCard 5105105105105100 
Visa 4111111111111111 
Visa 4012888888881881 

任何幫助將不勝感激。

回答