php并行付款 - 交易费

时间:2015-05-16 03:23:04

标签: php paypal

我如何实现以下方案?从payPal网站采取。

接收方以并行付款方式支付费用

如果收件人以并行付款方式支付费用,则每位收款人根据其评估支付部分费用。以下示例显示了支付费用的接收者:

Image

我的参数:

$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'是足以传递给上述场景的参数。我怎么能在沙盒中检查这个?

1 个答案:

答案 0 :(得分:1)

是的,EACHRECEIVER就是你想要的。您可以通过创建多个沙箱帐户然后设置在这些接收器之间拆分的付款来在沙箱中对此进行测试。当您在沙箱中完成结账时,您可以登录每个接收方帐户并查看他们支付的费用。