Hi.
I have been working with an .asp-based TPV so far.
Now after a change in my hosting and server, I need to adapt the payment pages and programming to php to keep working.
In the form page to collect the data from the customer, there is the following javascript coding:
function aceptar(){
var a,b,c;
a = document.formulario.Num_operacion.value;
b = document.formulario.Importe.value;
c = "http://www.mi-sitio-web.com/control.asp?Num_operacion=";
c = c + a + "&Importe=" + b;
// alert(c);
document.formulario.redirect.value = c;
// alert(document.formulario.redirect.value);
document.formulario.submit();
// document.formulariotpv.submit();
}
And the following input field:
<input type="radio" name="Option" value="Order" onclick="document.formulario.Importe.value=968;"/>
In control.asp:
tpv.Importe = var2
And then :
<input type=hidden name="Importe" value="<%=var2%>">
Resulting in a URL with the payment data for the bank.
Now I need to adapt the javascript to the control.php:
$total="";
and
<input name="Importe" type=hidden value=<?php echo $total ?>>
I suppose I need to modify this part:
c = "http://www.mi-sitio-web.com/control.asp?Num_operacion=";
I would appreciate some help please.
Thanks very much.