为什么我一直使用PayPal禁止403? [英] Why do I keep getting a 403 forbidden with PayPal?
问题描述
我使用HTML Forms方法与PayPal集成,以接受我网站上的付款。当用户在结账时选择PayPal作为付款选项时,我将按照文档中的描述将其重定向到使用HTML表单的PayPal网站。我确实收到PayPal账户的付款,但是当我发送notify-validate命令时,收到了我的notify_url的IPN消息,我得到了错误:403禁止。
请协助。
一切正常,因为它应该在沙箱中,但我开始得到这个错误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
这篇关于为什么我一直使用PayPal禁止403?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!