From 20275b6789a82d6df7c1902dcf833bcedfd12d99 Mon Sep 17 00:00:00 2001 From: Advait316 <149697462+Advait316@users.noreply.github.com> Date: Thu, 9 Nov 2023 19:26:51 +0530 Subject: [PATCH] Update index.html --- JuspayBackendKit/src/main/webapp/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JuspayBackendKit/src/main/webapp/index.html b/JuspayBackendKit/src/main/webapp/index.html index 689e42981..841e29c3b 100644 --- a/JuspayBackendKit/src/main/webapp/index.html +++ b/JuspayBackendKit/src/main/webapp/index.html @@ -80,7 +80,7 @@

Order Form

order_id: orderId, amount: amount, }; -//block:start:handle-payment-response + var xhr = new XMLHttpRequest(); xhr.open("POST", 'initiateJuspayPayment', true); xhr.setRequestHeader("Content-Type", "application/json;charset=UTF-8"); @@ -96,7 +96,7 @@

Order Form

alert(`http status code: ${xhr.status} message: ${response.message}`); } }; -//block:end:handle-payment-response + xhr.send(JSON.stringify(data)); });