自适应Paypal付款错误代码:579017

时间:2012-10-30 10:04:43

标签: paypal paypal-sandbox paypal-adaptive-payments

我正在使用延迟链式Paypal支付系统。我收到了像

这样的错误
  

详细错误消息:主接收器的数量必须大于或等于其他链接接收器的总数   amountError代码:579017Error严重性:错误错误域:   PLATFORMError类别:应用

如何发送主接收器获得的数量小于辅助接收器的数量

我的场景是主接收方从发送方获取金额并获得一定数量的服务并将金额发送给次要接收方。

例如,用户预订机票意味着网站所有者从接收方获取全部金额并将其服务费用作为一定百分比,并将剩余金额发送给我使用延迟链式支​​付的业主

我的代码是

$receiverEmailArray = array(
        'johnwewe9340_biz@gmail.com',
        'jameswewe9546_per@gmail.com',
        '',
        '',
        ''
        );

// TODO - specify the receiver amounts as the amount of money, for example, '5' or '5.55'
//        remove or set to an empty string the array entries for receivers that you do not have
$receiverAmountArray = array(
        '10',
        '100',
        '',
        '',
        ''
        );

// TODO - Set ONLY 1 receiver in the array to 'true' as the primary receiver, and set the
//        other receivers corresponding to those indicated in receiverEmailArray to 'false'
//        make sure that you do NOT specify more values in this array than in the receiverEmailArray
$receiverPrimaryArray = array(
        'true',
        'false'
        );

// TODO - Set invoiceId to uniquely identify the transaction associated with each receiver
//        set the array entries with value for receivers that you have
//        each of the array values must be unique across all Pay calls made by the caller's API credentials
$receiverInvoiceIdArray = array(
        '',
        '',
        '',
        '',
        '',
        ''
        );

1 个答案:

答案 0 :(得分:1)

小学必须收到全额,次要的只是他们应该得到的金额。 因此,如果总金额为100.00美元,则主要金额为10% 主要获得100.00,次要获得90.00。