我正在使用PayPal自适应支付链式支付我是Siteeweb所有者我希望收到所有金额并获得我的佣金并向卖方发送他的金额。 我使用我的电子邮件作为主要和secendary但我从payal
收到此错误错误代码:579040 错误消息:Receiver 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,
);
答案 0 :(得分:1)
我不熟悉PayPal的API和我,因为我没有足够的评论来评论我需要做这个作为答案。 我认为错误是因为您添加了$ receiver_email两次。你将它与(2).email和(0).email配对,这可能是不允许的。