mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for buy now clients
This commit is contained in:
parent
1e575e50e9
commit
5ceb2d9ab6
@ -311,6 +311,7 @@ class OnlinePaymentController extends BaseController
|
|||||||
$query->where('contact_key', $contactKey);
|
$query->where('contact_key', $contactKey);
|
||||||
})->first();
|
})->first();
|
||||||
}
|
}
|
||||||
|
if (! $client) {
|
||||||
$rules = [
|
$rules = [
|
||||||
'first_name' => 'string|max:100',
|
'first_name' => 'string|max:100',
|
||||||
'last_name' => 'string|max:100',
|
'last_name' => 'string|max:100',
|
||||||
@ -327,6 +328,7 @@ class OnlinePaymentController extends BaseController
|
|||||||
'contact' => Input::all(),
|
'contact' => Input::all(),
|
||||||
];
|
];
|
||||||
$client = $clientRepo->save($data, $client);
|
$client = $clientRepo->save($data, $client);
|
||||||
|
}
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'client_id' => $client->id,
|
'client_id' => $client->id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user