Jump to content

[SOLVED] Show error message on payment options page


Recommended Posts

Hello, I am working on a payment module. On the checkout page, the user has a form with two text boxes and when the info is submitted, the user is redirected to a verification page where the stuff gets verified and payment gets process. If everything goes well then he is redirected to the oder confirmed page, otherwise i redirects back to the checkout page and shows an error message.

I am trying to display the message with:

$this->context->controller->errors[] ='The api key is invalid!!';

 

This works perfectly on the module configuration page, but it does not show anything here. Any ideas?

Thank you in advance.

 

 

EDIT: I ended up implementing my own error message system with some java script custom alerts.

Edited by RaulRohjans
solved (see edit history)
Link to comment
Share on other sites

  • RaulRohjans changed the title to [SOLVED] Show error message on payment options page

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...