unexpected t_catch on line 64
what i have to do??
[10-Oct-2014 22:09:14 Europe/Bucharest] PHP Parse error: syntax error, unexpected T_CATCH in /home/lagramad/public_html/discounts/system/modules/gateway/mobilpay/cardConfirm.php on line 64
if (strcasecmp( $_SERVER['REQUEST_METHOD'], 'post' ) == 0) {
if (( isset( $_POST['env_key'] ) && isset( $_POST['data'] ) )) {
$privateKeyFilePath = $_SERVER['DOCUMENT_ROOT'] . '/system/modules/gateway/mobilpay/certificate/private.key';
$objPmReq = Mobilpay_Payment_Request_Abstract::factoryfromencrypted( $_POST['env_key'], $_POST['data'], $privateKeyFilePath );
switch ($objPmReq->objPmNotify->action) {
case 'confirmed': {
$errorMessage = $objPmReq->objPmNotify->getCrc( );
break;
}
case 'confirmed_pending': {
$errorMessage = $objPmReq->objPmNotify->getCrc( );
break;
}
case 'paid_pending': {
$errorMessage = $objPmReq->objPmNotify->getCrc( );
break;
}
case 'paid': {
$errorMessage = $objPmReq->objPmNotify->getCrc( );
break;
}
case 'canceled': {
$errorMessage = $objPmReq->objPmNotify->getCrc( );
break;
}
case 'credit': {
$errorMessage = $objPmReq->objPmNotify->getCrc( );
break;
}
default: {
$errorType = CONFIRM_ERROR_TYPE_PERMANENT;
$errorCode = ERROR_CONFIRM_INVALID_ACTION;
$errorMessage = 'mobilpay_refference_action paramaters is invalid';
break;
}
}
catch ( Exception $e ) { line 64
$errorType = CONFIRM_ERROR_TYPE_TEMPORARY;
$errorCode = $e->getCode( );
$errorMessage = $e->getMessage( );
$headers = 'From: You <you@essence.com>' . '';
$headers .= 'MIME-Version: 1.0' . '';
$headers .= 'Content-type: text/html; charset=iso-8859-1' . '';
$req = '';
if (( $_REQUEST || $_POST )) {
foreach ($_REQUEST as $val) {
}
}
$get_req = '';
foreach ($_GET as $get_val) {
$get_req .= $get_val;
}