diff --git a/docs/THREED-PAYMENT-EXAMPLE.md b/docs/THREED-PAYMENT-EXAMPLE.md index 2ca09672..c5ca8790 100644 --- a/docs/THREED-PAYMENT-EXAMPLE.md +++ b/docs/THREED-PAYMENT-EXAMPLE.md @@ -201,7 +201,7 @@ try { ], ]; $requestData = $requestDataPreparedEvent->getRequestData(); - $requestData = array_merge($requestData, $additionalRequestDataForKuveyt); + $requestData = array_merge_recursive($requestData, $additionalRequestDataForKuveyt); $requestDataPreparedEvent->setRequestData($requestData); }); diff --git a/examples/_common-codes/3d/form.php b/examples/_common-codes/3d/form.php index 5571d655..c5799c8d 100644 --- a/examples/_common-codes/3d/form.php +++ b/examples/_common-codes/3d/form.php @@ -117,7 +117,7 @@ function (RequestDataPreparedEvent $requestDataPreparedEvent) use ($pos): void { ], ]; $requestData = $requestDataPreparedEvent->getRequestData(); - $requestData = array_merge($requestData, $additionalRequestDataForKuveyt); + $requestData = array_merge_recursive($requestData, $additionalRequestDataForKuveyt); $requestDataPreparedEvent->setRequestData($requestData); });