Fix for buy now clients

This commit is contained in:
Hillel Coren 2017-03-20 12:14:45 +02:00
parent 1e575e50e9
commit 5ceb2d9ab6

View File

@ -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,