Skip to content

Commit fe9d290

Browse files
committed
small modif
1 parent b46006f commit fe9d290

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

controllers/front/validateBnpl.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ public function initContent()
6161
return;
6262
}
6363

64-
$input = json_decode(Tools::getValue('paymentData', ''), true);
64+
$input = Tools::getValue('paymentData', '');
65+
66+
if (is_string($input)) {
67+
$input = json_decode($input, true);
68+
}
69+
6570
$cart = $this->context->cart;
6671

6772
if (empty($input['orderID']) || !$this->validateOrderID($input['orderID'])) {

0 commit comments

Comments
 (0)