setConfig('ssl_verify_peer', FALSE); $req->setMethod(HTTP_Request2::METHOD_POST); $req->addPostParameter("at", $auth_token); $req->addPostParameter('cmd', '_notify-synch'); $req->addPostParameter('tx', $_GET['tx']); $response = $req->send(); if (200 != $response->getStatus()) // HTTP ERROR { echo "Sorry: Order Processing failed!\n"; exit(1); } else { $msg = $response->getBody(); echo "
\n"; print_r(pdtArray($msg)); echo "\n"; } // print_r($_SESSION['cart']); ?>