$query= " SELECT * FROM `#__osemsc_order_item`". " WHERE order_id = '{$order_id}'"; $db->setQuery($query); $orderItems= oseDB :: loadList('obj'); // $msc_id = $orderInfo->entry_id; // remove post headers if present. //OSE pending $res= preg_replace("'Content-type: text/plain'si", "", $res); //------------------------------------------- // ...read the results of the verification... // If VERIFIED = continue to process the TX... //------------------------------------------- if(eregi("VERIFIED", $res)) { // check the invoice $isValid= false; if(!$process->checkInvoice()) { $payment_status= "Failed"; $mailsubject= "PayPal IPN Transaction on your site: Order ID not found"; $mailbody= "The right order_id wasn't found during a PayPal transaction on your website. The Order ID received was: ".$process->get('invoice'); $emailObj= new stdClass(); $emailObj->subject= $mailsubject; $emailObj->body= $mailbody; $apiEmail->sendToAdminGroup($emailObj, $oseMscConfig->admin_group); } $paymentOrder= $payment->getInstance('Order'); // check the price detail : m & a switch($process->getStatus()) { case('subscr_payment'): case('recurring_payment'): $status = $process->get('payment_status');