diff --git a/docs/THREED-SECURE-AND-PAY-PAYMENT-IN-MODALBOX-EXAMPLE.md b/docs/THREED-SECURE-AND-PAY-PAYMENT-IN-MODALBOX-EXAMPLE.md index 16981e55..32ff2cb5 100644 --- a/docs/THREED-SECURE-AND-PAY-PAYMENT-IN-MODALBOX-EXAMPLE.md +++ b/docs/THREED-SECURE-AND-PAY-PAYMENT-IN-MODALBOX-EXAMPLE.md @@ -167,24 +167,28 @@ $renderedForm = ob_get_clean(); @@ -204,7 +208,8 @@ $renderedForm = ob_get_clean(); window.addEventListener('message', function (event) { messageReceived = true; displayResponse(event); - $('#iframe-modal').modal('hide'); + let myModal = bootstrap.Modal.getInstance(document.getElementById('iframe-modal')); + myModal.hide(); }); /** @@ -212,20 +217,24 @@ $renderedForm = ob_get_clean(); * modal box içinde yeni iframe oluşturuyoruz ve iframe içine $renderedForm verisini basıyoruz. */ let iframe = document.createElement('iframe'); - document.getElementById("iframe-modal-dialog").appendChild(iframe); - $(iframe).height('500px'); - $(iframe).width('410px'); + document.getElementById("iframe-modal-body").appendChild(iframe); + iframe.style.height = '500px'; + iframe.style.width = '410px'; iframe.contentWindow.document.open(); iframe.contentWindow.document.write(``); iframe.contentWindow.document.close(); - $('#iframe-modal').modal('show'); + let modalElement = document.getElementById('iframe-modal'); + let myModal = new bootstrap.Modal(modalElement, { + keyboard: false + }) + myModal.show(); - $('#iframe-modal').on('hidden.bs.modal', function () { + modalElement.addEventListener('hidden.bs.modal', function () { if (!messageReceived) { - let alertBox = $('#result-alert'); - alertBox.addClass('alert-danger'); - alertBox.append('modal box kapatildi'); - alertBox.show(); + let alertBox = document.getElementById('result-alert'); + alertBox.classList.add('alert-danger'); + alertBox.appendChild(document.createTextNode('modal box kapatildi')); + alertBox.style.display = 'block'; } }); diff --git a/examples/_common-codes/3d/form.php b/examples/_common-codes/3d/form.php index c6444374..fecadd2b 100644 --- a/examples/_common-codes/3d/form.php +++ b/examples/_common-codes/3d/form.php @@ -260,24 +260,28 @@ function (RequestDataPreparedEvent $requestDataPreparedEvent): void { @@ -287,9 +291,14 @@ function (RequestDataPreparedEvent $requestDataPreparedEvent): void {