Create custom form and load modal - PHP SDK [closed]

-3

I am integrating the Mercadopago PHP SDK into a simple page
The user must load name, ID, etc. and then when sending the data you should load the Mercadopago modal, in the same way that this example is done that I found:

link

I have already made the form, etc. but when receiving the $ _POST as I should do to load the entered data and send them to Mercadopago's modal?

Thanks

    
asked by Enrique 17.05.2017 в 17:17
source

1 answer

1

Well for what you just have some data and need to forward them to another url for that you can do the following.

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Redireccionado</title>
</head>
<body>

   <p>Descripction para el usuario</p>	

   <form action="ruta de Mercadopago" id="formulario">
   	 
   	 <input type="hiden" name="nombreVariable">
   	 <input type="hiden" name="nombreVariable">
   	 <input type="hiden" name="nombreVariable">
   	 <input type="hiden" name="nombreVariable">
   	 <input type="hiden" name="nombreVariable">
	 <input type="submit" value="Continuar"/>
   </form>

<script type="text/javascript">
// enviar formulario
	document.getElementById("formulario").submit();
</script>	

</body>
</html>
    
answered by 17.05.2017 в 17:40