Hi all,
I'm building third party payment gateway.
Firstly I want to check config parameters, and if they are ok I will redirect to payment gateway.
If parameters are incorrect I want to prevent redirection and print alert to frontend, and also prevent to create invoiceitem.
Is there a way that I could achieve this?