From 06d63ba636df520d49f8c3633e81cb7f0b366b72 Mon Sep 17 00:00:00 2001 From: ndifon Date: Wed, 10 Feb 2021 19:51:40 +0100 Subject: [PATCH] Minor fix to params filtering --- src/Payment.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Payment.php b/src/Payment.php index 47830b2..e2a7e69 100644 --- a/src/Payment.php +++ b/src/Payment.php @@ -109,7 +109,9 @@ protected function prepareData() : array "redirect"=> $this->redirect ]; - return array_filter($this->savePayment($data)); + return array_filter($this->savePayment($data), function ($val) { + return !is_null($val); + }); } /**