如何自动提醒我的 php/mysql Web 应用程序 PayPal 交易已完成?

发布于 2024-08-12 06:14:51 字数 328 浏览 1 评论 0原文

我有一位客户将在其网站上出售在线服务的访问权限。他们希望将 PayPal 立即购买按钮集成到网站中...没有问题。然而,他们希望客户在付款处理后能够立即访问他们正在销售的在线服务。这对我来说似乎是合理的......问题是我似乎找不到一种方法来自动化它。所以我的问题实际上是这样的:

如何自动提醒我的 php/mysql Web 应用程序 PayPal 交易已完成?

我真正需要的只是一个触发 php 脚本更新的回调过程数据库中客户的记录...对吧?对我来说似乎很简单。但我似乎找不到办法做到这一点!不管怎样,如果您使用 PayPal 完成了类似的事情,我将非常感谢您的建议!

I have a client who will be selling access to an online service on their website. They would like to integrate a PayPal Buy Now button into the site... no problems there. However, they want their customers to have instant access to the online service that they are selling as soon as the payment is processed. That seems reasonable to me... the problem is that I can't seem to find a way to automate that. So my question is really this:

How can I automatically alert my php/mysql web app that a PayPal transaction has gone through?

All I would really need is like a callback process that triggers a php script to updates the customer's record in the database... right? Seems simple to me. But I can't seem to find a way to do it! Anyway, if you've accomplished anything similar with PayPal, I'd be grateful for your advice!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

梦里人 2024-08-19 06:14:51

我认为您想向 paypal (item_number) 发送一个变量,他们将返回到您在帖子中指定的页面(返回 - 成功和 cancel_return - 取消)。无论交易是否成功,他们都会向您发送信息,然后使用您的变量,您可以调用数据库以根据交易结果更新数据库中的记录。在退货页面中,您还可以向客户发送某种通知,告知付款过程成功或失败,并在取消交易后进行清理。

I think you want to send in a variable to paypal (item_number) that they will return to a page that you specify in your post to them (return - success and cancel_return - cancel). They will send you back whether the transaction was successful or not and then with your variable you can make a call to your db to update the record in your database based upon the result of the transaction. In the return page you can also send some sort of notification to the client of the success or failure of the payment process and clean up after a canceled transaction.

憧憬巴黎街头的黎明 2024-08-19 06:14:51

PayPal 拥有关于如何将其服务与您的网络应用程序集成的广泛知识库。我认为这是一个很好的第一个起点。请参阅 www.x.com

PayPal maintains an extensive knowledge base on how to integrate their services with your web app. In think that is a good first starting point. See www.x.com

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文