if (!
empty($sErrorFlag) || !
empty($sErrorMessages)) { $this->
View()->
assign('sErrorFlag',
$sErrorFlag);
$this->
View()->
assign('sErrorMessages',
$sErrorMessages);
$this->
forward('shippingPayment'
);
return;
} // Validate the payment details
$this->front->
ensureRequest()->
setPost('sPayment',
$payment);
$checkData =
$this->admin->
sValidateStep3();
// Problem with the payment details, return error
if (!
empty($checkData['checkPayment'
]['sErrorMessages'
]) ||
empty($checkData['sProcessed'
])) { $this->
View()->
assign('sErrorFlag',
$checkData['checkPayment'
]['sErrorFlag'
]);
$this->
View()->
assign('sErrorMessages',
$checkData['checkPayment'
]['sErrorMessages'
]);
$this->
forward('shippingPayment'
);
return;
}