【问题标题】:PayPal adaptive payment chained payment errorPayPal自适应支付链式支付错误
【发布时间】: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,
);

【问题讨论】:

    标签: php paypal


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2021-08-04
      • 2014-01-23
      • 2013-03-20
      • 2012-07-04
      • 2016-09-14
      • 2017-11-04
      • 2012-10-23
      • 2014-10-13
      相关资源
      最近更新 更多