Buttons
Buy Now
Add to Cart
Donations
Gift Certificates
Subscriptions and Recurring Billing

Advanced Techniques


"Gift Certificate" Button HTML Code

The example code below shows the minimum information you need to create a Gift Certificate button (in this case, to make a $25.00 USD gift certificate button for Maxxie's Candies):
<form name="_xclick" action="https://www.paypal.com/us/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_oe-gift-certificate">
<input type="hidden" name="business" value="me@mybusiness.com">
<input type="hidden" name="amount" value="25.00">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="”PP-GiftCertBF">
<input type="hidden" name="fixed_denom" value="25.00">
<input type="hidden" name="style_color" value="BLU">
<input type="hidden" name="shopping_url" value="http://stores.ebay.com/JewelryNine">
<input type="hidden" name="logo_url" value="http://www.maxxiescandies.com/ebayimg/ebay_store_header.jpg">
<input type="image" src="http://www.paypal.com/en_US>/i/btn/btn_gift_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>


Pasting this code into your website would generate a button that looks like this:

Sample Gift Certificate Button


Dynamic Button Generation

If you dynamically generate portions of your site, you can create gift certificate buttons dynamically and save time by updating the variables with information from your database. To use the button above for a different amount, you would need to edit the values for just one variable: fixed_denom.

Customization Resources
Pre-Populate Your Customer's Sign UpPass on customer information you've collected to PayPal for a smoother user experience.
Developer CentralLearn how to integrate PayPal with your site.
PayPal Developer CommunityShare information, ask questions of fellow developers, and offer your own solutions.
Documentation
Note: Adobe Acrobat is required to read PayPal's manuals.
The Website Payments Standard Integration Guide provides in-depth information on using Buy Now buttons:
  • A visual walk-through of how buyers and sellers use Buy Now Buttons
  • Setting up shipping, taxes, and other special options
  • Receiving Email and Instant Payment Notifications
  • Sample code, including a list of available parameters
  • How to pre-populate your customer's sign-up forms
  • Receiving instant notification of payments you receive
  • Frequently asked questions

The Gift Certificates Guide provides additional information about gift certificates:
  • Creating and customizing gift certificates
  • Testing gift certificates
  • Tracking gift certificate purchases and redemptions