Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I have developed a payment module, and the error functiontion in it, is defined as shown below:

 

function get_error() {

global $HTTP_GET_VARS;

 

$error = array('title' => MODULE_PAYMENT_ERROR_HEADING,

'error' => ((isset($HTTP_GET_VARS['payment_error']) && tep_not_null($HTTP_GET_VARS['payment_error'])) ? stripslashes(urldecode($HTTP_GET_VARS['payment_error'])) : MODULE_PAYMENT_ERROR_MESSAGE));

 

return $error;

}

 

When a payment error occur during the payment process, I have programed the callback PHP code to redirect to checkout_process.php giving some string to the parameter error_message, in other word sth like this: checkout_process.php?error_message=Payment%20not%20completed.

 

The problem is that checkout_process.php does NOT output the content of the GET parameter error_message.

 

I have already defined those 2 constants, to the english language modules/payment folder :

MODULE_PAYMENT_ERROR_HEADING

MODULE_PAYMENT_ERROR_MESSAGE

 

 

What's the problem with the get_error method ?!?!?!?!

  • 2 months later...
Posted

It would not be checkout process, if you are using OsCommerce 2.3 it would need to display the error on checkout payment, a bit more info?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...