php - 2人的IPN反馈

标签 php paypal paypal-sandbox paypal-ipn

我的网站上有一个页面向超过 1 个人付款。我一直在使用带有几个测试帐户的 paypal 沙盒帐户对此进行测试。

我还使用 ipn 在付款完成、待处理等情况下从 paypal 获得反馈。

我的问题是,paypal 仅通过 ipn 向我发送了其中一笔付款的信息。这是为什么?当我在 ipn 中查看付款金额时,它只显示了其中 1 个人的付款。例如:

如果我付钱给第 1 个人和第 2 个人,每个人每人得到 10 美元,所以总共 20 美元。 ipn 页面只显示了第 1 个人的详细信息,并说付款金额为 10 美元,而总付款金额为 20 美元。

这给我带来了麻烦,因为我需要知道两次付款都是通过 ipn 成功的。目前我一次只能检查 1 个人的付款,即使我同时向 2 个人付款。

我如何为两个人都付款?

最佳答案

@Pete 的回答违反了 Paypal 用户协议(protocol)(除非你有两个账户的独立法律实体)

9. Restricted Activities
    9.1 Restricted Activities. In connection with your use of our website, your Account, or the Services, or in the course of your interactions with PayPal, a User or a third party, you will not:
        a. Breach this Agreement (including, without limitation, opening multiple PayPal accounts or breaching the Card Processing Agreement, the Acceptable Use Policy or any other agreement that you have entered into with PayPal (including a Policy));

您要找的是PayPal Adaptive Payments .不过请注意:一个帐户(可能是您作为应用程序所有者)必须拥有一个 PayPal 企业帐户。其他收到付款的人只需要一个个人账户。

PayPal 为 Github 上的自适应支付提供了一个带有示例的 SDK。 .从左侧菜单中选择自适应支付。有多种语言的示例应该可以帮助您入门。

关于php - 2人的IPN反馈,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18561086/

相关文章:

android - 移动支付库转账问题

php - mysql数据基本排序及php打印结果

php - 如何在PHP中获取div中的所有链接

paypal - PayPal Pro 中的自适应支付集成

paypal - 使用借记卡或信用卡付款 - 不显示该按钮

php - 尝试为 paypal 创建计费协议(protocol)时出现 Http 响应代码 500 错误 - PHP

php - 对 Cloudflare 网站的请求

php - Codeigniter SSL/HTTPS 我的选择是什么,多个子域在起作用。

php - 我是否会收到来自 Paypal 立即购买按钮的所有事件的回调?