1

我正在使用延迟链接的 Paypal 支付系统。我有一个错误,比如

详细错误消息:主接收方的金额必须大于或等于其他链接的接收方金额的总和错误代码:579017错误严重性:错误错误域:平台错误类别:应用程序

如何发送主要接收方获得的金额少于次要接收方的金额

我的场景是主要接收者从发送者那里获得一笔金额并获得一些服务金额并将金额发送给辅助接收者。

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

我的代码是

$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(
        '',
        '',
        '',
        '',
        '',
        ''
        );
4

1 回答 1

1

主要必须收到全部金额,而次要只能收到他们应该得到的金额。因此,如果总金额为 100.00 美元,并且主节点保留 10%,则主节点将获得 100.00,而辅助节点将获得 90.00。

于 2014-08-06T22:06:19.667 回答