Some help for develop modulo pay for Spanish Bank

speckados <[email protected]>
Newsgroups gmane.comp.web.oscommerce.devel
Message-ID <28594d6c6457ebb4a7ab1abb069edfb1@osCommerce-Forums>
This message was sent from: Development
http://forums.oscommerce.com/viewtopic.php?p=183762#183762
----------------------------------------------------------------

I developed one module for spanish TPV Ciberpac (SimaCaixa module)

Now, I develop a new module for another bank.

The problem it's a parameters for tep_draw_hidden_field.

I need pass a string with 15 characters, 9 with characters and 6 space for rigth " "
[code]Example: $fuc = "123456789" // (I ineed thi "123456789      "
$fuc = str_pad($fuc, 15, " ");
[/code]

Other problem it's that I need run a external program.

[code]$parametros = $idpedido ." ". $importe . " " . $fecha . " ". $moneda;
$comando = "./Firma ".$parametros;
$firma = passthru($comando,$resultado);
[/code]

Well, I put this on 
[code]$process_button_string = tep_draw_hidden_field('fuc', $fuc) .
 ..
 ..
 tep_draw_hidden_field('firma', $firma) .
...
[/code]

But the paramtres fuc it's return without "    " to rigth and parameter firma it's null.

Thanks for your help.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.