Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.7k views
in Technique[技术] by (71.8m points)

html - 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. 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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

edit: newer documentation on this point


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...