[TEP-COMMIT] CVS: catalog/catalog/includes/modules/payment cc.php,1.54,1.55
Harald Ponce de Leon <[email protected]>
| Newsgroups | gmane.comp.web.oscommerce.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tep/catalog/catalog/includes/modules/payment
In directory sc8-pr-cvs1:/tmp/cvs-serv6534/includes/modules/payment
Modified Files:
cc.php
Log Message:
move the error message from the url to the messageStack class
Index: cc.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/includes/modules/payment/cc.php,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- cc.php 17 Nov 2003 20:34:31 -0000 1.54
+++ cc.php 4 Dec 2003 23:03:58 -0000 1.55
@@ -95,6 +95,8 @@
}
function pre_confirmation_check() {
+ global $messageStack;
+
if (PHP_VERSION < 4.1) {
global $_POST;
}
@@ -120,9 +122,11 @@
}
if ( ($result == false) || ($result < 1) ) {
- $payment_error_return = 'payment_error=' . $this->code . '&error=' . urlencode($error) . '&cc_owner=' . urlencode($_POST['cc_owner']) . '&cc_expires_month=' . $_POST['cc_expires_month'] . '&cc_expires_year=' . $_POST['cc_expires_year'];
+ $messageStack->add_session('checkout_payment', $error, 'error');
- tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, $payment_error_return, 'SSL', true, false));
+ $payment_error_return = 'cc_owner=' . urlencode($_POST['cc_owner']) . '&cc_expires_month=' . $_POST['cc_expires_month'] . '&cc_expires_year=' . $_POST['cc_expires_year'];
+
+ tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, $payment_error_return, 'SSL'));
}
$this->cc_card_type = $cc_validation->cc_type;
@@ -184,14 +188,7 @@
}
function get_error() {
- if (PHP_VERSION < 4.1) {
- global $_GET;
- }
-
- $error = array('title' => MODULE_PAYMENT_CC_TEXT_ERROR,
- 'error' => stripslashes(urldecode($_GET['error'])));
-
- return $error;
+ return false;
}
function check() {
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/