Reply
Very Basic Paypal Integration with PHP
Old 05-05-2008, 05:51 PM Very Basic Paypal Integration with PHP
Novice Talker

Posts: 7
Hi,

I'm new to Paypal and was hoping someone could point me in the right direction. I need to add a very basic e-commerce functionality to a site:

- the user can purchase 1 of 5 products (no shopping cart required)
- on returning to the website after payment has been confirmed, the user's status is updated depending on which product he or she purchased

I've set up ExpressButtons in Paypal, but I'm not sure how to go about getting the variables back from Paypal that will allow me to update the user's status - I'm not even sure if Expressbuttons are the right way to go, so I'd appreciate any help I could get on this.

Thanks!
pingo is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 05-05-2008, 06:03 PM Re: Very Basic Paypal Integration with PHP
nickohrn's Avatar
Weightlifting CS Student

Posts: 505
Name: Nick Ohrn
I'm not going to go into an extended detail overview of how to do it, but you need to look up PayPal's IPN service. Basically, when a customer makes a purchase the PayPal service sends out a post request with all of the information to a page of your choosing. Upon receipt, you can choose to do whatever you want with that information.
__________________
Plugin-Developer.com - Custom plugin development to fit your needs. Plugins available for WordPress and Drupal, among others.
nickohrn is offline
Reply With Quote
View Public Profile Visit nickohrn's homepage!
 
Old 05-05-2008, 06:16 PM Re: Very Basic Paypal Integration with PHP
Novice Talker

Posts: 7
Cool thanks for that.

I've been through the site and set up a sandbox etc, but to be honest I was pretty confused as to which merchant service I should be looking at so confirming that for me is more helpful than you realise!
pingo is offline
Reply With Quote
View Public Profile
 
Old 05-05-2008, 06:28 PM Re: Very Basic Paypal Integration with PHP
mgraphic's Avatar
Truth Seeker

Posts: 2,284
Name: Keith Marshall
Location: West Hartford, CT
Business account is all you need for PayPal IPN, it will work great!
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 05-05-2008, 06:38 PM Re: Very Basic Paypal Integration with PHP
Average Talker

Posts: 20
Name: Levi
This page may help you https://www.paypal.com/IntegrationCe...mentation.html If you click on the Order Management Integration Guide it has some useful tips.
Levi_ is offline
Reply With Quote
View Public Profile
 
Old 05-06-2008, 07:17 AM Re: Very Basic Paypal Integration with PHP
dansgalaxy's Avatar
Eat, Sleep, Code

Posts: 5,888
Name: Dan
Location: Swindon
I will have to post here so i can check this out at home, lol. i need to do this ;0
__________________
Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: webmaster-talk (only for members!)
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Reply     « Reply to Very Basic Paypal Integration with PHP
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13446 seconds with 13 queries