Skip to main content

PayPal Community

  • Dashboard
  • Send and Request
  • Wallet
  • Business
  • Help
Log in
  • Welcome
    • Guidelines
    • News and Events
    • Suggestions for PayPal
    • General Discussions
  • PayPal Help Community
    • Managing Account
    • Transactions
    • Wallet
    • Security and Fraud
    • Products & Services
    • Reporting
  • MTS Community
    • PayPal Upgrade Community
    • PayPal Payments Standard
    • REST APIs
    • NVP/SOAP APIs
    • SDKs
    • Sandbox Environment
    • PayPal Reporting
    • Payflow
    • Ideas for MTS
    • Client-side Integration
    • Server-side Integration
  • The Archives
    • PayPal Help Community Archives
      • Managing Account Archives
      • Transactions Archives
      • Wallet Archives
      • Security and Fraud Archives
      • Products & Services Archives
      • Reporting Archives
    • Help Community
      • PayPal Basics Archives
      • Payments Archives
      • My Money Archives
      • My Account Archives
      • Disputes and Limitations Archives
      • Products and Services Archives
      • PayPal Credit Archives
    • Merchant Community
      • Merchant Products
      • Business Tools Archives
      • Reporting Archives
      • Managing Risk and Fraud Archives
    • Help Archives
      • About Business (Archive)
      • About Payments (Archive)
      • About Settings (Archive)
      • About eBay (Archive)
      • About Protections (Archive)
      • About Products (Archive)
    • Social and Your Voice Archives
      • Off Topic (Archive)
      • My Feedback for PayPal (Archive)
    • About PayPal Archives
      • Watercooler (Archive)
      • Tax Information (Archive)
      • Fees (Archive)
      • eBay and PayPal (Archive)
      • Coupons and promotions (Archive)
    • My Account Archives
      • My account settings (Archive)
      • Account limits and verification (Archive)
      • Account balance (Archive)
      • Bank accounts and credit cards (Archive)
    • Payments Archives
      • Sending money (Archive)
      • Receiving money (Archive)
      • Refunds (Archive)
      • Donations and Fundraising (Archive)
    • Disputes and Security Archives
      • Disputes and claims (Archive)
      • Fraud, phishing and spoof (Archive)
    • My Business Archives
      • Merchant services (Archive)
      • Reporting and tracking (Archive)
      • Shipping (Archive)
    • PayPal Products Archives
      • PayPal Debit Mastercard (Archive)
      • PayPal Extras MasterCard (Archive)
      • PayPal Mobile & Other Services (Archive)
      • Student Accounts (Archive)
      • Bill Me Later (Archive)
    • Getting to know PayPal
      • My PayPal account
      • Security and protection
    • Receiving and sending money
      • Buying with PayPal
      • Selling with PayPal
    • PayPal Here UK
      • PayPal Here News and Events
      • PayPal Here Community
      • Chip and Pin Card Reader
      • PayPal Here App

The Community Forum will no longer be available starting June 30, 2025. Please note that the forum is now closed for new posts and responses, but previous posts will remain accessible for review until June, 30 2025. For comprehensive support options, please visit PayPal.com/HelpCenter
Merchant Technical Support: For technical support and related questions, please visit our Technical Support Help Center or Developer Central

If you want to report illegal content under the EU Digital Services Act, please do so here

since ‎Apr-27-2018
Country: Italy
Type: Business
qooking
qooking
New Community Member
1
Post
0
Kudos
0
Solutions
Your PayPal Anniversary
Active
View all
Latest Contributions by qooking
  • Topics qooking has Participated In
  • Latest Contributions by qooking

Magento: Paypal Express Checkout response error

by qooking in Sandbox Environment
‎Apr-27-2018 03:16 AM
‎Apr-27-2018 03:16 AM
Hello,  I've been trying to debug the following issue with no luck, hope some of you can give me a hand!   I have configured Paypal Express Checkout on my Magento store and I manage to be successfully redirected to Paypal to authorise the payment for an order (in fact, by looking at the log, the request looks just fine) but then I get an error when I am redirected back to my website. Specifically, by looking at the log for the response, it seems like the order amount is recalculated and does not match the one contained in the request. Most of the time it seems like in the recalculation, tax amounts are added twice (bear in mind that my store is set up in a way that prices already include taxes) but some other times it seems like it's not considering discounts. Please find below an example of request and response from my log and look how the total order amount is changed from 24.02 to 25.71.   Thanks in advance for your help. Luca     2018-04-27T09:48:16+00:00 DEBUG (7): Array ( [url] => https://api-3t.sandbox.paypal.com/nvp [SetExpressCheckout] => Array ( [PAYMENTACTION] => Sale [AMT] => 24.02 [CURRENCYCODE] => EUR [RETURNURL] => https://beta.xxxxyyyy.it/it/paypal/express/return/ [CANCELURL] => https://beta.xxxxyyyy.it/it/paypal/express/cancel/ [INVNUM] => 200000047 [SOLUTIONTYPE] => Mark [GIROPAYCANCELURL] => https://beta.xxxyyyy.it/it/paypal/express/cancel/ [GIROPAYSUCCESSURL] => https://beta.xxxxyyyy.it/it/checkout/onepage/success/ [BANKTXNPENDINGURL] => https://beta.xxxxyyyy.it/it/checkout/onepage/success/ [LOCALECODE] => it_IT [ITEMAMT] => 20.03 [TAXAMT] => 0 [SHIPPINGAMT] => 3.99 [BUSINESS] => [NOTETEXT] => [EMAIL] => test [FIRSTNAME] => test [LASTNAME] => test [MIDDLENAME] => [SALUTATION] => [SUFFIX] => [COUNTRYCODE] => IT [STATE] => [CITY] => test [STREET] => test [ZIP] => 3252 [PHONENUM] => 32579261 [SHIPTOCOUNTRYCODE] => IT [SHIPTOSTATE] => [SHIPTOCITY] => test [SHIPTOSTREET] => test [SHIPTOZIP] => 3252 [SHIPTOPHONENUM] => 32579261 [SHIPTOSTREET2] => [STREET2] => [SHIPTONAME] => test test [ADDROVERRIDE] => 1 [METHOD] => SetExpressCheckout [VERSION] => 72.0 [USER] => **** [PWD] => **** [SIGNATURE] => **** [BUTTONSOURCE] => Magestore_SI_MagentoCE ) [response] => Array ( [TOKEN] => EC-64E87400UE8379807 [TIMESTAMP] => 2018-04-27T09:48:16Z [CORRELATIONID] => c162e31dd3ae9 [ACK] => Success [VERSION] => 72.0 [BUILD] => 46007304 ) [__pid] => 20364 ) 2018-04-27T09:48:34+00:00 DEBUG (7): Array ( [url] => https://api-3t.sandbox.paypal.com/nvp [GetExpressCheckoutDetails] => Array ( [TOKEN] => EC-64E87400UE8379807 [METHOD] => GetExpressCheckoutDetails [VERSION] => 72.0 [USER] => **** [PWD] => **** [SIGNATURE] => **** [BUTTONSOURCE] => Magestore_SI_MagentoCE [TAXAMT] => 0 ) [response] => Array ( [TOKEN] => EC-64E87400UE8379807 [BILLINGAGREEMENTACCEPTEDSTATUS] => 0 [CHECKOUTSTATUS] => PaymentActionNotInitiated [TIMESTAMP] => 2018-04-27T09:48:34Z [CORRELATIONID] => 9249a20e8fc1 [ACK] => Success [VERSION] => 72.0 [BUILD] => 46007304 [EMAIL] =>  [PAYERID] => FCQGUP3C5AZTW [PAYERSTATUS] => verified [FIRSTNAME] => test [LASTNAME] => buyer [COUNTRYCODE] => IT [SHIPTONAME] => test test [SHIPTOSTREET] => test [SHIPTOCITY] => test [SHIPTOZIP] => 3252 [SHIPTOCOUNTRYCODE] => IT [SHIPTOPHONENUM] => 32579261 [SHIPTOCOUNTRYNAME] => Italy [ADDRESSSTATUS] => Confirmed [CURRENCYCODE] => EUR [AMT] => 24.02 [ITEMAMT] => 20.03 [SHIPPINGAMT] => 3.99 [HANDLINGAMT] => 0.00 [TAXAMT] => 0.00 [INVNUM] => 200000047 [INSURANCEAMT] => 0.00 [SHIPDISCAMT] => 0.00 [INSURANCEOPTIONOFFERED] => false [PAYMENTREQUEST_0_CURRENCYCODE] => EUR [PAYMENTREQUEST_0_AMT] => 24.02 [PAYMENTREQUEST_0_ITEMAMT] => 20.03 [PAYMENTREQUEST_0_SHIPPINGAMT] => 3.99 [PAYMENTREQUEST_0_HANDLINGAMT] => 0.00 [PAYMENTREQUEST_0_TAXAMT] => 0.00 [PAYMENTREQUEST_0_INVNUM] => 200000047 [PAYMENTREQUEST_0_INSURANCEAMT] => 0.00 [PAYMENTREQUEST_0_SHIPDISCAMT] => 0.00 [PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID] =>  [PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED] => false [PAYMENTREQUEST_0_SHIPTONAME] => test test [PAYMENTREQUEST_0_SHIPTOSTREET] => test [PAYMENTREQUEST_0_SHIPTOCITY] => test [PAYMENTREQUEST_0_SHIPTOZIP] => 3252 [PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE] => IT [PAYMENTREQUEST_0_SHIPTOPHONENUM] => 32579261 [PAYMENTREQUEST_0_SHIPTOCOUNTRYNAME] => Italy [PAYMENTREQUEST_0_ADDRESSSTATUS] => Confirmed [PAYMENTREQUESTINFO_0_ERRORCODE] => 0 ) [__pid] => 20273 ) 2018-04-27T09:48:36+00:00 DEBUG (7): Array ( [url] => https://api-3t.sandbox.paypal.com/nvp [DoExpressCheckoutPayment] => Array ( [TOKEN] => EC-64E87400UE8379807 [PAYERID] => FCQGUP3C5AZTW [PAYMENTACTION] => Sale [AMT] => 25.71 [CURRENCYCODE] => EUR [BUTTONSOURCE] => Magestore_SI_MagentoCE [NOTIFYURL] => https://beta.xxxxyyyy.it/it/paypal/ipn/ [RETURNFMFDETAILS] => 1 [ITEMAMT] => 20.95 [TAXAMT] => 0 [SHIPPINGAMT] => 3.99 [METHOD] => DoExpressCheckoutPayment [VERSION] => 72.0 [USER] => **** [PWD] => **** [SIGNATURE] => **** ) [response] => Array ( [TOKEN] => EC-64E87400UE8379807 [SUCCESSPAGEREDIRECTREQUESTED] => false [TIMESTAMP] => 2018-04-27T09:48:35Z [CORRELATIONID] => 2b1ce98359068 [ACK] => Failure [VERSION] => 72.0 [BUILD] => 46007304 [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 ) [__pid] => 20273 ) ... View more
Paypal Logo
  • Help
  • Contact Us
  • Security
  • Fees
  • © 1999-2025 PayPal, Inc. All rights reserved.
  • Privacy
  • Legal
  • Cookies
  • Policy Updates

The money in your balance is eligible for pass-through FDIC insurance.

The PayPal Cash Mastercard is issued by The Bancorp Bank pursuant to a license by Mastercard International Incorporated. The Bancorp Bank; Member FDIC.

Powered by Khoros
Welcome to the PayPal Community!