1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Minor fixes

This commit is contained in:
David Bomba 2021-06-24 20:12:05 +10:00
parent 7b2d3da7e1
commit 428a1a221c

View File

@ -21,8 +21,6 @@ class PaymentWebhookController extends Controller
public function __invoke(PaymentWebhookRequest $request, string $company_key, string $company_gateway_id)
{
// MultiDB::findAndSetDbByCompanyKey($company_key);
$payment = $request->getPayment();
if(!$payment)
@ -33,7 +31,6 @@ class PaymentWebhookController extends Controller
if(!$client)
return response()->json(['message' => 'Client record not found.'], 400);
return $request->getCompanyGateway()
->driver($client)
->processWebhookRequest($request, $payment);