can i use php to send info to paypal

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
nutstretch
Forum Contributor
Posts: 104
Joined: Sun Jan 11, 2004 11:46 am
Location: Leicester

can i use php to send info to paypal

Post 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
The Monkey
Forum Contributor
Posts: 168
Joined: Tue Mar 09, 2004 9:05 am
Location: Arkansas, USA

Post by The Monkey »

A hidden field could be changed also.
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

this is very possible, i have done just that for another client recently. for information please email me.
The Monkey
Forum Contributor
Posts: 168
Joined: Tue Mar 09, 2004 9:05 am
Location: Arkansas, USA

Post 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... :D

- Monkey
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post 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!!!
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post 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. :D

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

Post by The Monkey »

Hey, if someone is willing to pay $200 for his code snippet, then more power to him! :wink:
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post 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.
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post 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.
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post 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?
The Monkey
Forum Contributor
Posts: 168
Joined: Tue Mar 09, 2004 9:05 am
Location: Arkansas, USA

Post 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
Post Reply