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 抖音咸鱼付款链接转码支付宝
  • ¥15 ubuntu22.04上安装ursim-3.15.8.106339遇到的问题
  • ¥15 求螺旋焊缝的图像处理
  • ¥15 blast算法(相关搜索:数据库)
  • ¥15 请问有人会紧聚焦相关的matlab知识嘛?
  • ¥15 网络通信安全解决方案
  • ¥50 yalmip+Gurobi
  • ¥20 win10修改放大文本以及缩放与布局后蓝屏无法正常进入桌面
  • ¥15 itunes恢复数据最后一步发生错误
  • ¥15 关于#windows#的问题:2024年5月15日的win11更新后资源管理器没有地址栏了顶部的地址栏和文件搜索都消失了