【问题标题】:Passing a custom variable from a PayPal button after a user subscribes用户订阅后从 PayPal 按钮传递自定义变量
【发布时间】:2015-06-22 01:03:41
【问题描述】:

我正在为我的一个测试网站提供订阅服务。我有适当的基础设施,因此当用户注册时,他们需要先订阅才能访问他们的个人资料。如何判断用户是否已完成订阅?我的数据库中有一个标志,在他们订阅后会变为真,但我似乎无法弄清楚最后一次握手。

我尝试在使按钮转到“http://www.example.com/profile.php?completed=true”时对其进行设置,以便我可以简单地查找已完成的变量,但贝宝似乎忽略了这一点。关于如何做到这一点的任何想法?

在这里查看类似的帖子后,我可以重定向到success.php,它可以在其中更新数据库标志。这是一种解决方法,但这是唯一的解决方案吗?或者有没有类似于我最初想做的事情?谢谢大家的意见。

【问题讨论】:

    标签: php paypal


    【解决方案1】:

    你应该使用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.

    【讨论】:

      猜你喜欢
      • 2021-05-20
      • 2016-03-26
      • 2020-03-04
      • 2016-09-29
      • 2014-11-23
      • 2011-07-12
      • 2021-12-04
      • 2017-12-15
      • 1970-01-01
      相关资源
      最近更新 更多