Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

A littel help for payment module


Guest

Recommended Posts

I'm developing a module for spanish bank.

I need pass only a URL.

Well, this URL I get with a little piece of code with external comand with jdk (java).

 

On function process_button() I don't need any.

 

Well, only file checkout_confirmation.php I write this:

 

  if ($$payment->code=='simcaixa'){
         // On procees_button I get the URL with firm after process any code with JAVA. This URL it's OK and work prefectly. This it's $firma
      $firma = $payment_modules->process_button();
 if (is_array($payment_modules->modules)) {      
 echo tep_draw_form('checkout_confirmation',$firma,'post');  
    }
 }else{
    echo tep_draw_form('checkout_confirmation',$form_action_url,'post');
    if (is_array($payment_modules->modules)) {
      echo $payment_modules->process_button();
    }
 }

 

Also use this code with same result:

 

 

  if ($$payment->code=='simcaixa'){
         // On procees_button I get the URL with firm after process any code with JAVA. This URL it's OK and work prefectly. This it's $firma
 if (is_array($payment_modules->modules)) {      
 echo tep_draw_form('checkout_confirmation',$payment_modules->process_button(),'post');  
    }
 }else{
    echo tep_draw_form('checkout_confirmation',$form_action_url,'post');
    if (is_array($payment_modules->modules)) {
      echo $payment_modules->process_button();
    }
 }

 

Well on page checkout_confrmation I see this URL and on code the form with a this URL for action. The Button work and send to bank and work.

 

I don't know why I see the URL on page.

 

I'M LOST

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...