您好我正在尝试在旧的经典asp网站上安装paypal,但我对沙盒有问题测试。 我可以把马赛克接受,但我在notify.asp上看不到任何东西应该告诉我卖是否合适。我想知道我是否使用好的地址来测试这个页面我的代码知道paypal的答案状态是:
'PayPal验证
set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP")
if err.number <> 0 then set objHttp = Server.CreateObject("Microsoft.XMLHTTP")
str = Request.Form & "&cmd=_notify-validate"
objHttp.open "POST", "https://www.sandbox.paypal.com/cgi-bin/webscr", false
objHttp.setRequestHeader "Content-type", "application/x-www-form-urlencoded"
objHttp.Send str
if objHttp.status <> 200 then
set objHttp = nothing
Response.Redirect "error.asp"
end if
ret = objHttp.responseText
set objHttp = nothing
' Check notification validation
if (ret = "VERIFIED") then
'paiment is ok i write my databse to confirm and send a email telling ok
else
'paiment not ok i send a mail telling not ok
end if
我的错误在哪里因为我没有收到任何邮件... 感谢任何帮助。
答案 0 :(得分:1)
您将启用即时付款通知
通过两种方法
1)在Merchant a / c&gt; Profile&gt;我的销售工具&gt;即时付款通知。
2)您还可以基于每笔交易设置IPN网址,在这种情况下,您无需通过设置
在个人资料中进行设置<input type="hidden" name="notify_url" value="http://yoursitename/notify.asp">
答案 1 :(得分:0)
我已经构建了一个与PayPal挂钩的CMS。如果你认为你可以通过我的代码找到线索,这里有一个链接到那些压缩的asp文件: http://www.oceanmedia.net/files/PayPal.zip