Paypal API: Die Gesamtsummen der Warenkorbpositionen stimmen nicht mit den Bestellmengen überein
Ich arbeite mit der Paypal Express Checkout-API und habe Probleme beim Einstellen der Menge. Nachfolgend sind meine URI-Parameter aufgeführt:
<code>$params = array( 'METHOD' => 'SetExpressCheckout', 'PAYMENTREQUEST_0_SHIPPINGAMT' => '0', 'PAYMENTREQUEST_0_TAXAMT' => '0', 'PAYMENTREQUEST_0_HANDLINGAMT' => '0', 'PAYMENTREQUEST_0_AMT' => "50.00", 'RETURNURL' => $this->_returnUri, 'CANCELURL' => $this->_cancelUri, 'HDRIMG' => $this->_logoUri, 'PAYMENTREQUEST_0_CURRENCYCODE' => 'GBP', 'L_PAYMENTREQUEST_0_DESC0' => 'Product description', 'L_PAYMENTREQUEST_0_NAME0' => 'Product name', 'L_PAYMENTREQUEST_0_AMT0' => "50.00", 'L_PAYMENTREQUEST_0_QTY0' => "2" ); </code>
Wenn L_PAYMENTREQUEST_0_QTY0 auf 1 gesetzt ist, ist der Prozess in Ordnung. Wenn ich es jedoch in 2 ändere und 'PAYMENTREQUEST_0_ITEMAMT' => "100.00" zum Array hinzufüge, erhalte ich den folgenden Fehler:
<code>TIMESTAMP: 2012-04-17T12:11:16Z CORRELATIONID: da43f6c91254 ACK: Failure VERSION: 88.0 BUILD: 2808426 L_ERRORCODE0: 10413 L_SHORTMESSAGE0: Transaction refused because of an invalid argument. See additional error messages for details. L_LONGMESSAGE0: The totals of the cart item amounts do not match order amounts. L_SEVERITYCODE0: Error </code>
Ich habe stundenlang versucht, es zu beheben und habe aufgegeben. Kann jemand hervorheben, was ich tun muss, damit es funktioniert?