Every time I try to place order using Paypal Express for first time, It is showing the error:

PayPal gateway has rejected request. Invalid token (#10410: Invalid token)

When I logged the data to see the parameter it is sending blank token and blank payerID.

        [url] => https://api-3t.sandbox.paypal.com/nvp
        [DoExpressCheckoutPayment] => Array
                [TOKEN] => 
                [PAYERID] => 
                [PAYMENTACTION] => Sale
                [AMT] => 11.00
                [CURRENCYCODE] => GBP
                [BUTTONSOURCE] => Varien_Cart_EC_UK
                [NOTIFYURL] => http://magento-ba.localhost/paypal/ipn/
                [RETURNFMFDETAILS] => 1
                [ITEMAMT] => 9.17
                [TAXAMT] => 1.83
                [SHIPPINGAMT] => 0.00
                [L_NUMBER0] => 100193-01BL34C
                [L_NAME0] => Chloe lace balconette bra
                [L_QTY0] => 1
                [L_AMT0] => 9.17
                [BUSINESS] => 
                [EMAIL] => [email protected]
                [FIRSTNAME] => amzad
                [LASTNAME] => mojumder
                [MIDDLENAME] => 
                [SALUTATION] => 
                [SUFFIX] => 
                [COUNTRYCODE] => GB
                [STATE] => -
                [CITY] => WOKING
                [STREET] => 44 Walton Court
                [ZIP] => GU21 5ED
                [PHONENUM] => 07900642141
                [SHIPTOCOUNTRYCODE] => GB
                [SHIPTOSTATE] => -
                [SHIPTOCITY] => WOKING
                [SHIPTOSTREET] => 44 Walton Court
                [SHIPTOZIP] => GU21 5ED
                [SHIPTOPHONENUM] => 07900642141
                [SHIPTOSTREET2] => 
                [STREET2] => 
                [SHIPTONAME] => amzad mojumder
                [ADDROVERRIDE] => 1
                [METHOD] => DoExpressCheckoutPayment
                [VERSION] => 72.0
                [USER] => ****
                [PWD] => ****
                [SIGNATURE] => ****

        [response] => Array
                [TIMESTAMP] => 2014-11-14T15:23:32Z
                [CORRELATIONID] => 9f6a2e2e72148
                [ACK] => Failure
                [VERSION] => 72.0
                [BUILD] => 13630372
                [L_ERRORCODE0] => 10410
                [L_SHORTMESSAGE0] => Invalid token
                [L_LONGMESSAGE0] => Invalid token.
                [L_SEVERITYCODE0] => Error

        [__pid] => 3936

Is it possible to to set token manually in the start of the express checkout? Or any solution for it? Any help will be greatly appreciated!

  • 1
    This shouldn't happen, so I recommend you fix the bug instead of building any workaround! Nov 14, 2014 at 16:06
  • Have you asked PayPal's support? They have been helpful in the past when I've had problems like this. It would also be helpful to know if you are using PayFlow Pro or a similar integration.
    – ddavidn
    Nov 14, 2014 at 16:29
  • I have not yet, But I think is a problem that we had this new module we brought. But I am looking into it now, trying to fix the issue .. Thanks anyway. If could not resolve I'll contact them.
    – m82amjad
    Nov 14, 2014 at 16:35

2 Answers 2


The fact the TOKEN is empty tells that SetExpressCheckout call to PayPal was not made. This call is normally triggered once the payment step of Magento checkout is saved. It returns the TOKEN which is then used for all communications with PayPal.

Most likely you are using some checkout enhancement such as "CheckItOut" or "OneStepCheckout" and they are triggering checkout/onepage/savePayment manually. Normally they do it once the payment method is changed but if you have PayPal Express pre-selected this will not happen.

The easiest way to check it is to switch to some other payment method and then back to PayPal Express. After this if you click "Place Order" button you should be successfully redirected to PayPal.

So how to solve the issue? Firs of all contact the extension vendor and claim your money back. Then modify the code triggering savePayment action manually upon the page load.

  • 1
    you are a champion , same issue for free version of this module Apr 28, 2016 at 11:27

Just wanted to add to this question that it appears that sometimes you can invalidate your creds if you are running a dev server on a different domain name. If you re-validate with Paypal it can fix the issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.