为什么我一直收到 403 禁止使用 PayPal? [英] Why do I keep getting a 403 forbidden with PayPal?

查看:245
本文介绍了为什么我一直收到 403 禁止使用 PayPal?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 HTML 表单方法与 PayPal 集成,以便在我的网站上接受付款.当用户在结账时选择 PayPal 作为付款选项时,我会使用文档中所述的 HTML 表单将他们重定向到 PayPal 网站.我确实收到了我的 PayPal 帐户的付款,但是当我发送通知验证命令时,我收到 IPN 消息到我的 notify_url 时出现错误:403 forbidden.请协助.一切都在沙箱中正常工作,但我开始收到此错误 403 禁止.

I integrated with PayPal using the HTML Forms method for accepting payments on my website. 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. 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. Please assist. Everything is working as it should in sandbox but I start getting this error 403 forbidden.

推荐答案

尝试传递一个User-Agent: XXXXXXXXXXXXXXXX"通知验证请求中的 HTTP 标头,其中 XXXXXX.. 是任何字符串 >5 个字符

Try passing a "User-Agent: XXXXXXXXXXXXXXXX" HTTP header in your notify-validate request, where XXXXXX.. is any string > 5 characters

关于这一点的更新文档

这篇关于为什么我一直收到 403 禁止使用 PayPal?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆