Fix for buy now clients

This commit is contained in:
Hillel Coren 2017-03-20 12:14:06 +02:00
parent 57ae09c4c2
commit 653fb6357a

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,