0
此独立的Google脚本Web服务始终从PayPal(resp = INVALID)返回INVALID。 PayPal IPN模拟器显示握手成功的消息。PayPal IPN在带有Google脚本的沙盒中返回INVALID
我错过了什么?
function doPost(e) {
var isProduction = false;
//if(typeof e == 'undefined')
//return ContentService.createTextOutput(JSON.stringify(e.parameter));
var strSandbox = "https://www.sandbox.paypal.com/cgi-bin/webscr"
var strLive = "https://www.paypal.com/cgi-bin/webscr"
var paypalURL = strSandbox
if (isProduction) paypalURL = strLive;
var payload = "cmd=_notify-validate&" + e.postData.contents;
var options =
{
"method" : "post",
"payload" : payload
};
var resp = UrlFetchApp.fetch(paypalURL, options);
}
http://stackoverflow.com/questions/1485832/paypal-sandbox-ipn-return-invalid你有没有检查过这个? – Deep