mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 21:44:29 -04:00
Support updating client with buy now link
This commit is contained in:
parent
dc058ebb89
commit
c7eb38c3ff
@ -311,7 +311,6 @@ class OnlinePaymentController extends BaseController
|
||||
$query->where('contact_key', $contactKey);
|
||||
})->first();
|
||||
}
|
||||
if (! $client) {
|
||||
$rules = [
|
||||
'first_name' => 'string|max:100',
|
||||
'last_name' => 'string|max:100',
|
||||
@ -327,8 +326,7 @@ class OnlinePaymentController extends BaseController
|
||||
'currency_id' => $account->currency_id,
|
||||
'contact' => Input::all(),
|
||||
];
|
||||
$client = $clientRepo->save($data);
|
||||
}
|
||||
$client = $clientRepo->save($data, $client);
|
||||
|
||||
$data = [
|
||||
'client_id' => $client->id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user