Solved

Paypal notification back on website using PHP and MySQL

Posted on 2010-08-26
4
353 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
Comment Utility
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
Comment Utility
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
Comment Utility
0
 

Author Closing Comment

by:BrighteyesDesign
Comment Utility
...
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

15 Experts available now in Live!

Get 1:1 Help Now