Page 1 of 1
can i use php to send info to paypal
Posted: Thu Apr 07, 2005 9:50 am
by nutstretch
I am trying to set up a shopping basket in paypal. the problem is that the items have variable prices depending upon the quantities bought. can i do a function before it goes to paypal to work out how much the price would be an then add that to a hidden field on the form that goes to paypal?
the problem at the moment is i can tell paypal how much it is for 50 but there is no way to stop the user changing the amount to lower and getting a smaller quantity for the cheaper price.
Any help appreciated
Posted: Thu Apr 07, 2005 10:17 am
by The Monkey
A hidden field could be changed also.
Posted: Thu Apr 07, 2005 3:29 pm
by shiznatix
this is very possible, i have done just that for another client recently. for information please email me.
Posted: Thu Apr 07, 2005 3:45 pm
by The Monkey
shiznatix wrote:this is very possible, i have done just that for another client recently. for information please email me.
Would it be too much of a bother to post it here for the benefit of anyone who is searching for a similar topic later on down the road?
If there is some unseen reason for not posting it here, then that is ok, I guess. But I can see how it would be frustrating for someone searching for "PHP quantity paypal" or similar and to only find a "email me for more information" reply...
Just a thought, not intended to hurt any feelings...
- Monkey
Posted: Thu Apr 07, 2005 4:14 pm
by shiznatix
lol yes yes i know but i did sell this code for 200 dollars a few weeks ago i was hoping to get some money out of it, you know what i mean? retail price is no longer so expensive! plus the code is well tested, and i give free lifetime support to all customers of my scripts. price is definatly negiciable!
no feelings hurt mr. monkey! i completly understand the lack of info just ja know buisness is buisness,
HAHA after a look my email isnt show i dont think....(just finished gin bottle)
my email is
shiznatix@wesmokerocks.com
HORRAY FOR ESTONIAN ALCOHOL!!!
Posted: Thu Apr 07, 2005 6:32 pm
by evilmonkey
Sorry mate, I'm not out to ruin your business, but the information is freely available and all it took was a google search. Of course to use it, one will need some PHP knowledge. This is a community where people come to learn, not buy services. Having said that, take this link and go to school.
http://www.softcoded.com/paypal/paypal_php.php
Posted: Thu Apr 07, 2005 9:34 pm
by The Monkey
Hey, if someone is willing to pay $200 for his code snippet, then more power to him!

Posted: Fri Apr 08, 2005 4:34 am
by shiznatix
lol yes but sadly i know nobody will buy it so if you really want to see it (its quite large) then ill post.
Posted: Fri Apr 08, 2005 11:28 am
by JAM
shiznatix wrote:lol yes but sadly i know nobody will buy it so if you really want to see it (its quite large) then ill post.
a) Use show_source() (or similiar) and post a link to a page showing the source, instead of posting vast amount of code here. Just a suggestion.
b)
This link is for everyone that deal with PayPal. I'm not saying it's bad or good, but I've heard scary things about it from sources I trust very much.
Posted: Fri Apr 08, 2005 4:28 pm
by shiznatix
i dont have a webserver up rite now, just moved and i shipped my computer by mail but its taking forever.
wow i never heard of show_source(). does it work on only local files or is it for only strings or whats the deal on that?
Posted: Fri Apr 08, 2005 4:42 pm
by The Monkey
shiznatix wrote:i dont have a webserver up rite now, just moved and i shipped my computer by mail but its taking forever.
wow i never heard of show_source(). does it work on only local files or is it for only strings or whats the deal on that?
highlight_file() is for files,
highgight_string() is for strings. I assume highlight_file only works with local files... don't see how it could otherwise...
They are the same functions used for the highlighted php code and whatnot you see on most php programming sites / forums.
- Monkey