I developed 5 payment modules, now I'm working on financing/loan module very similar to a payment module in its logic (it works like a payment gateway).
Main difference is in the response received by the 'gateway'. It's not only OK / KO, there's a third status, let's say 'almost ok'.
For KO status I redirect to checkout_payment as usual, for the other 2 status, I redirect to checkout_process as usual, but I would like to bring a message to the checkout success page, depending on the status (OK or almost OK).
I know how to add a message for the KO status (adding error message to the url), but I think I cannot use same code.
So how to proceed?
I suppose I should start adding my message to $get_append in my module:
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PROCESS, $get_append, 'SSL', true, false));
But how to retrieve it in checkout success page?
Maybe a 'cleaner' way could be using this?
$zco_notifier->notify('NOTIFY_HEADER_END_CHECKOUT_SUCCESS');
And creating a query which retrieves the response status (I store it, with other info, in a new table)?
The problem is that I haven't understood yet how notifyer system works...
Bookmarks