Jump to content

How to show custom message after redirecting back user from module


Recommended Posts

Hi,

I've created prestashop module for Payment Gateway and it works fine but if/for any reason order is not completed properly then after my external api response I redirect back user to step 1 with help of this code :

    Tools::redirect('index.php?controller=order&step=1');

But now I want that flow + also wanted to show user a proper message which comes from my api lets say I've message in variable $message but how can I show it to user after him/her back to step 1 

Is there anything like flash messages or something which can solve my issue

Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...