简体   繁体   English

为什么我一直收到 403 禁止使用 PayPal?

[英]Why do I keep getting a 403 forbidden with PayPal?

I integrated with PayPal using the HTML Forms method for accepting payments on my website.我使用 HTML 表单方法与 PayPal 集成以在我的网站上接受付款。 When a user selects PayPal as a payment option on checking out, I redirect them to the PayPal website using HTML Forms as described in the documentation.当用户在结账时选择 PayPal 作为付款选项时,我会使用文档中所述的 HTML 表单将他们重定向到 PayPal 网站。 I do receive the payment to my PayPal account, however my on receiving the IPN message to my notify_url when I send the notify-validate command I get the error: 403 forbidden.我确实收到了我的 PayPal 帐户的付款,但是当我发送 notify-validate 命令时,我收到 IPN 消息到我的 notify_url 时出现错误:403 forbidden。 Please assist.请协助。 Everything is working as it should in sandbox but I start getting this error 403 forbidden.一切都在沙箱中正常工作,但我开始收到此错误 403 禁止。

Try passing a "User-Agent: XXXXXXXXXXXXXXXX" HTTP header in your notify-validate request, where XXXXXX.. is any string > 5 characters尝试在您的通知验证请求中传递“User-Agent: XXXXXXXXXXXXXXXX”HTTP 标头,其中 XXXXXX.. 是任何大于 5 个字符的字符串

edit: newer documentation on this point编辑: 关于这一点的较新文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM