Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

modified payment pages


majik1234

Recommended Posts

Posted

Hi,

 

I have created new payment pages which have all the shipping and order parts removed. Basically just using the payment module to pay an amount which the user enters...All works well until you come to my version of the checkout_process page... my system fails on this:

 

if ((tep_not_null(MODULE_PAYMENT_INSTALLED)) && (!tep_session_is_registered('payment')) )

 

I cant see why the payment variable is not registered? $payment is set on the first checkout page and seems to be used fine on the confirmation page but then disappears for the process page.. Am i making an obvious mistake, all i have done is cut out the unneccessary parts of the original checkout pages and i can see no difference between the confirmation and process pages

 

first page:

 

// load all enabled payment modules

require(DIR_WS_CLASSES . 'payment.php');

$payment_modules = new payment;

$payment = $include_modules[0]['class'];

tep_session_register($payment);

 

confirm page:

 

// load the selected payment module

require(DIR_WS_CLASSES . 'payment.php');

$payment_modules = new payment($payment);

 

$payment_modules->update_status();

 

process page:

 

// load selected payment module

require(DIR_WS_CLASSES . 'payment.php');

$payment_modules = new payment($payment);

 

Help me please!!! :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...