Solved

Add Shipping to PayPal Payment from HTML Form

Posted on 2014-04-30
1
296 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 33

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

776 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