mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Minor fixes for authorize.net
This commit is contained in:
parent
d11cc1784d
commit
181c343594
@ -126,7 +126,7 @@ class Handler extends ExceptionHandler
|
||||
return response()->json(['message' => $exception->getMessage()], 400);
|
||||
} elseif ($exception instanceof GenericPaymentDriverFailure) {
|
||||
$data['message'] = $exception->getMessage();
|
||||
dd($data);
|
||||
//dd($data);
|
||||
// return view('errors.layout', $data);
|
||||
}
|
||||
|
||||
|
@ -549,9 +549,11 @@ class CompanyController extends BaseController
|
||||
|
||||
$company->delete();
|
||||
|
||||
/*Set New Company*/
|
||||
if($account->companies->count() >= 1)
|
||||
auth()->user()->setCompany($account->companies->first());
|
||||
|
||||
/*Update the new default company if necessary*/
|
||||
if($company_id == $account->default_company_id){
|
||||
|
||||
$new_default_company = $account->companies->first();
|
||||
@ -563,6 +565,7 @@ class CompanyController extends BaseController
|
||||
|
||||
}
|
||||
|
||||
/*Prep response*/
|
||||
$this->entity_type = CompanyUser::class;
|
||||
$this->entity_transformer = CompanyUserTransformer::class;
|
||||
|
||||
|
@ -194,7 +194,8 @@ class AuthorizeCreditCard
|
||||
}
|
||||
|
||||
private function processFailedResponse($data, $request)
|
||||
{ dd($data);
|
||||
{
|
||||
//dd($data);
|
||||
info(print_r($data,1));
|
||||
}
|
||||
|
||||
|
@ -96,4 +96,11 @@ class PaymentService
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function save()
|
||||
{
|
||||
$this->payment->save();
|
||||
|
||||
return $this->payment->fresh();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user