From 3865238a83cb2c66cff8e012067077dce49d27f8 Mon Sep 17 00:00:00 2001 From: Vava Heirro Date: Tue, 26 Sep 2023 16:33:06 +0700 Subject: [PATCH] refactor: update parameter API --- main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.js b/main.js index 8919efe..9e4ddbc 100644 --- a/main.js +++ b/main.js @@ -31,11 +31,11 @@ $('#cekrekening').on("click", function () { }, 1500); } else { $.ajax({ - url: "https://cekrek.netovas.com/api/account-inquiry", + url: "https://netovas.com/api/cekrek/v1/account-inquiry", type: "POST", data: { - accountBank: $("#accountBank").val(), - accountNumber: $("#accountNumber").val(), + account_bank: $("#accountBank").val(), + account_number: $("#accountNumber").val(), }, headers: { 'Content-Type': 'application/x-www-form-urlencoded' @@ -55,7 +55,7 @@ $('#cekrekening').on("click", function () { .html("Cek Nama"); $("#result-txt").fadeIn('fast', 'linear'); $('#result').html(` - ${response.data.account_name} + ${response.data.account_holder}