Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Add Shipping to PayPal Payment from HTML Form

Posted on 2014-04-30
1
Medium Priority
?
313 Views
Last Modified: 2016-03-24
How can the code below be modified so that $10.00 is added for shipping?
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="item_name_1" value="beach ball">
<input type="hidden" name="amount_1" value="9.95">
<input type="hidden" name="item_name_2" value="towel">
<input type="hidden" name="amount_2" value="7.65">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="sales@hostgator.com">
<input type="hidden" name="currency_code" value="US">
<input type="submit" value="Pay with PayPal" />
</form>

Open in new window

0
Comment
Question by:hankknight
1 Comment
 
LVL 34

Accepted Solution

by:
Big Monty earned 2000 total points
ID: 40032191
add this to your list of hidden variables:

<input type="hidden" name="shipping" value="10.00">
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article was initially published on Monitis Blog, you can read it here . When it comes to deciding which approach to website performance monitoring is best for your business, unfortunately, like so many options in life . . . it depends. In th…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
Suggested Courses

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question