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