Skip to content

Obviate.io

To anticipate and prevent

Perl Snips

Posted on 2005-04-18 By Jon No Comments on Perl Snips

I’ve been working on a PayPal IPN Script. The key to PayPal IPN is that they post the data to your server, you have to post it back to them with one extra query attached. Most scripts I’ve seen read STDIN directly to get the post and then break out the rest of the data from there, but I dont want to do that. I like my mod_CGI. The only problem is that when using this module, you can no longer directly read the POST data. I’ve found a work around

@names = $q->param;foreach $key (@names){$z .= $key . "=" . param($key) . "\&";}

This snip of code will rebuild the POST in the order it was recived into the variable $z. Its not a “preety” solution, but it does work (It also adds an additional & at the end, but thats ok with my needs since I have to attach another query to the end for paypal).

Otherwise I have to say working with the PayPal IPN system is very intresting, and once you hack through all the crap thats thrown at you — its really very simple.

Code

Post navigation

Previous Post: Very Very Serious
Next Post: WOW – Windows Comercial?

Related Posts

SocketIO IRC-style Tutorial – Part 1 – Intro Cloud
Starting Android Development Code
Introducing pyLegLight – A Python module for the Elgato Key Lights Code
Well that was dumb Code
Simple and automatic Github deployment using PHP Cloud
Wrapping my brain around DynamoDB Cloud

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Copyright © 2026 Obviate.io.

Powered by PressBook Masonry Dark