Copyright © 2009 RichoSoft All rights reserved. Made By RichoSoft.  Terms of use | Privacy policy
Welcome.All Resources.Page Counters.Tips & Tricks Menu.Contact us.My Account.Site Map.
Welcome.All Resources.Page Counters.Tips & Tricks Menu.Contact us.My Account.Site Map.
How to add PayPal Buy Now or Donation buttons without using the PayPal wizard
§
Add a Submit Button to your Form.
§
Set the action of your form to POST and the target as https://www.paypal.com/cgi-bin/webscr  and
     encoding to application/x-www-form-urlencoded
§
Then add the following Hidden Fields:
§
Name = cmd,  value=_xclick
§
Name = business,  value = sales@yoursite.com (This is the email address in PayPal to accept the payments).
§
Name = item_name, value  = My Product Name (The name of the item you are selling).
§
Name = item_number, value = 123456A (A SKU or product code for your item).
§
Name = no_shipping,  value = 1 (1 = Customer is not asked for shipping address, 0 = Customer is asked for shipping
                                                          address,  2 = Customer MUST provide a shipping address ).
§
Name = return, value=http://www.yoursite.com/thanks.html (This is where the customer will return after a successful
                                                          transaction in PayPal ,This must be supplied.).
§
Name = cancel_return, value = http://www.yoursite.com/cancelled.html (This is where the customer will return after a
                                                         cancelled or non-successful transaction in PayPal This must be supplied.).
§
Name = no_note, value = 1 (1 = Customer not prompted to leave a note, 0 = Customer is prompted to leave a note.)
§
Name = currency_code, value = GBP. (The currency that your product is priced in.)
§
Name = lc  value = GB (Defines the buyers language for the login page - Acceptable values are: AU,DE,FR,IT,GB,ES, US Default)
§
Name = amount,  value = 3.99 (The price of your item).
§
Name = bn,  value = PP-BuyNowBF

Here is an example of what your Form Code should look like:

<form id="form_11" name="pay_now" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_self" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="sales@yourdomain.com">
<input type="hidden" name="item_name" value="My Product Name">
<input type="hidden" name="item_number" value="123456A">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="http://www.mysite.com/thanks.html">
<input type="hidden" name="cancel_return" value="http://www.mysite.com/cancelled.html">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="lc" value="GB">
<input type="hidden" name="amount" value="9.99">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<div style="position:absolute; left:348px; top:481px; width:96px; height:22px; text-align:left;">
   <input type="submit" id="butn_12" name="buynow" value="Buy Now!">
</form>
This example is provided for guidance only, and assumes certain settings have been made in your PayPal account. For full details of all PayPal options and settings please visit PayPal and download the full PayPal Website Payments Standard Integration Guide from PayPal here.
First of all you need to have set up a PayPal Merchant account and added an email address to accept payments with PayPal. (The web address for PayPal is www.paypal.com).
Next you need to create a form on your web page, using your Web Authoring Software (or paste the form code directly into your page code, see sample code).