Compare commits

..

No commits in common. "77880f9bf8b034b43043ff3ed958c56c7204c8c6" and "60cc226d5544e7d7f6795333f7920369616b3dda" have entirely different histories.

2 changed files with 5 additions and 18 deletions

@ -8,7 +8,7 @@
import InputMask from './InputMask.svelte'; import InputMask from './InputMask.svelte';
import payways from './payways.js'; import payways from './payways.js';
import QR from './QR.svelte'; import QR from './QR.svelte';
import CTC from './CTC.svelte'; import CTC from './CTC.svelte';
@ -19,7 +19,7 @@
import PayFlow from './PayFlow.svelte'; import PayFlow from './PayFlow.svelte';
import { ecEncrypt } from './ecies.js'; import { ecEncrypt } from './ecies.js';
let payway = payways[0]; let payway = payways[0];
setTimeout(()=>{ setTimeout(()=>{
@ -32,7 +32,6 @@
let realAmount; let realAmount;
let extAccount; let extAccount;
let briefAccount; let briefAccount;
let notifyTelegramId;
let encrypt = false; let encrypt = false;
$: inputId = payway.iid||payway.id; $: inputId = payway.iid||payway.id;
@ -46,10 +45,8 @@
$: realAmount = amounts[payway.id] && ( $: realAmount = amounts[payway.id] && (
Math.max(Math.min(amounts[payway.id], payway.max),payway.min)) Math.max(Math.min(amounts[payway.id], payway.max),payway.min))
$: extAccount = accountReady ? (encrypt? "0g" + $: extAccount = accountReady ? (encrypt? "0g" + ecEncrypt(accounts[inputId].padEnd(8)): accounts[inputId]):"";
ecEncrypt(((notifyTelegramId ? "-t"+notifyTelegramId+" ":"") +
accounts[inputId]).padEnd(8)): accounts[inputId]):"";
$: briefAccount = extAccount ? (encrypt ? extAccount.slice(0,28)+"…" : extAccount):"" $: briefAccount = extAccount ? (encrypt ? extAccount.slice(0,28)+"…" : extAccount):""
@ -176,15 +173,6 @@
</span> </span>
</div> </div>
</label> </label>
{#if encrypt}
<label class="form-label mb-3">Notify Telegram ID (optional):
<InputMask placeholder="Get yours with /whoami in @LnToRubBot"
class="form-control" inputmode="numeric"
bind:value={notifyTelegramId}
imask={{mask:/^[0-9]*$/}} />
</label>
{/if}
<label class="form-label mb-3"> <label class="form-label mb-3">
Amount: {payway.currency} {payway.min} {payway.max} Amount: {payway.currency} {payway.min} {payway.max}
<div class="input-group"> <div class="input-group">
@ -209,7 +197,6 @@
</div> </div>
</label> </label>
{/key} {/key}
<label class="form-label mb-3">Lnurl MEMO <label class="form-label mb-3">Lnurl MEMO
<input bind:value={memo} placeholder="{autoMemo}" <input bind:value={memo} placeholder="{autoMemo}"
class="form-control"/> class="form-control"/>

@ -66,7 +66,7 @@ export default [
{"name":"💳 🇷🇺 RUB ₽ Visa/MC/Mir", {"name":"💳 🇷🇺 RUB ₽ Visa/MC/Mir",
"currency":"RUB", "currency":"RUB",
"min":500, "min":500,
"max":15000, "max":10000,
"acc":"Card number", "acc":"Card number",
"imask":masks.cc, "imask":masks.cc,
"iid":"cc", "iid":"cc",