简体   繁体   English

简单的贝宝按钮订阅会员

[英]Simple Paypal Button Subscription Membership

I'm new here!我是新来的!

I'm trying to let my customers get recuring billing membership on my website based on this tutorial .我试图让我的客户根据本教程在我的网站上获得重复计费会员资格。

The button work, evverything is fine, except one thing.按钮工作,一切都很好,除了一件事。 I need to validate that paypal really went successfull, to prevent anyone to go directly on the success page and get free membership.我需要验证贝宝真的成功了,以防止任何人直接进入成功页面并获得免费会员资格。 I noticed that it return a token=VALUE data to the success / cancel redirect.我注意到它返回一个 token=VALUE 数据到成功/取消重定向。

I cannot find any $_POST or any others $_GET than that and I wonder, nor anything that could solve this in the Paypal doc (which changed a lot since last time I used it).我找不到任何 $_POST 或任何其他 $_GET ,我想知道,也找不到任何可以在 Paypal 文档中解决此问题的内容(自从我上次使用它以来发生了很大变化)。

How can I check if the membership really went trought paypal using this token=1RXXXXXXXXH484112Y.我如何使用此令牌 = 1RXXXXXXXXH484112Y 检查会员资格是否真的通过了 paypal。

The return of such an integration may never happen.这种整合的回归可能永远不会发生。 Reliable notification that a subscription has been created can only be done with a separate, server-side integration.订阅已创建的可靠通知只能通过单独的服务器端集成来完成。

For the old HTML subscription button integration in the tutorial you reference, you can implement the old Instant Payment Notification (IPN) service.对于您参考的教程中的旧 HTML 订阅按钮集成,您可以实现旧的即时付款通知 (IPN) 服务。


The current solution would be to use a smart subscribe button with server side API calls to create the subscription and activate it -- with this, your server immediately knows it has been activated (because it did so itself and received the response).当前的解决方案是使用带有服务器端 API 调用的智能订阅按钮来创建订阅并激活它——这样,您的服务器立即知道它已被激活(因为它自己这样做并收到了响应)。 You can find some details on that solution here: https://stackoverflow.com/a/63908112/2069605您可以在此处找到有关该解决方案的一些详细信息: https : //stackoverflow.com/a/63908112/2069605

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM