0

if i try to pay with paytm am getting this error "Invalid Form Key. Please refresh the page error" How do i fix it

2 Answers 2

0

You can try by increasing the value of max_input_vars in php.ini file. By default, this value is set to 1000. You should set it to 5000 or 10000.

Then Restart your server and check that process.

1
  • I have tried this but this is not working for me . I used a custom payment method (paytm) and it's redirects to home page with the same message
    – user81874
    Nov 19, 2019 at 10:00
0

Please try the below query

DELETE FROM `core_config_data` WHERE path='web/cookie/cookie_domain';

Then run the below commands via CLI:

sudo php bin/magento cache:flush

sudo php bin/magento cache:clean

Your Answer

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

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