Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
Minor fix to params filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
yondifon committed Feb 10, 2021
1 parent af36a91 commit 06d63ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}

/**
Expand Down

0 comments on commit 06d63ba

Please sign in to comment.