Anyone Use Paypal?

I’m having trouble finding out how exactly to add conditional statements to my paypal “Buy Now” button and their website isn’t really helping me at all - nor is google. I need to add a few different sets of radio buttons that all contain different dollar amounts and at the end their added altogether and submitted at a paypal payment. From the looks of it so far there doesn’t seem to be a choice to the matter.

Anyone ever try this / do this before?

Howdy;

I think you are looking for a shopping cart feature. Paypal has at least one that you can use.
Just go to https://www.paypal.com/ and it is just to the left of the LOGIN button.

Good Luck!
Dennis

Actually the information you have provided is incomplete and open to the following questions:

  1. Do you want only the final calculated price be sent to PayPal?
  2. Do you want to use one page form or multipage form?
  3. What server language, if any, are you using?

I just want the final price to be sent into paypal - but it seems you have to specify that final price WITH paypal (when setting up the button API) before you use it. I want the final price to be different according to variables that will be set by the user.

It will be a simple 1 page form with drop down menus and some radio buttons. And the server side language i’m using is PHP.

I was kind of wanting to stay away from the shopping cart since there is really only 1 product they can put in it. I was wanting to use the paypal pay button.

Thanks for the help!

Now, this is a much better explanation.

What you want to achieve is actually very easy. The data you send to PayPal is actually a form. There are two different things you can do.

  1. Use JavaScript (or PHP with Ajax) to dynamically calculate the final price and update the PayPal form. When the user clicks the Buy button the updated PayPal form gets send to the PayPal server.

  2. Use a normal form, that the user fills the details for his purchase. Then it gets send to the server and the final price gets calculated. After this:
    2.1. The user may see a confirmation window with the final price, which contains the PayPal form itself, clicking on “Agree” sends the form to the PayPal server.
    or
    2.2. The PayPal form gets automatically redirected to the PayPal server with the calculated final price.

When deciding on a solution keep in mind that the JavaScript may be turned off in some browsers.

One of my biggest problems is that it wants you to define that price before paypal gives you the button code. And on another note I cannot seem to find the box the gives me the decrypted code since all these tutorials I’ve seen tells you to make sure the code is not encrypted.

So according to you the predefined price that the button gives you shouldn’t matter if you change it via server side right?

What I tell you is to either have the form ready and dynamically update it, or create the form on the fly.