PayPal自适应付款链式付款不允许付款,尽管主要设置正确的全额

时间:2015-02-23 10:49:47

标签: 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

这似乎告诉我,正如我已经知道的那样,主要必须得到整个命中并将剩余部分发送到辅助。但它仍然不喜欢它。

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

任何想法?

1 个答案:

答案 0 :(得分:1)

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

听起来你想要做的就是向主接收器发送25.50美元,然后向次要接收器发送13.50美元,这将使主要接收器的价格为12.00美元。