mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 11:54:36 -04:00
Minor fixes
This commit is contained in:
parent
7b2d3da7e1
commit
428a1a221c
@ -21,8 +21,6 @@ class PaymentWebhookController extends Controller
|
|||||||
public function __invoke(PaymentWebhookRequest $request, string $company_key, string $company_gateway_id)
|
public function __invoke(PaymentWebhookRequest $request, string $company_key, string $company_gateway_id)
|
||||||
{
|
{
|
||||||
|
|
||||||
// MultiDB::findAndSetDbByCompanyKey($company_key);
|
|
||||||
|
|
||||||
$payment = $request->getPayment();
|
$payment = $request->getPayment();
|
||||||
|
|
||||||
if(!$payment)
|
if(!$payment)
|
||||||
@ -33,7 +31,6 @@ class PaymentWebhookController extends Controller
|
|||||||
if(!$client)
|
if(!$client)
|
||||||
return response()->json(['message' => 'Client record not found.'], 400);
|
return response()->json(['message' => 'Client record not found.'], 400);
|
||||||
|
|
||||||
|
|
||||||
return $request->getCompanyGateway()
|
return $request->getCompanyGateway()
|
||||||
->driver($client)
|
->driver($client)
|
||||||
->processWebhookRequest($request, $payment);
|
->processWebhookRequest($request, $payment);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user