This is a discussion on Protx Form Payment Module within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Hi. When testing this submission I discovered that the redirect back from Protx when the user hit Cancel failed. The ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| Hi. When testing this submission I discovered that the redirect back from Protx when the user hit Cancel failed. The reason turned out to be the use of HTTP_POST_VARS as the redirect back from Protx is a GET. Simply replace the function before_process with this: ----8SimpleXor(base64_decode(str_replace (" ", "+", $crypt)),MODULE_PAYMENT_PROTX_FORM_PASSWORD); $values = $this->getToken($Decoded); $Status = $values['Status']; $StatusDetail = $values['StatusDetail']; if ($Status != 'OK') { // CWS Fix start $sessionName = tep_session_name(); $sessionId = $HTTP_GET_VARS[$sessionName]; $hrefLink = tep_href_link(FILENAME_CHECKOUT_PAYMENT, tep_session_name() . '=' . $sessionId . '&error_message=' . urlencode($StatusDetail), 'SSL', false, false); tep_redirect( $hrefLink ); // CWS fix end } } ---8
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Place ProtX Form in Frame?!?!? | frijj2k | osCommerce 2.2 Modification Help | 1 | 07-28-2004 07:45 AM |
| Need to know if there is an eci-pay payment module. | fridgemags | osCommerce 2.2 Modification Help | 0 | 05-16-2004 11:28 PM |
| payment module | CMWM | osCMax v1.7 General Mods Discussion | 0 | 04-10-2004 08:11 AM |
| BoA payment Module | Anonymous | osCMax v1.7 Discussion | 0 | 12-07-2003 11:31 PM |
| Payment module | tozo | osCMax v1.7 Discussion | 0 | 09-21-2003 07:05 AM |