<?php require_once 'functions.php'; require_once 'conect.php'; $compra = new compra(); $llave = "131bef7b598"; /////llave de usuario $usuario_id = $_REQUEST['usuario_id']; $ref_venta = $_REQUEST['ref_venta']; $valor = $_REQUEST['valor']; $moneda = $_REQUEST['moneda']; $estado_pol = $_REQUEST['estado_pol']; $firma_cadena = $llave . "~" . $usuario_id . "~" . $ref_venta . "~" . $valor . "~" . $moneda . "~" . $estado_pol; $firmacreada = md5($firma_cadena); //firma que generaron ustedes $firma = $_REQUEST['firma']; //firma que envía nuestro sistema if (strtoupper($firma) == strtoupper($firmacreada)) { //comparación de las firmas //código que funciona en caso de que los datos vengan de Pagosonline if ($_REQUEST['estado_pol'] == 4) { //CONFIRMACION QUE EL PAGO FUE EXITOSO $compra->GenerarPedidoCrecer(trim($ref_venta)); } else { } }
<?php include_once 'compra.php'; include_once 'functions.php'; $compra = new compra(); $func = new functions(); $conexion = new Conect(); //TEST CUANDO EL SISTEMA RECIBE EL NUMERO DE REFERENCIA DE PAGO $refVenta = "5e9608d8-6979-1378-a40a-d65e2d686470"; $compra->GenerarPedidoCrecer("1340099013");