New Zenner
- Join Date:
- Nov 2007
- Posts:
- 5
- Plugin Contributions:
- 0
Need help with Virtual Merchant module
Well, I'm still waiting on Virtual Merchant to get back to me so that I can get an account to really try stuff on. I'm still having an issue where no matter what I'm sending to them with that Demo account info I just get a blank screen at the address of the form action (demo.myvirtualmerchant.com).
As for the error control, I should think that would be pretty easy. Instead of using VM to decide if something should be redirected to one place or another, do it in the script and just use
zen_draw_hidden_field('ssl_receipt_link_method', 'REDG') .
zen_draw_hidden_field('ssl_receipt_link_url', zen_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', false)) .
Then just use the before_process method to check and see if ssl_result is returned to either continue or return to the processing page an report the error. Something like:
if (isset($_GET['ssl_result']) && $_GET['ssl_result']==0) {
do the good stuff
} elseif (isset($_GET['ssl_result']) && $_GET['ssl_result']!=0) {
redirect with error $_GET['ssl_result_message']
} elseif (isset($_GET['errorCode'])) {
redirect with error $_GET['ssl_error_code'] or where ever that message is stored
}
Is there a reason this wouldn't work?
Michael