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
57ae09c4c2
commit
653fb6357a
@ -311,6 +311,7 @@ class OnlinePaymentController extends BaseController
|
||||
$query->where('contact_key', $contactKey);
|
||||
})->first();
|
||||
}
|
||||
if (! $client) {
|
||||
$rules = [
|
||||
'first_name' => 'string|max:100',
|
||||
'last_name' => 'string|max:100',
|
||||
@ -327,6 +328,7 @@ class OnlinePaymentController extends BaseController
|
||||
'contact' => Input::all(),
|
||||
];
|
||||
$client = $clientRepo->save($data, $client);
|
||||
}
|
||||
|
||||
$data = [
|
||||
'client_id' => $client->id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user