Integration Guide

Table Of Contents
PayPal Payments Standard Integration Guide June 2012 53
Single-Item Payments – Buy Now Buttons
Sample HTML Code for Buy Now Buttons
1
To protect against malicious users tampering with the HTML code for your Buy Now buttons
and submitting fraudulent contributions, see “Securing Your PayPal Payments Standard
Buttons” on page 337.”
IMPORTANT: Organizations with significant payment volume are required to take
precautions on securing PayPal Payment Standard buttons.
Sample HTML Code for a Basic Buy Now Button
The sample following HTML code illustrates a basic Buy Now button with these features:
An item named “Hot Sauce–12 oz. Bottle”.
An item price of $5.95 USD.
PayPal calculates tax and shipping based on rates that you set up in your PayPal account.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="herschelgomez@xyzzyu.com">
<!-- Specify a Buy Now button. -->
<input type="hidden" name="cmd" value="_xclick">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="Hot Sauce-12 oz. Bottle">
<input type="hidden" name="amount" value="5.95">
<input type="hidden" name="currency_code" value="USD">
<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif"
alt="PayPal - The safer, easier way to pay online">
<img alt="" border="0" width="1" height="1"
src="https://www.paypal.com/en_US/i/scr/pixel.gif" >
</form>