Solved

Add Shipping to PayPal Payment from HTML Form

Posted on 2014-04-30
1
293 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
Comment Utility
add this to your list of hidden variables:

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

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

772 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

10 Experts available now in Live!

Get 1:1 Help Now