PHP并行支付
我如何实现这个下面的场景? 从payPal网站采取。
收款人以平行付款支付费用
如果接收方以平行支付方式支付费用,则每个接收方根据评估结果支付一部分费用。 以下示例显示支付费用的接收方:
我的参数:
$bodyParams = array (
"actionType" => "PAY",
"currencyCode" => "USD",
"receiverList.receiver(0).email" => $receiver_p,
"receiverList.receiver(0).amount" => $amount_primary,
//"receiverList.receiver(0).primary"=>true,
"receiverList.receiver(1).email" => $receiver["paypal_id"][0],
"receiverList.receiver(1).amount" => $amount[0],
"receiverList.receiver(2).email" => $receiver["paypal_id"][1],
"receiverList.receiver(2).amount" => $amount[1],
"receiverList.receiver(3).email" => $receiver["paypal_id"][2],
"receiverList.receiver(3).amount" => $amount[2],
"receiverList.receiver(4).email" => $receiver["paypal_id"][3],
"receiverList.receiver(4).amount" => $amount[3],
"returnUrl" => APP_WEB_ROOT.'/checkout.php?cmd=paid',
"cancelUrl" => APP_WEB_ROOT.'/checkout.php',
"requestEnvelope.errorLanguage" => "en_US",
'FeesPayer' => 'EACHRECEIVER'
);
是'FeesPayer' => 'EACHRECEIVER'
是传递到上述场景的足够参数。 我如何在沙箱中检查这个?
是的,EACHRECEIVER就是你想要的。 您可以通过创建多个沙箱帐户在沙箱中进行测试,然后设置在这些接收方中分摊的付款。 当您在沙箱中完成结账时,您可以登录到每个收款人账户并查看他们支付的费用。
链接地址: http://www.djcxy.com/p/77349.html上一篇: php parallel payment
下一篇: How does PayPal calculate and assign parallel payment transaction fees?