PayPal自适应支付链式支付错误

Posted

技术标签:

【中文标题】PayPal自适应支付链式支付错误【英文标题】:PayPal adaptive payment chained payment error 【发布时间】:2016-04-02 05:24:49 【问题描述】:

我正在使用 PayPal 自适应支付链式支付我是 Siteeweb 所有者,我希望收到所有金额并获得我的佣金并将他的金额发送给卖家。 我将我的电子邮件用作主要和次要电子邮件,但我从 payal 收到此错误

错误代码:579040 错误消息:接收方 PayPal 帐户必须是唯一的。

这是我的 php

$url = trim("https://svcs.sandbox.paypal.com/AdaptivePayments/Pay");
 $API_UserName = "intertrad-facilitator_api1.hotmail.fr"; //TODO
 $API_Password = "1393324018"; //TODO
 $API_Signature = "An5ns1Kso7MWUdW4ErQKJJJ4qi4-A5cIBBZt3.MeJSVSebRJv6lINDlR"; //TODO
 $receiver_email = "intertrad-facilitator@hotmail.fr"; //TODO
 $receiver_email1 = "intertrad_dz@hotmail.fr"; //TODO
 $receiver_email2 = "intertrad-facilitator@hotmail.fr"; //TODO
 $amount = 15; //TODO
 $AffiliateAmount = 5;
 $selleramount = 10;
 //Default App ID for Sandbox
 $API_AppID = "APP-80W284485P519543T";
 $API_RequestFormat = "NV";
 $API_ResponseFormat = "NV";
            $bodyparams = array ("requestEnvelope.errorLanguage" => "en_US",
              "actionType" => "PAY_PRIMARY",
              "returnUrl" => "http://localhost/success.php",
              "cancelUrl" => "http://localhost/index.php",
              "currencyCode" => "USD",
              "feesPayer"=>"EACHRECEIVER",
              "memo"=>"Example",
              "receiverList.receiver(0).email" => $receiver_email,
              "receiverList.receiver(0).primary"=> "true",
              "receiverList.receiver(0).amount" => $amount,
              "receiverList.receiver(1).email" => $receiver_email1,
              "receiverList.receiver(1).primary"=> "false",
              "receiverList.receiver(1).amount" => $selleramount,
              "receiverList.receiver(2).email" => $receiver_email,
              "receiverList.receiver(2).primary"=> "false",
              "receiverList.receiver(2).amount" => $AffiliateAmount,
);

【问题讨论】:

【参考方案1】:

我不熟悉 PayPal 的 API,因为我没有足够的评论点,所以我需要这样做作为答案。 我认为该错误是因为您添加了两次 $receiver_email 造成的。您将它与 (2).email 和 (0).email 配对,这大概是不允许的。

【讨论】:

以上是关于PayPal自适应支付链式支付错误的主要内容,如果未能解决你的问题,请参考以下文章

Paypal 自适应/链式支付工作流程

PHP PayPal 自适应支付 - 链式支付

PayPal 自适应支付、链式支付、ngx-paypal

我应该使用啥进行链式支付,它提供了与 PayPal 自适应支付相同的功能?

PHP - PayPal 自适应支付(延迟链式支​​付)

Paypal 自适应链式支付