php - Paypal ipn post not arriving -
i'm having difficulties paypal ipn. have set buy button links script (ipn.php inevitably) , test working, code in follows:
$from = "guide test page"; $to = "me@btinternet.com"; $subject = "verified ipn"; $message = "post: ".serialize($_post)."<br>"; $headers = "from:" . $from; mail($to, $subject, $message, $headers); echo "mail sent";
so sends me email, paypal post variables. happens when go through 'buy' redirect ipn.php works, see text 'mail sent' on screen , email arrives. however, serialise($_post) produces a:0:{}
can suggest going on?
i wouldn't think you'd see "mail sent" on screen @ all, since ipn script called (independently) paypal @ point after submit transaction (could instant, few-many seconds). perhaps using ipn.php return url?
Comments
Post a Comment