Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by $h4X4_|=73}{ (Monk)
on Jul 18, 2016 at 10:05 UTC ( [id://1167950]=note: print w/replies, xml ) Need Help??


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

(Also your server's IPN URL must use HTTPS
This is not true. Some people have it working on HTTP.

What you are doing with this part of the code can cause servers to return HTTP 500 Internal Server Error because of malformed header format. The server always sets that header not your program. PayPal requires the HTTP 200 response to be a text/plain header.

# respond to Paypal's initial HTTP request print "HTTP/1.1 200 OK\r\n\r\n";

Replies are listed 'Best First'.
Re^3: How do you use Paypal IPN with Dancer2?
by lancer (Scribe) on Jul 18, 2016 at 13:27 UTC
    Thank you for the feedback!

    I have edited the part about using HTTPS-only URL-s.

    The code where the HTTP 200 header is returned seemed to work for me in that exact form.*
    (Note, I was using HTTP::Server::Simple, where your program has to print the HTTP status line and all headers.)

    * Actually I'm not sure about that. I will check it sometime soon and update this post if I can verify that.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-25 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found