Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: How do you use Paypal IPN with Dancer2?

by MorayJ (Beadle)
on Jul 15, 2016 at 09:54 UTC ( [id://1167825]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How do you use Paypal IPN with Dancer2?
in thread How do you use Paypal IPN with Dancer2?

Thanks, the decoding doesn't seem to be working if I've handled it correctly.

As far as I can tell, I'm ending the script gracefully as the web page for sending the test reports everything ok (so I assume that means that it's got all the responses it expected)

The 'invalid' it sends is in content not a header, incidentally.

I do wonder if this issue may to be do with my apache set up and the forwarding to Dancer and if there might not be some kind of header changing going on there.

I've also seen someone claim their script doesn't work in the simulator but does when they use the sandbox environment

I think, for now, I'm going to use a different validation method - or just assume that the IPN is good enough as it is.

If I solve this, I'll come back and report on it.

Thanks again

MorayJ

  • Comment on Re^3: How do you use Paypal IPN with Dancer2?

Replies are listed 'Best First'.
Re^4: How do you use Paypal IPN with Dancer2?
by $h4X4_|=73}{ (Monk) on Jul 15, 2016 at 10:13 UTC

    Try using HTTP with the sandbox server.
    change https://www.sandbox.paypal.com/cgi-bin/webscr to http://www.sandbox.paypal.com/cgi-bin/webscr
    Update: and this my $ua = LWP::UserAgent->new(ssl_opts => { verify_hostname => 1 }); to this my $ua = LWP::UserAgent->new;
    That would mean your SSL encryption was not right or PP could have sent it to you none HTTPS or the sandbox server does not run SSL or...

Log In?
Username:
Password:

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

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

    No recent polls found