dynamic price with paypal
Posted: Mon Jul 06, 2009 8:58 am
Hello,
I read many script from web sites about this but it did not solve my problem, I need to pass a single item to paypal but with dynamic price
so I write a javascript function like this
and in onclick event I call this function
but I get sometimes error that the amount variable is not correct , or no error but I see a bank edit box in the paypal checkout page instead of the total I want
any solution to this ?
Thanks
I read many script from web sites about this but it did not solve my problem, I need to pass a single item to paypal but with dynamic price
so I write a javascript function like this
Code: Select all
function CalculateOrder(form){
document.form.amount.value = <?php echo $FinalTotal + $k_no; ?>;
}Code: Select all
<input type="image" src="https://www.paypal.com/DE//LG.gif" border="0" name="submit" style="width:160px" onClick="CalculateOrder(this.form)">
any solution to this ?
Thanks