Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » Instant Payement Notification (IPN) server for PayPal
Instant Payement Notification (IPN) server for PayPal [message #35429] Mon, 13 February 2012 11:59
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
Hi,

I developed an IPN (Instant Payement Notification) server for PayPal; it allows automated handling of customer's purchases with PayPal.

The server is based on SCGI protocol, so you need an SCGI enabled server.

There's also a demo application, IPNServerDemo.

To test it you must :

1) Setup an SCGI handler in your server; for Apache server there are many sites with good tutorials, Google is your friend Smile

2) Once done point 1, you've got a PORT NUMBER, which must be used in server setup, see comments in code

3) The IPNServer provides 2 callbacks, one for VERIFIED paypal response and one for INVALID response. In demo code, on VERIFIED it just dumps the provided variables on Cout(); on INVALID it just logs a message on Cout().
In real application, you should obviously do something with variables, like checking amounts, and so on.

4) The server is JUST for IPN protocol handling; it doesn't check for repeated IPN messages on same transaction, frauds, and so on.... those must be done in your VERIFIED handler.

5) The demo connects to PayPal's sandbox testing server, see code comments; if you want to use in a real app, just change it !

6) By now the server is single-threaded, so if you get tons of transactions it will probably fail.... OK, if you get tons of transactions you'll probably be having a dring on a beach at Seychelles islands.....

Ciao

Max

[Updated on: Mon, 13 February 2012 12:00]

Report message to a moderator

Previous Topic: WithAutoChoice
Next Topic: LineTracker using background repaint:
Goto Forum:
  


Current Time: Tue Apr 23 14:08:53 CEST 2024

Total time taken to generate the page: 0.01495 seconds