Solved

Add Shipping to PayPal Payment from HTML Form

Posted on 2014-04-30
1
294 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 32

Accepted Solution

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

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Show confirmation alert in Jquery 14 38
.php tree directory? 5 54
Google Sheets Script 21 51
html5 auto send email 7 22
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

929 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now