hola, lo que pasa esq estoy generando los botones con PHP y MYSQL entonces trato de aplicar esta cadena
“ApiKey~merchantId~referenceCode~amount~currency” y encriptarla a MD5 pero cuando le doy click al botón y me envía al formulario no me deja pasar del formulario debido a un error dice "Operación FallidaSe ha alterado la información de la compra asociada al botón de pago, por lo tanto, este pago no puede ser procesado."
A continuación les muestro como uso el codigo
<?php
$ApiKey = "6u39nqhq8ftd0hlvnjfs66eh8c"; /*(ESTA APIKEY NO LA MUESTRO POR SEGURIDAD, ESTA ES UNA Q ESTA EN EL MANUAL)*/
$merchant_id = "512955";
$referenceCode = $r["referencia"];
$amount= $r["precio"];
$currency = "COP";
$firma_cadena = "$ApiKey~$merchant_id~$referenceCode~$amount~$currency";
$firmacreada = sha1($firma_cadena);
?>
<form method="post" action="https://gateway.payulatam.com/ppp-web-gateway/pb.zul">
<input type="image" border="0" alt="" src="http://www.payulatam.com/img_botones_herramientas/boton_pagar_pequeno.png" onClick="this.form.urlOrigen.value = window.location.href;"/>
<input name="merchantId" type="hidden" value="512955"/>
<input name="accountId" type="hidden" value="514270"/>
<input name="description" type="hidden" value="Buso"/>
<input name="referenceCode" type="hidden" value="<?php echo $r["referencia"];?>"/>
<input name="amount" type="hidden" value="<?php echo $r["precio"]; ?>"/>
<input name="tax" type="hidden" value="0"/>
<input name="taxReturnBase" type="hidden" value="0"/>
<input name="shipmentValue" value="0" type="hidden"/>
<input name="currency" type="hidden" value="COP"/>
<input name="lng" type="hidden" value="es"/>
<input name="sourceUrl" id="urlOrigen" value="" type="hidden"/>
<input name="buttonType" value="SIMPLE" type="hidden"/>
<input name="signature" value="<?php echo $firmacreada;?>" type="hidden"/>
</form>