服务器到服务器的通信设置

时间:2016-02-09 21:38:38

标签: php android curl paypal

我需要与PayPal服务器通信,以验证通过我的应用提交的付款详细信息。这个通信必须通过cURL脚本来完成,我打算将它放在PHP脚本中。我想在我的数据库中的支付ID字段通过我的应用程序填充后立即启动cURL脚本。我的问题是如何告诉我的数据库服务器开始与PayPal服务器的通信。

感谢您的建议

2 个答案:

答案 0 :(得分:0)

您需要查看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

答案 1 :(得分:0)

IPN是入站HTTP请求。当有信息需要处理时,您的服务器将接收来自PayPal的电话。 在开发模式下使用http://ipnrelay.com/收集IPN消息。

相关问题