PayPal自适应支付链支付错误


PayPal adaptive payment chained payment error

我使用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,
);

我不熟悉PayPal的API,由于我没有足够的分数来评论,我需要这样做作为答案。我认为错误是因为您添加了两次$receiver_email。您将其与(2).email和(0).email配对,这可能是不允许的。