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');
					if($status == 'Completed')
					{
						$payment= oseRegistry :: call('payment')->getInstance('Order');
						//$payment->updateOrder($order_id, "confirmed");
						$payment->confirmOrder($order_id, array());
						$process->updateMemStatus(1, $orderItems->entry_id, $member_id);
						
					}				
				break;

				case('recurring_payment_skipped'):
				case('recurring_payment_failed'):
		if(eregi("VERIFIED", $res)) {
			// check the invoice
			$isValid= false;
			if(!$process->checkInvoice()) {
				$payment_status= "Failed";
				$mailsubject= "PayPal Pro 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('recurring_payment_profile_created'):
					// check whethere there is a init txn
					$result = $process->authorizeProfileCreation($orderInfo);
					if(!$result)
					{
						$mailsubject= "Invalid Paypal Pro IPN Transaction on your site - Invalid Transaction";
						$mailbody= "Hello,<br /><br />";
						$mailbody .= "An Invalid Paypal Transaction requires your attention.<br />";
						$mailbody .= "-----------------------------------------------------------<br />";
						$mailbody .= "REMOTE IP ADDRESS:".$_SERVER['REMOTE_ADDR']."<br />";
						$mailbody .= "REMOTE HOST NAME: {$remote_hostname}<br />";
						$mailbody .= "Order ID: {$order_id}<br />";
						$mailbody .= "User ID: {$member_id}<br />";

						$mailbody .= "Paypal Unique Transaction( Subscription ) ID: ".$process->get('txn_id')."<br />";