我遇到了一个问题,我要向总计添加自定义费用并更新Paypal。不幸的是,这在PayPal上不能很好地发挥作用,我得到以下响应:
main.DEBUG: array (
'url' => 'https://api-3t.sandbox.paypal.com/nvp',
'SetExpressCheckout' =>
array (
'PAYMENTACTION' => 'Sale',
'AMT' => '108.85',
'CURRENCYCODE' => 'USD',
'RETURNURL' => 'http://test.com/us/paypal/express/return/',
'CANCELURL' => 'http://test.com/us/paypal/express/cancel/',
'INVNUM' => 'US-00050186',
'SOLUTIONTYPE' => 'Mark',
'GIROPAYCANCELURL' => 'http://test.com/us/paypal/express/cancel/',
'GIROPAYSUCCESSURL' => 'http://test.com/us/checkout/onepage/success/',
'BANKTXNPENDINGURL' => 'http://test.com/us/checkout/onepage/success/',
'SHIPPINGAMT' => '9.99',
'ITEMAMT' => '85.43',
'TAXAMT' => '7.99',
'L_NUMBER0' => NULL,
'L_NAME0' => 'ExtraFee',
'L_QTY0' => 1,
'L_AMT0' => '5.44',
'BUSINESS' => NULL,
'NOTETEXT' => NULL,
'EMAIL' => 'test@gmail.com',
'FIRSTNAME' => 'test',
'LASTNAME' => 'test',
'MIDDLENAME' => NULL,
'SALUTATION' => NULL,
'SUFFIX' => NULL,
'COUNTRYCODE' => 'US',
'STATE' => 'NY',
'CITY' => 'New York',
'STREET' => 'New York',
'ZIP' => '10013',
'PHONENUM' => '17623838372',
'SHIPTOCOUNTRYCODE' => 'US',
'SHIPTOSTATE' => 'NY',
'SHIPTOCITY' => 'New York',
'SHIPTOSTREET' => 'New York',
'SHIPTOZIP' => '10013',
'SHIPTOPHONENUM' => '17623838372',
'SHIPTOSTREET2' => '',
'STREET2' => '',
'SHIPTONAME' => 'test test',
'ADDROVERRIDE' => 1,
'METHOD' => 'SetExpressCheckout',
'VERSION' => '72.0',
'USER' => '****',
'PWD' => '****',
'SIGNATURE' => '****',
'BUTTONSOURCE' => 'Magento_Cart_Community',
),
'response' =>
array (
'TIMESTAMP' => '2019-02-08T15:31:17Z',
'CORRELATIONID' => 'de43685675249',
'ACK' => 'Failure',
'VERSION' => '72.0',
'BUILD' => '51752370',
'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',
),
) [] []
但是购物车的总数确实匹配:9.99 + 85.43 + 7.99 + 5.44 = 108.85
我不明白这是什么问题。有人对发生的事情有想法吗?