From 69b751501533b5761caf6feef457524433b76b19 Mon Sep 17 00:00:00 2001 From: Grzegorz Kozinski Date: Wed, 27 Sep 2023 08:12:08 +0200 Subject: [PATCH] Fix way of getting blik code from request --- src/Provider/BlikModel/BlikModelProvider.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Provider/BlikModel/BlikModelProvider.php b/src/Provider/BlikModel/BlikModelProvider.php index 4d38eddb..e2c17466 100644 --- a/src/Provider/BlikModel/BlikModelProvider.php +++ b/src/Provider/BlikModel/BlikModelProvider.php @@ -28,8 +28,11 @@ public function provideDataToBlikModel(?string $blikCode): BlikModelInterface if (null !== $blikCode) { return $this->blikModelFactory->create($blikCode, $request->getClientIp()); } + + /** @var array $requestData */ + $requestData = $request->request->all(); /** @var array $blikData */ - $blikData = $request->request->get('sylius_checkout_complete'); + $blikData = $requestData['sylius_checkout_complete']; $blikCode = $blikData['blik_code']; if (!$blikCode) { throw new BlikNoDataException('The Blik data has not been entered');