Skip to main content

PayPal Community

  • Dashboard
  • Send and Request
  • Wallet
  • Business
  • Help
Log in
  • Welcome
    • Guidelines
    • News and Events
    • Suggestions for PayPal
    • General Discussions
  • PayPal Help Community
    • Managing Account
    • Transactions
    • Wallet
    • Security and Fraud
    • Products & Services
    • Reporting
  • MTS Community
    • PayPal Upgrade Community
    • PayPal Payments Standard
    • REST APIs
    • NVP/SOAP APIs
    • SDKs
    • Sandbox Environment
    • PayPal Reporting
    • Payflow
    • Ideas for MTS
    • Client-side Integration
    • Server-side Integration
  • The Archives
    • PayPal Help Community Archives
      • Managing Account Archives
      • Transactions Archives
      • Wallet Archives
      • Security and Fraud Archives
      • Products & Services Archives
      • Reporting Archives
    • Help Community
      • PayPal Basics Archives
      • Payments Archives
      • My Money Archives
      • My Account Archives
      • Disputes and Limitations Archives
      • Products and Services Archives
      • PayPal Credit Archives
    • Merchant Community
      • Merchant Products
      • Business Tools Archives
      • Reporting Archives
      • Managing Risk and Fraud Archives
    • Help Archives
      • About Business (Archive)
      • About Payments (Archive)
      • About Settings (Archive)
      • About eBay (Archive)
      • About Protections (Archive)
      • About Products (Archive)
    • Social and Your Voice Archives
      • Off Topic (Archive)
      • My Feedback for PayPal (Archive)
    • About PayPal Archives
      • Watercooler (Archive)
      • Tax Information (Archive)
      • Fees (Archive)
      • eBay and PayPal (Archive)
      • Coupons and promotions (Archive)
    • My Account Archives
      • My account settings (Archive)
      • Account limits and verification (Archive)
      • Account balance (Archive)
      • Bank accounts and credit cards (Archive)
    • Payments Archives
      • Sending money (Archive)
      • Receiving money (Archive)
      • Refunds (Archive)
      • Donations and Fundraising (Archive)
    • Disputes and Security Archives
      • Disputes and claims (Archive)
      • Fraud, phishing and spoof (Archive)
    • My Business Archives
      • Merchant services (Archive)
      • Reporting and tracking (Archive)
      • Shipping (Archive)
    • PayPal Products Archives
      • PayPal Debit Mastercard (Archive)
      • PayPal Extras MasterCard (Archive)
      • PayPal Mobile & Other Services (Archive)
      • Student Accounts (Archive)
      • Bill Me Later (Archive)
    • Getting to know PayPal
      • My PayPal account
      • Security and protection
    • Receiving and sending money
      • Buying with PayPal
      • Selling with PayPal
    • PayPal Here UK
      • PayPal Here News and Events
      • PayPal Here Community
      • Chip and Pin Card Reader
      • PayPal Here App

The Community Forum will no longer be available starting June 30, 2025. Please note that the forum is now closed for new posts and responses, but previous posts will remain accessible for review until June, 30 2025. For comprehensive support options, please visit PayPal.com/HelpCenter
Merchant Technical Support: For technical support and related questions, please visit our Technical Support Help Center or Developer Central

If you want to report illegal content under the EU Digital Services Act, please do so here

since ‎May-16-2013
LonJett
LonJett Member
Member
1
Post
0
Kudos
0
Solutions
Your 3rd PayPal Anniversary
Your PayPal Anniversary
Your 5th PayPal Anniversary
Active
View all
Topics LonJett has Participated In
  • Topics LonJett has Participated In
  • Latest Contributions by LonJett

Re: Add to shopping cart button

by snowshoe Frequent Advisor in About Business (Archive)
‎May-16-2013 12:05 PM
‎May-16-2013 12:05 PM
In order for the registration fee to appear as a line item, you need to use the "upload" method to create your item button.  The results of the "upload" method posts the selections to the PayPal Checkout Screens.  To give you a better understanding of how the "upload" method works, see the example below.  Note, most 3rd shopping carts and mini-carts use the "upload" method.  It's call a method because there are specific variables that you must use.  This is not code that can be generated online using the online button creator, the code has to be manually written for your specific requirements and most ofter requires some scripting to manage the selections.    This example shows how to add a processing charge to a ticket sale.  It demonstrates how to include an additional fee as a line item.   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Button Example Code</title> <!-- START META TAG SECTION --> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <meta http-equiv="Content-Language" content="en"> <!-- END META TAG SECTION --> <!-- START OF SCRIPT --> <SCRIPT language=javascript> function CalculateOrder(form) { if (form.item_name_1.value == "Standard Ticket") { form.amount_1.value = 30.00; } if (form.item_name_1.value == "Deluxe Ticket") { form.amount_1.value = 40.00; } if (form.item_name_1.value == "Super Ticket") { form.amount_1.value = 50.00; } if (form.item_name_1.value == "All Star Ticket") { form.amount_1.value = 75.00; } } </SCRIPT> <!-- END OF SCRIPT --> </head> <body> <!-- START SAMPLE CODE SECTION --> <!-- PARAGRAPH 1 --> Upload Method Examples <br><br> Ticket Sales, Quantity and Processing Fee with Script. <br><br> <!-- START BUTTON EXAMPLES --> Widget Event Concert Series <!-- Start of Form --> <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <!-- If using a Business or Company Logo Graphic, include the "cpp_header_image" variable in your View Cart code. --> <input type="hidden" name="cpp_header_image" value="https://www.yourwebsite.com/logo.jpg"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="upload" value="1"> <!-- Replace "business" value with your PayPal Email Address or Account ID --> <input type="hidden" name="business" value="your email address com"> <input type="hidden" name="amount_1" value="0.00"> <input type="hidden" name="shipping_1" value="0.00"> <!-- Replace value with the web page you want the customer to return to after a successful transaction --> <input type="hidden" name="return" value="http://www.yourwebsite.com/ThankYou.html"> <!-- Replace value with the web page you want the customer to return to after item cancellation --> <input type="hidden" name="cancel_return" value="http://www.yourwebsite.com/Cancel.html"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="lc" value="US"> <input type="hidden" name="cn" value="Add special instructions to the seller:"> <input type="hidden" name="bn" value="PP-ShopCartBF:btn_paynowCC_LG.gif:NonHosted"> <input type="hidden" name="on0_1" value="Widget Event"> <input type="hidden" name="os0_1" value="Concert Series"> <br> Purchase Ticket:&#160;&#160; <select name="item_name_1"> <option value="Standard Ticket">Standard Ticket - $30.00</option> <option value="Deluxe Ticket">Deluxe Ticket - $40.00</option> <option value="Super Ticket">Super Ticket - $50.00</option> <option value="All Star Ticket">All Star Ticket - $75.00</option> </select> <br><br> Please enter desired number of Tickets:&#160;&#160; <input type="text" size="1" name="quantity_1"> <br><br> <input type="hidden" name="shipping_2" value="0.00"> <input type="hidden" name="item_name_2" value="Processing Fee"> <input type="hidden" name="amount_2" value="5.00"> <input type="hidden" name="on0_2" value="Note"> <input type="hidden" name="os0_2" value="Processing Fee is Non-Refundable"> All online orders are subject to a non-refundable $5.00 Processing Fee. <br><br> <input type="reset" name="reset" value="Clear Selections"> <br><br> <input name="myform" id="myform" onclick=CalculateOrder(this.form) type=image alt="Make payments with PayPal - it's fast, free and secure!" src="https://www.paypalobjects.com/en_US/i/btn/btn_paynowCC_LG.gif" border=0 name="submit"> <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> </form> <!-- End of Form --> <!-- END BUTTON EXAMPLES --> <!-- END SAMPLE CODE SECTION --> <br><br> <hr align="left" width="50%" noshade> <br><br> NOTES: <br> In order to test the code, you must replace the &quot;business&quot; value variable with your PayPal Email Address or Account ID. </body> </html>   ... View more
Paypal Logo
  • Help
  • Contact Us
  • Security
  • Fees
  • © 1999-2025 PayPal, Inc. All rights reserved.
  • Privacy
  • Legal
  • Cookies
  • Policy Updates

The money in your balance is eligible for pass-through FDIC insurance.

The PayPal Cash Mastercard is issued by The Bancorp Bank pursuant to a license by Mastercard International Incorporated. The Bancorp Bank; Member FDIC.

Powered by Khoros
Welcome to the PayPal Community!