1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Added details to cybersource error

This commit is contained in:
Hillel Coren 2016-05-03 19:06:38 +03:00
parent 75ee124626
commit c0a5084282
2 changed files with 3 additions and 2 deletions

View File

@ -551,7 +551,8 @@ class PaymentController extends BaseController
$payment = $this->paymentService->createPayment($invitation, $accountGateway, $token, $payerId);
Session::flash('message', trans('texts.applied_payment'));
} else {
Session::flash('error', Input::get('message'));
$message = Input::get('message') . ': ' . Input::get('invalid_fields');
Session::flash('error', $message);
}
return Redirect::to($invitation->getLink());
} elseif (method_exists($gateway, 'completePurchase')

View File

@ -14,12 +14,12 @@ class AccountTransformer extends EntityTransformer
'users',
'products',
'taxRates',
'payments'
];
protected $availableIncludes = [
'clients',
'invoices',
'payments',
];
public function includeUsers(Account $account)