in reply to Re: How do you use Paypal IPN with Dancer2?
in thread How do you use Paypal IPN with Dancer2?
I was going to mention Business::PayPal::IPN but i seen in Business::CPI::Gateway::PayPal::IPN the person that wrote it stated this about Business::PayPal::IPN = This is a rewrite of Business::PayPal::IPN. It works somewhat similar to it, and shares almost none of the same code.
Looking into what Business::PayPal::IPN does. It uses CGI to get the param's, so if the module works. that means it decodes the content before sending it back to PayPal.
You can try to use this code on $return_query to decode it and see if it works now.
sub decode_it { my $value = shift || ''; $value =~ tr/+/ /; $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; return $value; }
print "content-type: text/plain\n\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How do you use Paypal IPN with Dancer2?
by perlfan (Parson) on Jul 14, 2016 at 14:43 UTC | |
by $h4X4_|=73}{ (Monk) on Jul 14, 2016 at 21:51 UTC | |
|
Re^3: How do you use Paypal IPN with Dancer2?
by MorayJ (Beadle) on Jul 15, 2016 at 09:54 UTC | |
by $h4X4_|=73}{ (Monk) on Jul 15, 2016 at 10:13 UTC |