我正在使用延迟链接的 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(
'',
'',
'',
'',
'',
''
);