Fixes for Stripe Connect

This commit is contained in:
David Bomba 2021-05-19 09:03:30 +10:00
parent 8b397cc15c
commit a482e3c37e
2 changed files with 3 additions and 1 deletions

View File

@ -94,6 +94,8 @@ class Handler extends ExceptionHandler
]);
});
app('sentry')->captureException($exception);
}
elseif (app()->bound('sentry') && $this->shouldReport($exception)) {
app('sentry')->configureScope(function (Scope $scope): void {

View File

@ -92,7 +92,7 @@ class StripeConnectController extends BaseController
$company = Company::where('company_key', $request->getTokenContent()['company_key'])->first();
$company_gateway = CompanyGatewayFactory::create($company->id, $company->id);
$company_gateway = CompanyGatewayFactory::create($company->id, $company->owner()->id);
$fees_and_limits = new \stdClass;
$fees_and_limits->{GatewayType::CREDIT_CARD} = new FeesAndLimits;
$company_gateway->gateway_key = 'd14dd26a47cecc30fdd65700bfb67b34';