如何使Paypal通过简单的HTTP身份验证将IPN发送到服务器? [英] How do I make Paypal to send IPN to my server with simple HTTP authentication?

查看:75
本文介绍了如何使Paypal通过简单的HTTP身份验证将IPN发送到服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在测试受简单HTTP身份验证保护的开发环境中的环境.我不想暴露未经身份验证的环境. Paypal/Paypal沙盒能否通过简单的HTTP身份验证将IPN发送到我的开发服务器,例如https://用户名:password@mydomain.com/ipn 吗?谢谢.

I am testing the environment within a development environment which is protected with simple HTTP authentication. I do not want to expose the environment without authentication. Can Paypal/Paypal-sandbox send IPN to my development server with simple HTTP authentication, e.g. https://username:password@mydomain.com/ipn ? Thanks.

推荐答案

尽管Paypal允许您将IPN URL设置为

Although Paypal lets you set your IPN URL to something like https://username:password@mydomain.com/ipn it seems that it doesn't send the username and password.

在我的IPN历史记录中,所有请求一直被标记为失败,直到我删除服务器上的身份验证为止. 请注意,您也可以创建一个.htaccess文件,以允许来自Paypal的请求进入(我还没有完成,所以我不知道确切的语法,应该谷歌搜索它.)

All requests were constantly marked as failed in my IPN history until I removed authentication on my server. Note that you can alternatively create a .htaccess file to let requests from paypal in (I haven't done it so I don't know the exact syntax, you should google it).

这篇关于如何使Paypal通过简单的HTTP身份验证将IPN发送到服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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