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:
parent
75ee124626
commit
c0a5084282
@ -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')
|
||||
|
@ -14,12 +14,12 @@ class AccountTransformer extends EntityTransformer
|
||||
'users',
|
||||
'products',
|
||||
'taxRates',
|
||||
'payments'
|
||||
];
|
||||
|
||||
protected $availableIncludes = [
|
||||
'clients',
|
||||
'invoices',
|
||||
'payments',
|
||||
];
|
||||
|
||||
public function includeUsers(Account $account)
|
||||
|
Loading…
Reference in New Issue
Block a user