From 0e1a2dc431551a5e3020b6bfab1d4b41ab4cc32f Mon Sep 17 00:00:00 2001 From: Juan Date: Sat, 10 Aug 2019 17:57:47 -0300 Subject: [PATCH] Add empty array when creating payment --- src/Handlers/CreatePaymentHandler.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Handlers/CreatePaymentHandler.php b/src/Handlers/CreatePaymentHandler.php index a460c0e..ca8be02 100644 --- a/src/Handlers/CreatePaymentHandler.php +++ b/src/Handlers/CreatePaymentHandler.php @@ -16,6 +16,7 @@ public function handle(Payable $payable): Payment $payment->price = $payable->getPayablePrice(); $payment->description = $payable->getPayableDescription(); $payment->gateway_name = config('laravel-payments.default_gateway'); + $payment->parameters = []; $payment->payable()->associate($payable); $payment->payer()->associate($payable->payer());