can i use php to send info to paypal
Moderator: General Moderators
-
nutstretch
- Forum Contributor
- Posts: 104
- Joined: Sun Jan 11, 2004 11:46 am
- Location: Leicester
can i use php to send info to paypal
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
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
-
The Monkey
- Forum Contributor
- Posts: 168
- Joined: Tue Mar 09, 2004 9:05 am
- Location: Arkansas, USA
-
The Monkey
- Forum Contributor
- Posts: 168
- Joined: Tue Mar 09, 2004 9:05 am
- Location: Arkansas, USA
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?shiznatix wrote:this is very possible, i have done just that for another client recently. for information please email me.
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
- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
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!!!
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!!!
- evilmonkey
- Forum Regular
- Posts: 823
- Joined: Sun Oct 06, 2002 1:24 pm
- Location: Toronto, Canada
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
http://www.softcoded.com/paypal/paypal_php.php
-
The Monkey
- Forum Contributor
- Posts: 168
- Joined: Tue Mar 09, 2004 9:05 am
- Location: Arkansas, USA
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.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.
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.
-
The Monkey
- Forum Contributor
- Posts: 168
- Joined: Tue Mar 09, 2004 9:05 am
- Location: Arkansas, USA
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...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?
They are the same functions used for the highlighted php code and whatnot you see on most php programming sites / forums.
- Monkey