【发布时间】:2016-05-20 01:37:29
【问题描述】:
我需要与 PayPal 服务器通信以验证通过我的应用提交的付款详细信息。此通信必须通过 cURL 脚本完成,我计划将其放置在 PHP 脚本中。我想在通过我的应用程序填写数据库上的支付 ID 字段后立即启动 cURL 脚本。我的问题是如何告诉我的数据库服务器开始与 PayPal 服务器的通信。
感谢您的建议
【问题讨论】:
我需要与 PayPal 服务器通信以验证通过我的应用提交的付款详细信息。此通信必须通过 cURL 脚本完成,我计划将其放置在 PHP 脚本中。我想在通过我的应用程序填写数据库上的支付 ID 字段后立即启动 cURL 脚本。我的问题是如何告诉我的数据库服务器开始与 PayPal 服务器的通信。
感谢您的建议
【问题讨论】:
您需要查看Instant Payment notification。
Instant Payment Notification (IPN) is a message service that automatically notifies merchants of events related to PayPal transactions. Merchants can use it to automate back-office and administrative functions, including automatically fulfilling orders and providing customers with order status
【讨论】:
IPN 是入站 HTTP 请求。当有信息需要处理时,您的服务器将收到来自 PayPal 的呼叫。 在开发模式下使用http://ipnrelay.com/ 收集您的 IPN 消息。
【讨论】: