php - PayPal 自适应支付链接支付不允许支付,尽管主要设置正确

标签 php paypal paypal-adaptive-payments

我正在使用 php 生成以下链式支付调用。主要是我的公司,它收到全额款项,而次要是另一个收款人。电话是:

currencyCode=USD
actionType=PAY
returnUrl=http%3A%2F%2Felb-dev-xx.com%2FpaymentSuccess.php
cancelUrl=http%3A%2F%2Felb-dev-xx.com%2FpaymentCancel.php
receiverList.receiver(0).amount=12.00
receiverList.receiver(0).email=xx%40gmail.com
receiverList.receiver(0).primary=1
receiverList.receiver(0).invoiceId=MC2015022346_125
receiverList.receiver(1).amount=13.50
receiverList.receiver(1).email=xx2%40gmail.com
receiverList.receiver(1).invoiceId=MC2015022346_125
feesPayer=EACHRECEIVER
ipnNotificationUrl=http%3A%2F%2Felb-dev-xx.com%2Fpaypal%2Fipn_handler.php
memo=my+memo+and+stuff

我看到的错误是:

23/Feb/2015:21:32:47] (chained_payment) [436-dl4i3jsu2gbblo1fvk5evpvjl6] : array (
'responseEnvelope.timestamp' => '2015-02-23T02:32:47.511-08:00',
'responseEnvelope.ack' => 'Failure',
  'responseEnvelope.correlationId' => 'b4d7182a1a689',
  'responseEnvelope.build' => '15089777',
  'error(0).errorId' => '579017',
  'error(0).domain' => 'PLATFORM',
  'error(0).subdomain' => 'Application',
  'error(0).severity' => 'Error',
  'error(0).category' => 'Application',
  'error(0).message' => 'The amount for the primary receiver must be greater than or equal to the total of other chained receiver amounts',
)
    [23/Feb/2015:21:32:47] (chained_payment) [436-dl4i3jsu2gbblo1fvk5evpvjl6] : array (
  0 =>
  array (
'ErrorCode' => '579017',
'ErrorMsg' => 'The amount for the primary receiver must be greater than or equal to the total of other chained receiver amounts',
'ErrorDomain' => 'PLATFORM',
'ErrorSeverity' => 'Error',
'ErrorCategory' => 'Application',
  ),
)
    [23/Feb/2015:21:32:47] (chained_payment) [436-dl4i3jsu2gbblo1fvk5evpvjl6] : Calling PayPal pay() failed
    [23/Feb/2015:21:32:47] (chained_payment) [436-dl4i3jsu2gbblo1fvk5evpvjl6] : Exception::__set_state(array(
   'message' => 'The amount for the primary receiver must be greater than or equal to the total of other chained receiver amounts',
   'string' => '',
   'code' => 0,
   'file' => '/var/app/current/chained_payment.php',
       'line' => 643,
   'trace' =>
  array (
  ),
     'previous' => NULL,
  ))
  [23/Feb/2015:21:32:47] (chained_payment) [436-dl4i3jsu2gbblo1fvk5evpvjl6] : Chained Payment failed The amount for the primary receiver must be greater than or equal to the total of other chained receiver amounts

这似乎在告诉我,正如我已经知道的那样,主节点必须获得全部命中并将其余部分发送到辅助节点。但是它仍然不喜欢它。

目前沙盒和生产中正在发生这种情况。

有什么想法吗?

最佳答案

根据您的请求,您尝试向主要接收方发送 12.00 美元,然后向辅助接收方发送 13.50 美元。你不能那样做。

听起来您想要做的是向主要接收方发送 25.50 美元,然后向辅助接收方发送 13.50 美元,这将使主要接收方剩下 12.00 美元。

关于php - PayPal 自适应支付链接支付不允许支付,尽管主要设置正确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28671990/

相关文章:

php - 从具有 belongsToMany 关系的相关 laravel 模型中获取 ids 数组

php - 在 PAYPAL PHP REST API SDK 中使用对象

checkout - PayPal 自适应支付和 Stripe 的更便宜替代方案

asp.net - 如何在 asp.net webform 中使用我自己的购物车实现 Paypal

android - paypay并行支付是否在android sdk中向收件人发送邮件?

php - 当optimized_write设置为True时,是否可以使用Openpyxl并行创建多个Excel文件?

php - 如何用马拉雅拉姆语制作网站?

php - Symfony2 - 扩展或替换 SonataUserBundle 注册表

android - 如何在android studio项目中导入最新的Paypal sdk?

paypal - Payflow Pro 不工作