From f8672e3feb2c35b8e7d460a0594cb4433899b231 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sat, 16 Jul 2016 23:51:05 +0300 Subject: [PATCH] Fix for buy now buttons --- app/Http/Controllers/OnlinePaymentController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/OnlinePaymentController.php b/app/Http/Controllers/OnlinePaymentController.php index fded55725b66..d934f2ae5e8b 100644 --- a/app/Http/Controllers/OnlinePaymentController.php +++ b/app/Http/Controllers/OnlinePaymentController.php @@ -243,7 +243,7 @@ class OnlinePaymentController extends BaseController $client = $clientRepo->save($data); $data = [ - 'client_id' => $client->public_id, + 'client_id' => $client->id, 'invoice_items' => [[ 'product_key' => $product->product_key, 'notes' => $product->notes,