We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b46006f commit fe9d290Copy full SHA for fe9d290
1 file changed
controllers/front/validateBnpl.php
@@ -61,7 +61,12 @@ public function initContent()
61
return;
62
}
63
64
- $input = json_decode(Tools::getValue('paymentData', ''), true);
+ $input = Tools::getValue('paymentData', '');
65
+
66
+ if (is_string($input)) {
67
+ $input = json_decode($input, true);
68
+ }
69
70
$cart = $this->context->cart;
71
72
if (empty($input['orderID']) || !$this->validateOrderID($input['orderID'])) {
0 commit comments