Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Saferpay Problem


rop962

Recommended Posts

Hi everybody

 

I integrated the contribution "Must Agree to Terms 2.2MS2v1.5.2" with success, everything works fine. Afterwards I try to integrate the contribution "Saferpay", where I have lot's of problems. First the order will be processed without to check saferpay and now I have following error message:

 

Parse error: parse error, expecting `','' or `';'' in d:\www\www709\catalog\checkout_confirmation.php on line 362 PHP Parse error: parse error, expecting `','' or `';'' in d:\www\www709\catalog\checkout_confirmation.php on line 362

 

Here are the necessary lines I adjusted:

 

<?phpM

if (isset($$payment->form_action_url)) {M

$form_action_url = $$payment->form_action_url;M

}

else {M

$form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');

echo tep_draw_form('checkout_confirmation', $form_action_url, 'post', onsubmit= "return check_agree(this);"');

echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) ;

echo '</form> . "\n";

}M

if (is_array($payment_modules->modules) && ($$payment->code == 'saferpay')) {

$url = $$payment->form_action_url . "?" . $payment_modules->process_button();

$payinit_url = join("", file($url));

$payinit_url_test = urlencode($payinit_url);

 

echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER, 'onClick="OpenSaferpayTerminal(\'' . $payinit_url . '\', this, \'BUTTON\')"');

}

?>M

 

The mentioned error message occurs in line "if (is_array($payment_modules ...............

 

Please can anyone help me to integrate the saferpay module correctly together with the contribution "Must Agree to Terms 2.2MS2v1.5.2". Maybe there are some mistakes in the lines above, I'm not a PHP-specialist or a crack in programming.

 

Thank's for any help

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...