Solved

Paypal notification back on website using PHP and MySQL

Posted on 2010-08-26
4
359 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

738 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