Go Premium for a chance to win a PS4. Enter to Win


StormPay IPN(and other possible payment options)

Posted on 2003-11-10
Medium Priority
Last Modified: 2010-04-27

I'm conisdering adding payment possibilities to a PHP script I am developing. I think the first way I'll do this will be through StormPay.

I've read somewhere that Stormpay have an IPN system, where they call a script on your server, to confirm that a page has been called.

I can't find any documention on this IPN system, but from what I do know(which isn't an awful lot), Stormpay get a request from my client, they verify details, they send the IPN to a confirmation page on my server, and they they forward the user to my "thank you" page.

Any links on where I can get more information on this would be appreciated.

Also what security precautions would need to be taken regarding this.

I'm aware that CC Card security is taken care of by StormPay's server, but how do I make sure that people don't simply access the confirmation page(the page my server uses to confirm that they've paid) directly, without paying the money to Stormpay? I know I could make sure the IP address calling the page is the one used by the IPN, but can't IP addressed be spoofed?

I know I'm not going to get a 100% secure solution, but I'd like to close up any known security holes, to make it as difficult as possible.

Any information on what alternatives are available besides stormpay(besides paypal), as well as their pros and cons would also be appreciated.

Since this question is in parts, I'll award points for the different parts, if someone answers one part of the question and not another. I'll also add more points if the answer(or any part of the answer) proves to be more complex than I thought, or is merited by 300 points.
Question by:aolXFT
LVL 24

Assisted Solution

duz earned 800 total points
ID: 9718339
aolXFT -

>Any links on where I can get more information on this would be appreciated.


Also lots of other information re your other questions on the same page.

>I'd like to close up any known security holes


- duz


Accepted Solution

AsbjornG earned 800 total points
ID: 9720600
Hi aolXFT,

I don't have any experience using StormPay IPN, but I have made PayPal work successfully in the past.

This is how it works:

- PayPal receives a payment, and makes a request to your server to notify you of the payment.
- Your script receives the notification, does whatever processing is necessary to verify the payment (this can include checking the IP, as well as a secret code that makes it just about impossible to simply make the post to your script directly), and posts back to the PayPal server. This is to verify that the transaction did in fact come from PayPal, and not from a spoofed IP.
- Depending on the reply from the PayPal server you can produce a suitable respose for the user.

This means that your script will make a POST to the PayPal server, which will in turn tell you whether or not the transaction was a real one.

Setting up IPN can be a bit of a headache sometimes, but it is as safe as you can get (I'm talking from PayPal experience, I have no personal experience using Stormpay).

Stormpay doesn't seem to have much documentation on IPN at all, but you can find the PayPal docs at http://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/ipn-intro-outside

As for other processor options, I always recommend 2Checkout (www.2checkout.com). They have a flat 5.5% per transaction fee which may be a bit too high for some, but there are no monthly fees and the only money it will cost you if you don't sell anything is the $49 setup fee.

2Checkout also has advanced options for shopping carts and reasonably safe passback routines that allows you to sell bits and bytes (downloads or memberships).

Whether or not they're right for you is really a matter of preference.

Good luck with whichever solution you end up choosing, it can be a headache but it's all worth it when the money start ticking in :)



Author Comment

ID: 9725495
duz: That page gives information specific to stormpay, but it lacks clear information on the subject. It doesn't give a very clear explanation of the system.

AsbornG: Considering the amount of bad comments I've heard about PayPal and EBay, I was a bit hesitant. Since however I'm not going to be using them myself. This script is for a GPL Project I'm working on - although I might make the payment module a pay-for module(if people are going to be charging for services provided by my script, they might as well fork some money back to me :) ). I probably will write a module for PayPals system.

The nature of the project makes StormLock not-an-option.

Since I'll probably be doing this for more than Stormpay, and since I'm sure stormpays IPN system is similar to Paypals, and paypals is better documented, I think I'll accept Ashborn's answer, with duz's as assisting, if I can find the button to split the points.

Featured Post

Reclaim your office - Try the MB 660 headset now!

High level of background noise often makes it difficult for employees to concentrate fully on their jobs – or to communicate clearly on calls. The MB 660 headset helps you create a disruption free workspace.  

Question has a verified solution.

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

A great marketing strategy is diverse.  Read about the not so popular, yet effective, marketing tactics you can start using today!
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
An overview of how to create reports in Adobe Analytics (formerly Omniture Site Catalyst) using pageNames, events, eVars and props. This video will show you how to install the Omniture Debugger tool so can see (and test) what is being passed int…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

877 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