dongsheng9203 2012-02-29 14:15
浏览 117
已采纳

如何从Paypal获取数据,以便我可以相应地更改我的MySQL数据库?

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

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

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.

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.

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?

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

  • 写回答

2条回答 默认 最新

  • dongtao5055 2012-02-29 15:43
    关注

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

    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:

    • 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

    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:

    • 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

    For more about IPN:

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)