Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3974548
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:34:51+00:00 2026-05-20T04:34:51+00:00

My client has a website selling some electronic consumables (e.g. batteries), there are currently

  • 0

My client has a website selling some electronic consumables (e.g. batteries), there are currently under 20 products and for each product, he has created some hosted buttons in his PayPal account and copied the html and pasted in that product’s page, like this:

Buy 1 for $5 [Buy]
Buy 5 for $23 [Buy]
Buy 10 for $45 [Buy]

Now, he wants to allow the customers to enter the number of items to buy, and would like the system to calculate price for him/her taking the discount into consideration.

For example, a customer enters 17, it then shows the price he/she needs to pay,

Buy [17] for $45+$23+($5×2)=$78 [Buy]

I can use javascript to do this calculation and display it in the product page, but I need to make it interact with PayPal correctly.

I have googled and I think I need to make use of the Button Manager API, Encrypted buttons and Clear text buttons are possibly what I need.

But which one is better for this situation? The implementation should be as simple as possible.

Please kindly advise.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T04:34:51+00:00Added an answer on May 20, 2026 at 4:34 am

    The simplest solution is to generate your own payment URLs and link a buy graphic/form to that URL, rather than use a PayPal button.

    https://www.paypal.com/cgi-bin/webscr?
      cmd=_ext-enter
      &redirect_cmd=_xclick
      &business=YOUR_EMAIL
      &item_name=ITEM_NAME
      &item_number=ITEM_NUMBER
      &currency_code=USD
      &amount=12345.67
      &shipping=0
      &tax=0
      &return=RETURN_URL
      &cancel_return=CANCEL_URL
      &notify_url=IPN_URL
    

    PayPal

    Just replace the values as needed. You’ll want to write an IPN script to take the notification postbacks and update his order database as each payment comes in, which is also where you verify the link wasn’t tampered with by the user (if the payment amount doesn’t match the amount the products should be for, etc).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A client has asked me to add some polish text to their website, not
Our client currently has a website on their own domain: we are in the
I've obtained a client that has a website that I want to put under
My client has a website which is currently semi-static html pages: it contains dynamic
My client has a website with many subdomains, each representing a different client: http://www.store.com
My client has a website but doesn't check emails often. He has a lot
I personally loathe background music on a website. My client has opposite feelings on
Well, I guess this day had to come. My client's website has been compromised
I'm going to build a Classic Music website and the client already has several
We developed a website for a client and he has purchased the .com, .net,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.