|
|
|
Rank: Starting Member
Groups: Registered
Joined: 3/27/2003 Posts: 1 Location: ,
|
I've got a page that by using javascript the subtotal, shipping, and total fields are updated automatically when quantities are changed. My question is, how do I get paypal to recognize this value in a text field? The latest script I've tried (that dosen't work) is:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" name="order">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="user@user.com">
<script language="javascript">
document.write('<input type="hidden" name="amount" value='document.order.total.value>');
</script>
I've tried: http://members.aol.com/paypalhelper/ but that was pretty complicated. Does anyone have other hints or a step-by step method?
thanks.
|
|
|
|
|
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 11/30/2002 Posts: 125 Location: ,
|
Hey!
Well, if people are changing quantites, and you are not using a third-party cart, then maybe you should look into the PayPal shopping cart.
If not, amke sure that your amount is formated as: $xx.xx
-David
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
Please provide the whole <form> as it appears in "View Source". FYI, amounts need to be zero or 2 decimal places but not 1. That could be a problem. Patrick Breitenbach PayPal, Inc. Dev Net: https://www.paypal.com/pdn
|
|
|
|
Guest
|
YAFVision Theme by Jaben Cargman (Tiny Gecko)Powered by YAF |
YAF © 2003-2009, Yet Another Forum.NETThis page was generated in 0.279 seconds.