mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 10:17:30 -04: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);
|
$payment = $this->paymentService->createPayment($invitation, $accountGateway, $token, $payerId);
|
||||||
Session::flash('message', trans('texts.applied_payment'));
|
Session::flash('message', trans('texts.applied_payment'));
|
||||||
} else {
|
} else {
|
||||||
Session::flash('error', Input::get('message'));
|
$message = Input::get('message') . ': ' . Input::get('invalid_fields');
|
||||||
|
Session::flash('error', $message);
|
||||||
}
|
}
|
||||||
return Redirect::to($invitation->getLink());
|
return Redirect::to($invitation->getLink());
|
||||||
} elseif (method_exists($gateway, 'completePurchase')
|
} elseif (method_exists($gateway, 'completePurchase')
|
||||||
|
@ -14,12 +14,12 @@ class AccountTransformer extends EntityTransformer
|
|||||||
'users',
|
'users',
|
||||||
'products',
|
'products',
|
||||||
'taxRates',
|
'taxRates',
|
||||||
'payments'
|
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $availableIncludes = [
|
protected $availableIncludes = [
|
||||||
'clients',
|
'clients',
|
||||||
'invoices',
|
'invoices',
|
||||||
|
'payments',
|
||||||
];
|
];
|
||||||
|
|
||||||
public function includeUsers(Account $account)
|
public function includeUsers(Account $account)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user