2016-08-25 81 views
0

錯誤:錯誤:[email protected]總髮票金額不支付的延遲支付鏈的金額相匹配

The total invoiced amount for [email protected] does not match the amount in the pay for delayed chain payment.

我沒有得到的setPaymentOptions這裏我傳遞等於正確的響應金額爲payrequst和發票數據,但無法比較其價格。這是因爲貨幣代碼,因爲我們通過payRequest接收方的貨幣代碼和發票數據?我們沒有任何參數來傳遞貨幣代碼。任何人都可以幫我解決這個問題嗎?

PayPal\Types\AP\SetPaymentOptionsResponse Object 
(
[responseEnvelope] => PayPal\Types\Common\ResponseEnvelope Object 
    (
     [timestamp] => 2016-08-25T00:11:21.138-07:00 
     [ack] => Failure 
     [correlationId] => 8cc5bbe5cde59 
     [build] => 24003818 
    ) 

[error] => Array 
    (
     [0] => PayPal\Types\Common\ErrorData Object 
      (
       [errorId] => 580023 
       [domain] => PLATFORM 
       [subdomain] => Application 
       [severity] => Error 
       [category] => Application 
       [message] => The total invoiced amount for [email protected] does not match the amount in the pay request 
       [exceptionId] => 
       [parameter] => Array 
        (
         [0] => PayPal\Types\Common\ErrorParameter Object 
          (
           [name] => 
           [value] => invoiceData 
          ) 

         [1] => PayPal\Types\Common\ErrorParameter Object 
          (
           [name] => 
           [value] => [email protected] 
          ) 

        ) 

      ) 

    ) 

) 

參數我傳遞了PayRequestInvoiceDatas

PayPal\Types\AP\PayRequest Object 
(
[requestEnvelope] => PayPal\Types\Common\RequestEnvelope Object 
    (
     [detailLevel] => 
     [errorLanguage] => en_US 
    ) 

[clientDetails] => 
[actionType] => PAY_PRIMARY 
[cancelUrl] => http://localhost.xyz.com/paymentError?cancel=true 
[currencyCode] => USD 
[feesPayer] => 
[ipnNotificationUrl] => http://replaceIpnUrl.com 
[memo] => 
[pin] => 
[preapprovalKey] => 
[receiverList] => PayPal\Types\AP\ReceiverList Object 
    (
     [receiver] => Array 
      (
       [0] => PayPal\Types\AP\Receiver Object 
        (
         [amount] => 2.00 
         [email] => [email protected] 
         [phone] => 
         [primary] => false 
         [invoiceId] => 
         [paymentType] => 
         [paymentSubType] => 
         [accountId] => 
        ) 

       [1] => PayPal\Types\AP\Receiver Object 
        (
         [amount] => 8.00 
         [email] => [email protected] 
         [phone] => 
         [primary] => true 
         [invoiceId] => 
         [paymentType] => 
         [paymentSubType] => 
         [accountId] => 
        ) 

      ) 

    ) 

[reverseAllParallelPaymentsOnError] => 
[senderEmail] => 
[returnUrl] => http://localhost.xyz.com/expressCallback 
[trackingId] => 
[fundingConstraint] => 
[sender] => 
[payKeyDuration] => 
) 
PayPal\Types\AP\ReceiverOptions Object 
(
[description] => 
[customId] => 
[invoiceData] => PayPal\Types\AP\InvoiceData Object 
    (
     [item] => Array 
      (
       [0] => PayPal\Types\AP\InvoiceItem Object 
        (
         [name] => Brand 
         [identifier] => 1 
         [price] => 8.00 
         [itemPrice] => 8.00 
         [itemCount] => 32 
        ) 

      ) 

     [totalTax] => 2 
     [totalShipping] => 27 
    ) 

[receiver] => PayPal\Types\AP\ReceiverIdentifier Object 
    (
     [email] => [email protected] 
     [phone] => 
     [accountId] => 
    ) 

[referrerCode] => 
) 
+0

你能否提供一些關於這方面的更多細節? –

回答

0

以下兩件事情要糾正有關價格/金額擺脫錯誤的。

1:在InvoiceItem對象

[name] => Brand 
[identifier] => 1 
[price] => 256   //THIS IS EQUAL TO itemPrice * itemCount 
[itemPrice] => 8.00 
[itemCount] => 32 
enter code here 

2:在Reciever對象

[email protected]是主要接收器應該總是具有等於量總訂單金額(商品+稅金+折扣+運費),不管二手接收器是否可用。因此,應更正爲:

[amount] => 285.00     //256 + 2 + 27 
[email] => [email protected] 
[phone] => 
[primary] => true 
[invoiceId] => 
[paymentType] => 
[paymentSubType] => 
[accountId] => 

和二級接收器的這個接收器對象規定了總的285.00的,2.00將被記入二級接收器:

[amount] => 2.00      //2.00 will be credited to ABC out of 285.00 
[email] => [email protected] 
[phone] => 
[primary] => false 
[invoiceId] => 
[paymentType] => 
[paymentSubType] => 
[accountId] => 

改正這些問題並確實讓我知道您是否仍然面臨金額不匹配的問題。