diff --git a/src/Pages/DepositPage.svelte b/src/Pages/DepositPage.svelte index c860ac7..5edde04 100644 --- a/src/Pages/DepositPage.svelte +++ b/src/Pages/DepositPage.svelte @@ -22,6 +22,8 @@ let showNormal = false; let showTimeout = false; + let currency = ""; + const delay = (ms) => new Promise((res) => setTimeout(res, ms)); //http://localhost:8080/?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJleHAiOjE3MjQzNjEzOTgsImlhdCI6MTcyMTk0MjE5OCwiaW5fY3VycmVuY3lfY29kZSI6IktHUyIsImlzcyI6Ikhvc3RhcGF5Iiwib3JkZXJfaWQiOiIxZjhjOTI2NC1lZWQ3LTRhYzMtYTEyZC0xYzEzMjg4MWM4NzQiLCJvdXRfY3VycmVuY3lfY29kZSI6IktHUyJ9.w_ki56Hb81kX2SoS9qm0Je3atBhmUWTQaYYrLX-udCM /** @@ -88,6 +90,7 @@ try { let t = jwtDecode(token); orderID = t["order_id"]; + currency = t["out_currency_code"]; // //console.log(t); validJWT = true; } catch (error) { @@ -113,8 +116,7 @@ const formattedSeconds = String(seconds).padStart(2, "0"); timeLeft = `${formattedMinutes}:${formattedSeconds}`; - if(timeLeft === "00:00" || timeLeft.includes("-")) - { + if (timeLeft === "00:00" || timeLeft.includes("-")) { orderStatus = 6; showTimeout = true; clearInterval(timeLeftInterval); @@ -233,6 +235,8 @@ let showLoadingScreen = false; let disableGetReqBtn = false; + let orderAmount = ""; + let paymentMethods = []; async function getPaymentMethods() { try { @@ -270,6 +274,7 @@ ); requestingReqs = false; requisites = result.data["requisite"]; + orderAmount = result.data["amount"]; // console.log(result); showReqs = true; calculateDate(result.data["requisite_creation_time"]); @@ -311,6 +316,7 @@ selectedBank = result.data["bank_id"] + ""; requisites = result.data["requisite"]; + orderAmount = result.data["amount"]; calculateDate(result.data["requisite_creation_time"]); disableGetReqBtn = true; @@ -544,6 +550,16 @@ {#if !showHelpSection}
+

+ Переведите точную сумму одним платежом: {orderAmount}{currency} +

+

+ Неверная сумма перевода возврату не подлежит! +

Реквизиты

Почта: support@24paymentgateway.ru

+
{/if} {/if}