mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #6123 from turbo124/v5-develop
Fixes for client settings
This commit is contained in:
commit
79e56a4355
@ -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);
|
||||
|
@ -13,6 +13,7 @@
|
||||
namespace App\Repositories;
|
||||
|
||||
|
||||
use App\DataMapper\ClientSettings;
|
||||
use App\DataMapper\InvoiceItem;
|
||||
use App\Factory\InvoiceFactory;
|
||||
use App\Models\Client;
|
||||
@ -53,6 +54,7 @@ class SubscriptionRepository extends BaseRepository
|
||||
'company_id' => $subscription->company_id,
|
||||
'group_settings_id' => $subscription->group_id,
|
||||
'country_id' => $subscription->company->settings->country_id,
|
||||
'settings' => ClientSettings::defaults(),
|
||||
]);
|
||||
|
||||
$contact = ClientContact::factory()->create([
|
||||
|
Loading…
x
Reference in New Issue
Block a user