mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 23:57:33 -05:00 
			
		
		
		
	Merge pull request #5742 from turbo124/v5-develop
Fixes for Stripe Connect
This commit is contained in:
		
						commit
						2b6fdad0ea
					
				@ -94,6 +94,8 @@ class Handler extends ExceptionHandler
 | 
				
			|||||||
                    ]);
 | 
					                    ]);
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                app('sentry')->captureException($exception);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        elseif (app()->bound('sentry') && $this->shouldReport($exception)) {
 | 
					        elseif (app()->bound('sentry') && $this->shouldReport($exception)) {
 | 
				
			||||||
            app('sentry')->configureScope(function (Scope $scope): void {
 | 
					            app('sentry')->configureScope(function (Scope $scope): void {
 | 
				
			||||||
 | 
				
			|||||||
@ -92,7 +92,7 @@ class StripeConnectController extends BaseController
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        $company = Company::where('company_key', $request->getTokenContent()['company_key'])->first();
 | 
					        $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 = new \stdClass;
 | 
				
			||||||
        $fees_and_limits->{GatewayType::CREDIT_CARD} = new FeesAndLimits;
 | 
					        $fees_and_limits->{GatewayType::CREDIT_CARD} = new FeesAndLimits;
 | 
				
			||||||
        $company_gateway->gateway_key = 'd14dd26a47cecc30fdd65700bfb67b34';
 | 
					        $company_gateway->gateway_key = 'd14dd26a47cecc30fdd65700bfb67b34';
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user