Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Business::PayPal::IPN synopsis doesn't make sense to me

by danmcb (Monk)
on Jul 24, 2008 at 09:09 UTC ( [id://699815]=note: print w/replies, xml ) Need Help??


in reply to Re: Business::PayPal::IPN synopsis doesn't make sense to me
in thread Business::PayPal::IPN synopsis doesn't make sense to me

I think that I do know what it is. I've been reading the manuals for a while, and have implemented it before. Hence I don't see how the example given in the synopsis can possibly work, unless it somehow incorporates a web server to receive the incoming IPN POST req from PP (in which case where is the config for that?)

I would have expected something like:

my $hash = $cgi->params(); # the incoming POST params
my $ipn = Business::PayPal::IPN->new( $hash );
if ( $ipn->isOK ) {
 # further checks here ...
} else {
 # invalid, log it
}

Basically, it needs to know something about your config and the post to work, where is that info?

Or maybe PayPal really does work like magic ...

  • Comment on Re^2: Business::PayPal::IPN synopsis doesn't make sense to me

Replies are listed 'Best First'.
Re^3: Business::PayPal::IPN synopsis doesn't make sense to me
by Anonymous Monk on Jul 24, 2008 at 09:39 UTC
    As soon as you receive payment to your PayPal account, PayPal posts the transaction details to your specified URL, which you either configure in your PayPal preferences, or in your HTML forms' "notify_url" hidden field........ Business::PayPal::IPN is the library which encapsulates all the above complexity into this compact form:

    So it looks like it is too simple

      so where is it getting the params that are in the incoming POST from?
Re^3: Business::PayPal::IPN synopsis doesn't make sense to me
by Anonymous Monk on Oct 19, 2009 at 17:41 UTC
    It creates its own CGI internally.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://699815]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-18 07:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found