Cambiar el monto en el formulario de un botón

Oscar957199
Nuevo miembro de la comunidad

Hola, alguien sabe por qué NO puedo cambiar el monto en el formulario de un boton PAYPAL?

 

Intento definir un nuevo monto que yo pueda previamente calcular con PHP, algo así:

 

<input type='hidden' name='amount' value='<?php echo $nuevo_monto; ?>'>

 

Pero no me pone el monto nuevo, a pesar de que si lo calcula bien y lo imprime en la forma, me sigue poniendo el que se definió en un principio.

 

CODIGO COMPLETO:

 

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="DLW4JG4JNRQXA">
<input type='hidden' name='item_name' value='PRODUCTO X'>
<input type='hidden' name='amount' value='<?php echo $nuevo_monto; ?>'>
<input type='hidden' name='currency_code' value='MXN'>
<input type='image' name='submit' border='0' src='https://www.paypalobjects.com/es_XC/MX/i/btn/btn_buynowCC_LG.gif' alt='PayPal, la forma más segura y rápida de pagar en línea.'>
<img alt='Compras online' border='0' width='1' height='1' src='https://www.paypalobjects.com/es_XC/i/scr/pixel.gif' >
</form>

 

¿Qué estoy haciendo mal?

Login to Me Too
0 RESPUESTAS 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.