PayPal Shopping Cart HTML Code

 

 

working principle

 

PayPal Shopping Cart is easy to set up and use:

  1. Log in to your PayPal or senior corporate account.
  2. Click the "Merchant Tools" tab.
  3. Click on "PayPal shopping cart."
  4. Specify the items you want to sell the name, price and other details.
  5. Add more optional information such as shipping information, sales tax, and option fields (size, color, etc.).
  6. Click the "Create Now" button, the Button Factory will generate customized HTML code.
  7. Paste the HTML code on your website to create the "Add to Cart" and "View Cart" button.

When a buyer clicks the "Add to cart" button, a new window displays a list of the contents of the buyer's PayPal Shopping Cart, including the item just added. To purchase, buyers can click in the window "payment confirmation."

PayPal Shopping Cart HTML Code

 

Experienced HTML users can bypass the Button Factory and create their own PayPal Shopping Cart payment button to change the HTML code directly. The following sample code shows the creation of an "Add to Cart" button minimum information required (in this case, to purchase HTML book):

<form name="_xclick" target="paypal" action="" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="HTML book">
<input type="hidden" name="amount" value="24.99">
<input type="image" src="http://www.paypal.com/en_US/i/btn/sc-but-01.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="add" value="1">
</form>


Paste the code above to your website, you will generate a button as shown below:


If you can dynamically generate various parts of the site, you can dynamically fill the "Add to cart" button, and save time by using the updated variable information in the database. To these buttons for other items, just edit three variables: item_name, item_number and amount.

To "View Cart" button to add to your site, use the following code:

 

<form name="_xclick" target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="">
<input type="image" src="https://www.paypal.com/en_US/i/btn/view_cart.gif" border="0" name="submit" alt="利用PayPal付款快速、免费而且安全!">
<input type="hidden" name="display" value="1">
</form>

RC Jet Soldering iron Sky Flight Rc Jet Dynam Rc Jet kerui Security alarm weller soldering Flightline RC Plane

Guess you like

Origin www.cnblogs.com/gsmalarm/p/11081670.html