Hi,
I'm using paypalExpresscheckout(debug), and I've encountered express checkout error and attached are the info that I've abstracted from the log files. Can anyone kindly help me with this? Thanks!
From the CURL log files, I discovered that in DoExpressCheckoutPayment module, the amount is $324,
whereas in the GetExpressCheckoutDetails module, the amount is $325
=-=-=-=-=-=-=-=-=-=-=-=-=-=-= DoExpressCheckoutPayment =-=-=-=-=-=-=-=-=-=-=-=-=-=-=
2016-09-07 02:13:15
-------------------
(live transaction) --> https://api-3t.paypal.com/nvp
Request Headers:
Array
(
[0] => Content-Type: text/namevalue
[1] => X-VPS-Timeout: 90
[2] => X-VPS-VIT-Client-Type: PHP/cURL
[3] => X-VPS-VIT-Integration-Product: PHP::Zen Cart(R) - PayPal/NVP
[4] => X-VPS-VIT-Integration-Version: 1.5.1
)
Request Parameters: {DoExpressCheckoutPayment}
Array
(
[AMT] => 324
[ITEMAMT] => 248
[TAXAMT] => -0
[SHIPPINGAMT] => 77
...
[METHOD] => DoExpressCheckoutPayment
[CURRENCYCODE] => USD
...
[VERSION] => 61.0
[SIGNATURE] => ****************************************************4HGI
)
Response:
Array
(
[TOKEN] => EC-2A113509RF904461Y
[SUCCESSPAGEREDIRECTREQUESTED] => false
[TIMESTAMP] => 2016-09-07T09:13:15Z
[CORRELATIONID] => 8fab46de3c54f
[ACK] => Failure
[VERSION] => 61.0
[BUILD] => 24765677
[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
[CURL_ERRORS] =>
)
DoExpressCheckoutPayment, Elapsed: 1240ms -- Failure
TOKEN=EC%2d2A113509RF904461Y&SUCCESSPAGEREDIRECTREQUESTED=false&TIMESTAMP=2016%2 d09%2d07T09%3a13%3a15Z&CORRELATIONID=8fab46de3c54f&ACK=Failure&VERSION=61%2e0&BU ILD=24765677&L_ERRORCODE0=10413&L_SHORTMESSAGE0=Transaction%20refused%20because% 20of%20an%20invalid%20argument%2e%20See%20additional%20error%20messages%20for%20 details%2e&L_LONGMESSAGE0=The%20totals%20of%20the%20cart%20item%20amounts%20do%2 0not%20match%20order%20amounts%2e&L_SEVERITYCODE0=Error&CURL_ERRORS=
=-=-=-=-=-=-=-=-=-=-=-=-=-=-= End of DoExpressCheckoutPayment =-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=-=-=-=-=-=-=-=-=-=-=-=-=-=-= GetExpressCheckoutDetails =-=-=-=-=-=-=-=-=-=-=-=-=-=-=
2016-09-07 02:13:14
-------------------
(live transaction) --> https://api-3t.paypal.com/nvp
Request Headers:
Array
(
[0] => Content-Type: text/namevalue
[1] => X-VPS-Timeout: 90
[2] => X-VPS-VIT-Client-Type: PHP/cURL
[3] => X-VPS-VIT-Integration-Product: PHP::Zen Cart(R) - PayPal/NVP
[4] => X-VPS-VIT-Integration-Version: 1.5.1
)
Request Parameters: {GetExpressCheckoutDetails}
Array
(
[TOKEN] => EC-2A113509RF904461Y
[METHOD] => GetExpressCheckoutDetails
...
[VERSION] => 61.0
[SIGNATURE] => ****************************************************4HGI
)
Response:
Array
(
[TOKEN] => EC-2A113509RF904461Y
[BILLINGAGREEMENTACCEPTEDSTATUS] => 0
[CHECKOUTSTATUS] => PaymentActionNotInitiated
[TIMESTAMP] => 2016-09-07T09:13:13Z
[CORRELATIONID] => ca70fd7f77932
[ACK] => Success
[VERSION] => 61.0
[BUILD] => 24765677
...
[ADDRESSSTATUS] => Confirmed
[CURRENCYCODE] => USD
[AMT] => 325.00
[ITEMAMT] => 248.00
[SHIPPINGAMT] => 77.00
[HANDLINGAMT] => 0.00
[TAXAMT] => 0.00
...
[INSURANCEAMT] => 0.00
[SHIPDISCAMT] => 0.00
[INSURANCEOPTIONOFFERED] => false
...
[CURL_ERRORS] =>
)
GetExpressCheckoutDetails, Elapsed: 1108ms -- Success
=-=-=-=-=-=-=-=-=-=-=-=-=-=-= End of GetExpressCheckoutDetails =-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Paypal Action file =-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Sep-07-2016 02:13:14 (1473239594)
getLineItemDetails 7 - subtotal comparisons
BEFORE line-item calcs: Array
(
[AMT] => 324.38
[ITEMAMT] => 248
[TAXAMT] => 7.57
[SHIPPINGAMT] => 68.81
[SHIPDISCAMT] => 0
[HANDLINGAMT] => 0
[INSURANCEAMT] => 0
)
AFTER doing line-item calcs: Array
(
[AMT] => 324.38
[ITEMAMT] => 248
[TAXAMT] => -0.43
[SHIPPINGAMT] => 76.81
...
)
=================================
Sep-07-2016 02:13:14 (1473239594)
getLineItemDetails 8
checking subtotals...
Array
(
[calculated total] => 324
[AMT] => 324
[ITEMAMT] => 248
[TAXAMT] => -0
[SHIPPINGAMT] => 77
)
-------------------
difference: 0 (abs+rounded: 0)
=================================
Sep-07-2016 02:13:14 (1473239594)
getLineItemDetails 10
subtotals balance - okay
=================================
Sep-07-2016 02:13:14 (1473239594)
before_process - EC-1
Beginning EC mode
=================================
Sep-07-2016 02:13:14 (1473239594)
before_process - EC-2
address overrides added:
Array
(
[AMT] => 324
[ITEMAMT] => 248
[TAXAMT] => -0
[SHIPPINGAMT] => 77
...
=-=-=-=-=-=-=-=-=-=-=-=-=-=-= End of Paypal Action file =-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Bookmarks