btc4cash
btc4cash

Reputation: 325

Getting order data paypal not working

I worked with Paypal multiple time. I create a button, redirect to proceed.php?order=order on success, and in proceed.php check if gross amount and payee email match database information.

My code always look like :

    if ($_POST['payer_email'] && $_GET["ordertr"]){
            // get paypal value and product it to fetch correct serial
            $ppemail = trim(mysqli_real_escape_string($con, htmlspecialchars($_POST['payer_email'], ENT_QUOTES, 'UTF-8')));
            $ordertr = trim(mysqli_real_escape_string($con, htmlspecialchars($_GET['ordertr'], ENT_QUOTES, 'UTF-8')));
            $gross = trim(mysqli_real_escape_string($con, htmlspecialchars($_POST['mc_gross'], ENT_QUOTES, 'UTF-8')));
        if ($gross == $actualprice){//price match}
            }

Sadly, it's not getting the POST data back from Paypal as it was before. Is that sadly possible that Paypal stoped sending POST data once user redirected to site? I always used this way instead IPN, and I saw there is PDT but I never used nor never switch on/off before getting POST data like it should.

Any ideas whats wrong?

Upvotes: 0

Views: 86

Answers (0)

Related Questions