Jump to content

Edit History

RaulRohjans

RaulRohjans


solved

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.

RaulRohjans

RaulRohjans

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.

×
×
  • Create New...