NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > CODE
Reload this Page PayPal IPN Script

CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here.

Advanced Search
7 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 09-23-2006, 10:34 PM THREAD STARTER               #1 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,792
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism

PayPal IPN Script


PayPal IPN Script v1.2 - Oct 15, 2006
????: NamePros.com http://www.namepros.com/code/240794-paypal-ipn-script.html

Change Log:
v1.2.1 - Nov 26, 2006
- It still works with gmail >_>
- Made sure the user can't change the price. [They can, but they won't get the file or message.]

v1.2 - Oct 15, 2006
- Fixed the problem with sending to gmail accounts

v1.1 - Oct 8, 2006
- Re-styled the form
- Support for multiple files added
- Added the GNU GPL
What it does:
The user inputs their first name, last name, email, and website and upon successful payment, it emails them the script/file/message you specify.

Please report any bugs or problems that you find with this script. I am open for suggestions.

By downloading this, you agree that I am not responsible for anything done with this script.
Last edited by Dan; 11-26-2006 at 09:44 AM. Reason: v1.2.1
Dan is offline  
Old 09-24-2006, 09:57 AM   #2 (permalink)
Account Suspended
Join Date: Oct 2005
Location: United Kingdom
Posts: 1,554
NetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really nice
 



Thank you for the script this is the perfect script i have been looking for around 2 weeks! I just got some questions:
  • What dose the script do with the infomation collected at the index.php page?
  • Dose the script send the user a email with download link or dose it send them to a page after payment for download?
  • Will the script send me a email with the user info collected?
  • Do i have to put any thing in paypal ipn settings?
Last edited by NetworkTown.Net; 09-24-2006 at 10:07 AM.
NetworkTown.Net is offline  
Old 09-24-2006, 10:11 AM THREAD STARTER               #3 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,792
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
1. The script saves their information to a MySQL database that you specify in the config.
2. It emails them the file as an attachment.
3. No, but that wouldn't be hard to add.
4. Explain more?
Dan is offline  
Old 09-24-2006, 10:13 AM   #4 (permalink)
Account Suspended
Join Date: Oct 2005
Location: United Kingdom
Posts: 1,554
NetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really nice
 



2. is there a way i can change the attachment setting to email them a download link instead like the script makes a random link for security or just email them the link since the file im going to use the script for is 250MB

Im willing to send you $5 if you can get that done for me the random link instead of the attachment.
NetworkTown.Net is offline  
Old 09-24-2006, 10:15 AM THREAD STARTER               #5 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,792
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
If you have
PHP Code:
$filepath   ''
in the config, and put the download link in $message, I think that's what you want. (Without the extra security part..)
Dan is offline  
Old 09-24-2006, 10:17 AM   #6 (permalink)
Account Suspended
Join Date: Oct 2005
Location: United Kingdom
Posts: 1,554
NetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really nice
 



I have $filepath i config, can you edit the page and PM me it since im not a coder ill send you the $5 as well.
NetworkTown.Net is offline  
Old 09-24-2006, 10:19 AM THREAD STARTER               #7 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,792
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
Just change
PHP Code:
$filepath   '/full/path/to/your/file'
????: NamePros.com http://www.namepros.com/showthread.php?t=240794
to
PHP Code:
$filepath   false
Dan is offline  
Old 09-24-2006, 10:21 AM   #8 (permalink)
Account Suspended
Join Date: Oct 2005
Location: United Kingdom
Posts: 1,554
NetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really nice
 



Originally Posted by Dan Friedman
Just change
PHP Code:
$filepath   '/full/path/to/your/file'
to
PHP Code:
$filepath   false
????: NamePros.com http://www.namepros.com/showthread.php?t=240794
yes then in what file is the email message thing? so i can delete the attachment line.
NetworkTown.Net is offline  
Old 09-24-2006, 10:27 AM THREAD STARTER               #9 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,792
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
If you set $filepath to false, it automatically doesn't attach anything.
Dan is offline  
Old 09-24-2006, 10:48 AM   #10 (permalink)
Account Suspended
Join Date: Oct 2005
Location: United Kingdom
Posts: 1,554
NetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really nice
 



Thanks all fixed and done!
NetworkTown.Net is offline  
Old 09-29-2006, 03:32 AM   #11 (permalink)
Senior Member
 
bbalegere's Avatar
Join Date: Jul 2005
Location: Bangalore
Posts: 1,270
bbalegere is just really nicebbalegere is just really nicebbalegere is just really nicebbalegere is just really nicebbalegere is just really nice
 



Wow!
This script is gonna be damn useful.
bbalegere is offline  
Old 09-29-2006, 05:37 AM   #12 (permalink)
 
BillyConnite's Avatar
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,456
BillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond repute
 


Wildlife Parkinson's Disease Parkinson's Disease
Hey Dan!

wow, very nice indeed, this'll be very useful for any scripts I intend to sell, thanks again!

I donated 200NP$ for your hard work (not that that would cover it ) - and TRIED to add rep (apparently NP thinks i'm too fond of you )

Thanks again Dan, you're an excellent NP member.

Regards, Rhett.
BillyConnite is offline  
Old 09-29-2006, 07:50 AM   #13 (permalink)
Account Suspended
Join Date: Oct 2005
Location: United Kingdom
Posts: 1,554
NetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really nice
 



Yh this script is real good.
NetworkTown.Net is offline  
Old 09-29-2006, 04:35 PM THREAD STARTER               #14 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,792
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
Just wondering if anyone's used it and had any problems [or no problems]?
Dan is offline  
Old 09-29-2006, 06:34 PM   #15 (permalink)
 
BillyConnite's Avatar
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,456
BillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond repute
 


Wildlife Parkinson's Disease Parkinson's Disease
Originally Posted by Dan Friedman
Just wondering if anyone's used it and had any problems [or no problems]?
I'll set it up and test run it in a few minutes, won't be fully tested until I actually get my script completed and ready to sell.
BillyConnite is offline  
Old 09-29-2006, 06:54 PM   #16 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,267
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
Just wondering about your notify script if you got it too work? I thought you needed to post back to them in order for it to work? I am just wondering because I don't see any post back function.

- Steve
__________________
I feel old.
iNod is offline  
Old 09-29-2006, 06:57 PM   #17 (permalink)
Resistance is Futile
 
Kadenz's Avatar
Join Date: Apr 2006
Location: Montreal, Canada
Posts: 1,094
Kadenz is a name known to allKadenz is a name known to allKadenz is a name known to allKadenz is a name known to allKadenz is a name known to allKadenz is a name known to all
 



Wildlife Lou Gehrig's Disease (ALS)
Wow, great script! Thank you, I have never been able to figure PayPal's API out, so this is very, very useful.
REP Added
__________________
Freelance Web Developer
PHP, MySQL, XHTML, CSS, Javascript, jQuery, Wordpress
Portfolio: www.bundy.ca
Kadenz is offline  
Old 09-29-2006, 07:02 PM THREAD STARTER               #18 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,792
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
Originally Posted by iNod
Just wondering about your notify script if you got it too work? I thought you needed to post back to them in order for it to work? I am just wondering because I don't see any post back function.

- Steve
I'm not sure what you are talking about.. there are other ways to interact with PayPal that are completely different.
Dan is offline  
Old 09-30-2006, 08:54 AM   #19 (permalink)
Account Suspended
Join Date: Jan 2005
Posts: 139
lepunk is an unknown quantity at this point
 



thanx! this was usefull for me yesterday
lepunk is offline  
Old 09-30-2006, 09:34 AM   #20 (permalink)
Account Suspended
Join Date: Oct 2005
Location: United Kingdom
Posts: 1,554
NetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really nice
 



I have tested the script and have already recived orders from clients using this script and theres no prob with it.
NetworkTown.Net is offline  
Old 10-02-2006, 10:39 AM THREAD STARTER               #21 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,792
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
Upcoming version 2 features:
  • More secure
  • A "cart" - Support for multiple files
If I receive donations (hint hint), I'll add more features and take requests.
Dan is offline  
Old 10-02-2006, 11:08 AM   #22 (permalink)
NamePros Regular
 
ablaye's Avatar
Join Date: May 2006
Location: WebmasterGround.com
Posts: 865
ablaye is on a distinguished road
 



Nice. I am going to wait for version 2 then.
ablaye is offline  
Old 10-02-2006, 11:18 AM   #23 (permalink)
Senior Member
 
Barrucadu's Avatar
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,689
Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold
 




I may use this in the near future, rep added
Barrucadu is offline  
Old 10-08-2006, 09:40 AM THREAD STARTER               #24 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,792
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
Updated.
Dan is offline  
Old 10-08-2006, 01:35 PM   #25 (permalink)
NamePros Regular
 
asgsoft's Avatar
Join Date: Sep 2005
Location: At Home
Posts: 881
asgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of light
 



could I carry information from the form to the success page and send it by email?
asgsoft is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:58 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger