0
我使用php生成以下鏈接付款電話。小學是我的公司,收到全額,而中學是另一個收件人。電話是:PayPal自適應付款鏈接付款不允許付款,儘管主要設置了正確的金額
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。它然後將13.50美元傳遞給次要的,從而保持.50c本身。這是對的。 – sapatos 2015-02-24 09:41:07
問題現在已解決。錯誤來自應用程序代碼不是貝寶...一次:) – sapatos 2015-02-24 09:42:16
我很想知道工作請求的樣子。你對這些數字的評價沒有意義。 – 2015-02-24 16:32:46