NO ENCUENTRO COMO SOLUCIONARLO
Publicado por Manuel (3 intervenciones) el 11/03/2021 23:51:13
Gracias por su atención, tengo este código que recibe datos de otro archivo , es una conexión de datos para una pasarela de pago, marca muchos errores y no se como solucionarlo. Ojala puedan ayúdarme, ESTAN TODOS LOS ARCHIVOS QUE USO
CODIGO
CODIGO
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>
<body>
<!--Encriptado-->
<?php
include('crypto.php');
$cl_folio =$_POST['cl_folio'];
$cl_tel =$_POST['cl_tel'];
$cl_referencia =$_POST['cl_referencia'];
$dl_monto =$_POST['dl_monto'];
$cl_concepto =$_POST['cl_concepto'];
$servicio =$_POST['servicio'];
$cadenaEncriptada ·=·$cl_folio."|".$cl_referencia."-".$cl_tel."|".$dl_monto."|".$dl_monto-"|".$cl_concepto."|".$servicio."|";
$hash = SignData($cadenaEncriptada, "Private_key.pem);
$Contenido = ContenidoPost($cl_folio, $cl_referencia, $dl_monto, $cl_concepto, $servicio, $hash);
function ContenidoPost ($cl_folio, $cl_referencia, $dl_monto, $cl_concepto, $servicio, $hash)
{
$post = "cl_folio=".$cl_folio."&";
$post .= "cl_tel=".$cl_tel."&";
$post .= "cl_referencia=".$cl_referencia."&";
$post .= "dl_monto=".$dl_monto."&";
$post .= "cl_concepto=".$cl_concepto."&";
$post .= "servicio=".$servicio."&";
$post .= "hash=".$hash;
return $post;
}
?>
<!--Fin Encriptado-->
<html lang="es-MX">
<body style="font-family:Verdana:">
<!--Responsivo-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://cdjns.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://hoja.css" type="text/css" media=screen>
<!--Fin Responsivo-->
<!--Titulo-->
<div align=" center" style="background-color:#000;padding:15px;">
<font color="white"> <img src="logo-vacara-5.png" eight="100" width="300">
<font color="white"><h1>Pago de servicios</h1></font>
</div>
<!--Fin Titulo-->
<!--Estilos-->
<div align="center" class="main" style="background-color:#000;padding:15px;">
<style type="text/css">
#cl_folio {
display: none;
}
#cl_referencia {
display: none;
}
#servicio {
display: none:
}
#hash {
display: none:
}
body {font-family: "Lato", sans-serif}
</style>
<style>h1, a, h1 a:hover, text-logo #logo {
color:
#fff;
}
button, input, select, textarea, optgroup {
font: inherit;
margin: 5px;
margin-top: 5px;
margin-right: 5px;
margin-bottom; 5px;
margin-left: 5px;
padding: 10px;
border-radius: 13px 2px 13px 2px;
}
#ayuda {
background:
RED;
}
</style>
</body>
</html>
- MODULO-PAGO.rar(4,4 KB)
Valora esta pregunta


0