"The following sample HTML code shows how the optional pre-population fields would be included in your payment buttons. The field entries would need to be dynamically generated by your website and included in the URL to which your customers are sent when they try to make a PayPal payment."
- Code: Select all
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="nora@paypal.com">
<input type="hidden" name="item_name" value="baseball hat">
<input type="hidden" name="item_number" value="12345”>
<input type="hidden" name="amount" value="15.00">
input type="hidden" name="first_name" value="John"
input type="hidden" name="last_name" value="Doe"
input type="hidden" name="address1" value="9 Elm Street"
input type="hidden" name="address2" value="Apt 5"
input type="hidden" name="city" value="Berwyn"
input type="hidden" name="state" value="PA"
input type="hidden" name="zip" value="19312"
input type="hidden" name="night_phone_a" value="610"
input type="hidden" name="night_phone_b" value="555"
input type="hidden" name="night_phone_c" value="1234"
input type="hidden" name="day_phone_a" value="610"
input type="hidden" name="day_phone_b" value="555"
input type="hidden" name="day_phone_c" value="1222"
<input type="hidden" name="cn" value=”How Did You Hear About Us?”> <table><tr><td>
<input type=”hidden” name=”on0” value=”Color?”>Color?
<select name=”os0”> <option value=”Red”>Red
<option value=”Green”>Green
<option value=”Blue”>Blue</select></td></tr></table>
<input type="image" src="https://www.nora.paypal.com/images/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="add" value="1"> </form>
How would I go about changing the variables so that nopcart's fields variables get mapped to PayPals' variables. What I would need is something like...
b_first = first_name
b_last = last_name
b_addr = address1
.
.
.
etc., etc.
Would I need to change the nopcart.js script? Can I just simply rename the variables in nopcart.js to those of the PayPal? Or add a script in the web page to set the nopcart varibales equal to the PayPal variables?
I wil try to do this on my own, but since I'm not sure which method would work (if any), it would be great if someone could let me know, or show me how it could be done.
P.S. I did a "paypal" search of all the posts and did not find anything on this topic... please just let me know the url of the post if there is already one out there.
Thanks in advance!!!
