bug fixes

This commit is contained in:
Hillel Coren 2014-02-02 20:52:31 +02:00
parent 8d6b86b6ce
commit ff0d8c1696

View File

@ -237,8 +237,9 @@ class PaymentController extends \BaseController
$response->redirect(); $response->redirect();
} }
else else
{ {
Session::flash('error', $response->getMessage());
return Utils::fatalError('Sorry, there was an error processing your payment. Please try again later.<p>', $response->getMessage()); return Utils::fatalError('Sorry, there was an error processing your payment. Please try again later.<p>', $response->getMessage());
} }
} }
@ -307,11 +308,13 @@ class PaymentController extends \BaseController
} }
else else
{ {
Session::flash('error', $response->getMessage());
return Utils::fatalError('Sorry, there was an error processing your payment. Please try again later.<p>', $response->getMessage()); return Utils::fatalError('Sorry, there was an error processing your payment. Please try again later.<p>', $response->getMessage());
} }
} }
catch (\Exception $e) catch (\Exception $e)
{ {
Session::flash('error', $e->getMessage());
return Utils::fatalError('Sorry, there was an error processing your payment. Please try again later.<p>', $e); return Utils::fatalError('Sorry, there was an error processing your payment. Please try again later.<p>', $e);
} }
} }