如何从Paypal获取数据,以便我可以相应地更改我的MySQL数据库? [英] How do I get data back from Paypal so I can alter my MySQL database accordingly?

查看:80
本文介绍了如何从Paypal获取数据,以便我可以相应地更改我的MySQL数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始使用Paypal,所以这是一个新手问题。

I'm just starting out with Paypal, so this is a newbie question.

我一直在浏览设置Paypal订阅服务的说明,但我想我我正在看错了。

I've been going through the instructions for setting up Paypal subscription service, but I think I'm looking at the wrong thing.

我想要实现的是从Paypal获得某种响应,以便我可以在我的网站上更新数据库将注册用户标记为已付款。基本上我在数据库中有一个标志,表示用户是否订阅。我想确保用户被标记为付费,只要他们的Paypal订阅得以维持。

What I want to acheive is to get back some kind of response from Paypal so that I can update the database on my web site to mark a registered user as having paid. Basically I have a flag in the database that says if the user is subscribed or not. I want to ensure that the user is marked as paid so long as their Paypal subscription is maintained.

虽然上面链接的说明确实说明了如何设置按钮来接收付款,没有什么可以从Paypal获取任何数据。

While the instructions linked above do say how to set up a button to receive a payment, there's nothing there about getting any data back from Paypal.

我知道有像 IPN 沙箱这样的术语与我正在尝试做的事情有关,但我找不到如何开始这个过程的明确指示。我只是在四处转转而没有到达任何地方。

I know there are terms like IPN and sandbox that are related to what I'm trying to do, but I can't find clear instructions for how to get started on this process. I'm just circling around and not getting anywhere.

我从哪里开始设置它?哪里有一个明确的初学者教程?

Where do I start on setting this up? Where is there a clear beginner's tutorial?

另外,我在我的网站上使用PHP / Javascript / MySQL。

Also, I'm using PHP/Javascript/MySQL on my website.

推荐答案

PayPal的IPN服务就是您想要使用的。我自己用它来做你想做的事。

PayPal's IPN service is what you want to use. I've used it myself to do just what you're looking to do.


即时付款通知(IPN)是PayPal的消息服务
在交易受到影响时发送通知。一旦IPN集成了
,卖家就可以自动化他们的后台办公室,这样他们就没有
来等待付款来触发订单履行。 IPN可以
发送这些交易的通知:

Instant Payment Notification (IPN) is PayPal's message service that sends a notification when a transaction is affected. Once IPN is integrated, sellers can automate their back office so they don’t have to wait for payments to come in to trigger order fulfillment. IPN can send notifications for these transactions:


  • 即时付款,包括快速结账和直接信用卡付款

  • eCheck付款以及待处理,已完成或已拒绝的状态付款

  • 待付款

  • 定期付款和订阅

  • 授权

  • 争议,退款,撤销和退款

  • Instant payments, including Express Checkout and direct credit card payments
  • eCheck payments and pending, completed, or denied status payments
  • Pending payments
  • Recurring payments and subscriptions
  • Authorizations
  • Disputes, chargebacks, reversals, and refunds

您也可以在PayPal的IPN历史记录页面上查看通知,如果需要,还可以重新发送
。作为PayPal处理
购买确认和服务器到服务器通信的接口,IPN还可以用
来管理和定制各种API和
通信,包括:

You can also view notifications on PayPal’s IPN History page and resend them if you need to. As PayPal’s interface for handling purchase confirmation and server-to-server communications, IPN can also be used to manage and customize a variety of APIs and communications, including:


  • 自定义您的网站在几秒钟内对客户购买的响应

  • 通过IPN跟踪客户传递变量

  • 通知主要从事软件下载和其他数字在线商品交易的卖家

  • 跟踪联属网络营销和佣金

  • 商店您自己的数据库中的交易信息

  • Customize your website's response to customer purchases in seconds
  • Track customers via IPN "pass-through" variables
  • Notify sellers who deal mostly in software downloads and other digital, online goods
  • Track affiliate sales and commissions
  • Store transaction information in your own database

有关IPN的更多信息:

For more about IPN:

  • Technical Overview (link to new html version of docs on developer central)
  • Instant Payment Notification Guide (PDF)
  • Code Samples

这篇关于如何从Paypal获取数据,以便我可以相应地更改我的MySQL数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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