hi************@aol.com (HikksNotAtHome) wrote in
news:20***************************@mb-m27.aol.com:
<script type="text/javascript">
document.formName.AMT.value = RF2N('Total');
</script>
Thanks for your reply, for some reason it doesn't work for me.
The code is now:
<p><!-- The Way2Pay Button HTML begint hier -->
<form action="https://merchant.way2pay.nl/merchant/payments-w2p.asp"
method=post id=form1
name=form1>
<input type="hidden" name="MERID" value="xxxxxxx">
<input type="hidden" name="MNAME" value="xxxxx">
<input type="hidden" name="ITEMNAME" value="Bestelling">
<input type="hidden" name="TID" value="orderID">
<SCRIPT LANGUAGE='JavaScript'>document.form1.AMT.value=RF2 N('Total');
</script>
<input type="hidden" name="SURL" value="http://www.nu.nl">
<input type="hidden" name="FURL" value="http://www.nu.nl">
<input type="image" border="0" name="IMAGEFIELD"
src="https://www.way2pay.nl/pix/voorstel1/betaalnu_klein2_nieuw.gif"
alt="Betaal met
Way2Pay">
</form>
<!-- The Way2Pay Button HTML eindigt hier --> </p>
The output at the paysite
(
https://merchant.way2pay.nl/merchant/payments-w2p.asp) is 0,0 for the
amount.
When i replace the line LANGUAGE='JavaScript'>
document.form1.AMT.value=RF2N('Total');
</script>
with the line <input type="hidden" name="AMT" value="999,99">
the output at the paysite for amount is correctly set at 999,99
The line <SCRIPT LANGUAGE='JavaScript'>RF2N('Total');</script>
print the correct amount on screen.
what is it what i'm doing wring here?
Thanks,
Otto