Paypal SandBox IPN always returns INVALID

前端 未结 9 1445
予麋鹿
予麋鹿 2020-12-03 08:33

As mentioned in one of the comments in an answer below, I tried following this tutorial. So now I have the following:


The ipn.php file:

9条回答
  •  天涯浪人
    2020-12-03 09:01

    Here's how to avoid these errors...

    foreach ($_POST as $key => $value) {
         if ($key=='transaction')
              foreach ($value as $key2=>$value2) {
                   $value['transaction'][$key2] = urlencode(stripslashes($value2));
         }
         else {
              $value = urlencode(stripslashes($value));
         }
         $req .= "&$key=$value";
     }
    

提交回复
热议问题