-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
60 lines (60 loc) · 2.31 KB
/
index.php
File metadata and controls
60 lines (60 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
$TBK_MONTO = "10000";
$TBK_ORDEN_COMPRA = date("Ymdhis");
$TBK_ID_SESION = date("Ymdhis");
/* * **************** CONFIGURACION ****************** */
$TBK_TIPO_TRANSACCION = "TR_NORMAL";
$TBK_URL_EXITO
= "http://45.55.88.47/exito.php";
$TBK_URL_FRACASO
= "http://45.55.88.47/fracaso.php";
$url_cgi
= "http://45.55.88.47/cgi-bin/tbk_bp_pago.cgi";
//Archivos de datos para uso de pagina de cierre
$myPath
=
"/var/www/html/comun/dato$TBK_ID_SESION.log";
/* * **************** FIN CONFIGURACION **************** */
//formato Moneda
$partesMonto = split(",", $TBK_MONTO);
$TBK_MONTO = $partesMonto[0] . "00";
//Grabado de datos en archivo de transaccion
$fic = fopen($myPath, "w+");
$linea = "$TBK_MONTO;$TBK_ORDEN_COMPRA";
fwrite($fic, $linea);
fclose($fic);
?>
<html>
<body >
<form action="<?php echo $url_cgi; ?>" name="frm" method="post">
<table>
<tr>
<th align="right">Tipo Transaccion:</td>
<td><input type="text" name="TBK_TIPO_TRANSACCION" value="<?php echo $TBK_TIPO_TRANSACCION; ?>"/></td>
</tr>
<tr>
<th align="right">Monto:</td>
<td><input type="text" name="TBK_MONTO" value="<?php echo $TBK_MONTO; ?>"/></td>
</tr>
<tr>
<th align="right">Orden de Compra:</td>
<td><input type="text" name="TBK_ORDEN_COMPRA" value="<?php echo $TBK_ORDEN_COMPRA; ?>"/></td>
</tr>
<tr>
<th align="right">TBK_ID_SESSION:</td>
<td><input type="text" name="TBK_ID_SESION" value="<?php echo $TBK_ID_SESION; ?>"/></td>
</tr>
<tr>
<th align="right">Pagina de EXITO:</td>
<td><input type="text" name="TBK_URL_EXITO" value="<?php echo $TBK_URL_EXITO; ?>"/></td>
</tr>
<tr>
<th align="right">Pagina de Fracaso:</td>
<td><input type="text" name="TBK_URL_FRACASO" value="<?php echo $TBK_URL_FRACASO; ?>"/></td>
</tr>
<tr>
<td align="right" colspan="2"><input type="submit"></td>
</tr>
</table>
</form>
</body>