2015-06-22 65 views
0

我正在为我的测试网站订阅服务。我有适当的基础设施,以便用户注册时,他们需要先订阅才能访问他们的个人资料。我如何知道用户是否已完成订阅?我的数据库中有一个标志,他们订阅后会变成真,但我似乎无法弄清楚最后一次握手。用户订阅后从PayPal按钮传递一个自定义变量

我试图设置它时,使按钮去“http://www.example.com/profile.php?completed=true”,以便我可以简单地寻找完成的变量,但贝宝似乎忽略了。任何想法如何做到这一点?

看着这里的类似帖子,我可以重定向到一个success.php,它可以更新数据库标志。这是一个解决方法,但这是唯一的解决方案吗?还是有一个类似于我最初想做的事情?感谢您输入每个人。

回答

0

你应该利用Instant Payment Notification

Instant Payment Notification (IPN) is a message service that automatically notifies merchants of events related to PayPal transactions. Merchants can use it to automate back-office and administrative functions, like automatically fulfilling orders and providing customers with order status.