Solved

Paypal notification back on website using PHP and MySQL

Posted on 2010-08-26
4
355 Views
Last Modified: 2013-12-13
I am building a site using php and mysql.

When a user books and pays for a course using Paypal I want the value of 'paid' to be sent to the database once checkout is completed.

Is this possible? How do i send the info to the database from Paypal?

0
Comment
Question by:BrighteyesDesign
4 Comments
 
LVL 13

Accepted Solution

by:
p_nuts earned 167 total points
ID: 33537384
normally you post data to paypal through the url. when setting up you setup a successfull link for them to sent the user back to.
most of these links contain examples
http://www.google.com/m?client=ms-opera-mobile&channel=new&ie=utf-8&oe=utf-8&q=php%20paypal


0
 

Assisted Solution

by:stinkBait
stinkBait earned 166 total points
ID: 33537722
I have used PayPal Website Payments Pro a few times.  Im not sure if this feature is only privy to that feature, or if it is PayPal wide, but I like to use the IPN feature.  Its called Instant Payment Notification.  Basically whenever an order is processed, it sends a response to your server with a bunch of POST data, from there you can do with it what you please.  One of the pieces it sends is $_POST['payment_status'] with a value of 'Completed' if the payment has been processed.  
0
 
LVL 5

Assisted Solution

by:amrish80
amrish80 earned 167 total points
ID: 33539066
0
 

Author Closing Comment

by:BrighteyesDesign
ID: 33768847
...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PHP extract HTML using DOMXpath from nested tables 8 47
Update database from a form 8 35
Session timeout 5 13
Checking if varaible is empty 6 25
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Every business owner understands the significance of online customer reviews and the impact it can have on sales and revenues. With technology advancing at such a rapid pace, getting online reviews has never been easier, especially when many regions…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now