Buy Now button for variable price items

rowan-bradley
New Community Member

Can I use a Buy Now button for the application that I'm developing? This is to sell copies of a single type of CD. I would like to offer people the choice to buy multiple CDs if they wish, and I would like to be able to calculate the price depending on the number of CDs they buy, what type of shipping they require, where the CDs are to be mailed to etc. Can I do this with a single Buy Now button? How? I have no problem in claculating the price in my PHP code and maybe writing it into a hidden field or something. I just need to get this information to Paypal in a format that it will understand.

 

Thanks - Rowan

Login to Me Too
5 REPLIES 5

snowshoe
Frequent Advisor
Frequent Advisor

Using the PayPal item button code itself is one topic however, if you plan to use PHP (which is not uncommon), the coding becomes a bit more complicated as you cannot use the online button creator to generate the PayPal button code.  The code needs to be manually created so you can populate the desired variable values from your PHP code.

 

As this forum is a bit less technical in nature, you may want to visit the Developer's Forum where as you can search and/or ask for  help with your project.

http://stackoverflow.com/questions/tagged/paypal

Login to Me Too

uktrail
New Community Member

Hi Rowan: I have almost exactly the same problem as you! On my website a price has been calculated, and I want to carry that price through to the Paypal payment page. Currently I can only display a fixed order for 01p. If you find a route to an answer, I'd be most grateful if you would share it with me. I use php.

 

I looked at the site recommended by the other poster (sorry, poster, I didnt copy down your name) but I can't make head or tail of it, it seems to involve much more complicated subjects.

 

Peter.

Login to Me Too

snowshoe
Frequent Advisor
Frequent Advisor

Unfortunately it is a bit more complicated, that's why the Developer Forum was suggested. 

Login to Me Too

uktrail2
New Community Member

Thanks, Snowshoe. (Something went wrong and I had to create new logon name!). I have just visited the site you linked, and for some reason it seems to be an entirely different site from what I reached before! In that one, I didnt even understand the topics. In this, I do. So I don't know what happened there. Anyway, this looks like a good site for asking a question on.

Login to Me Too

snowshoe
Frequent Advisor
Frequent Advisor

The Developer Forum was changed to Stackoverflow sometime back.  The format is different however, still supported by some of the same people from the previous forum, coders and developers. 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.