-
- vichuNakamura

-
Total Posts: 4
Joined: 2008-05-02
|
Hello,
I use magento for this online shop: http://www.antury.com, and i have to implement the payment system http://www.pagosonline.com (In Colombia), I already put the module, but it dont have the code for the php file, idont understand how to get the vars.
I have to model 3 pages, one for send the info (this is my big problem), and must content something like this:
<?php $clave_secreta = "1111111111111111"; $usuarioId=2; $refVenta=0001; $valor=116000; $iva=16000; $moneda=COP; $descripcion = "Pruebas de Generacion de Firmas"; $firma= "$clave_secreta~$usuarioId~$refVenta~$valor~$moneda"; $firma_codificada = md5($firma); ?>
<form name="form1" method="post" action="https://gateway2.pagosonline.net/apps/gateway/index.html"> <table width="500" border="0" cellpadding="0" cellspacing="2"> <tr bgcolor="#000099"> <th width="119">Campo</th> <th width="375">Valor</th> </tr> <tr bgcolor="#CCCCCC"> <td>Usuario:</td> <td><input name="usuarioId" type="text" value="<?php echo($usuarioId) ?>"></td> </tr> <tr bgcolor="#DEDEDE"> <td>Descripción:</td> <td><input name="descripcion" type="text" value="<?php echo $descripcion ?>"></td> </tr> <tr bgcolor="#CCCCCC"> <td>Ref. Venta:</td> <td><input name="refVenta" type="text" value="<?php echo $refVenta ?>"></td> </tr> <tr bgcolor="#DEDEDE"> <td>Valor:</td> <td><input name="valor" type="text" value="<?php echo $valor ?>"></td> </tr> <tr bgcolor="#CCCCCC"> <td bgcolor="#CCCCCC">IVA:</td> <td><input name="iva" type="text" value="<?php echo $iva ?>"></td> </tr> <tr bgcolor="#DEDEDE"> <td bgcolor="#DEDEDE">Moneda:</td> <td><input name="moneda" type="text" value="<?php echo $moneda ?>"></td> </tr> <tr bgcolor="#CCCCCC"> <td>Firma:</td> <td><input name="firma" type="text" value="<?php echo $firma_codificada ?>"></td> </tr> <tr bgcolor="#CCCCCC"> <td> </td> <td><input name="Submit" type="submit" value="Enviar"></td> </tr> </table> </form>
I dont know where to put that, i how get the vars with the post method.
The other pages, are the answer page, and the confirmation page, but i think this is more easy.
Thanks for help!!!!
SeeYa.
|