Compare commits
14
Commits
60cc226d55
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d15592c9de | ||
|
|
f5e12d1ded | ||
|
|
1262d8a42c | ||
|
|
ee7210ca56 | ||
|
|
5f92eb21e2 | ||
|
|
24935ad1ab | ||
|
|
f84f4392c6 | ||
|
|
a6299c950f | ||
|
|
e66c7f1700 | ||
|
|
50991b651a | ||
|
|
d7705f9ca7 | ||
|
|
2a908b00fd | ||
|
|
77880f9bf8 | ||
|
|
e554161864 |
No files matched your search
+17
-4
@@ -8,7 +8,7 @@
|
||||
import InputMask from './InputMask.svelte';
|
||||
|
||||
import payways from './payways.js';
|
||||
|
||||
|
||||
import QR from './QR.svelte';
|
||||
|
||||
import CTC from './CTC.svelte';
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
import PayFlow from './PayFlow.svelte';
|
||||
import { ecEncrypt } from './ecies.js';
|
||||
|
||||
|
||||
let payway = payways[0];
|
||||
|
||||
setTimeout(()=>{
|
||||
@@ -32,6 +32,7 @@
|
||||
let realAmount;
|
||||
let extAccount;
|
||||
let briefAccount;
|
||||
let notifyTelegramId;
|
||||
let encrypt = false;
|
||||
|
||||
$: inputId = payway.iid||payway.id;
|
||||
@@ -45,8 +46,10 @@
|
||||
|
||||
$: realAmount = amounts[payway.id] && (
|
||||
Math.max(Math.min(amounts[payway.id], payway.max),payway.min))
|
||||
|
||||
$: extAccount = accountReady ? (encrypt? "0g" + ecEncrypt(accounts[inputId].padEnd(8)): accounts[inputId]):"";
|
||||
|
||||
$: extAccount = accountReady ? (encrypt? "0g" +
|
||||
ecEncrypt(((notifyTelegramId ? "-t"+notifyTelegramId+" ":"") +
|
||||
accounts[inputId]).padEnd(8)): accounts[inputId]):"";
|
||||
|
||||
$: briefAccount = extAccount ? (encrypt ? extAccount.slice(0,28)+"…" : extAccount):""
|
||||
|
||||
@@ -173,6 +176,15 @@
|
||||
</span>
|
||||
</div>
|
||||
</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">
|
||||
Amount: {payway.currency} {payway.min} – {payway.max}
|
||||
<div class="input-group">
|
||||
@@ -197,6 +209,7 @@
|
||||
</div>
|
||||
</label>
|
||||
{/key}
|
||||
|
||||
<label class="form-label mb-3">Lnurl MEMO
|
||||
<input bind:value={memo} placeholder="{autoMemo}"
|
||||
class="form-control"/>
|
||||
|
||||
+52
-50
@@ -65,8 +65,8 @@ const maskYoo = {
|
||||
export default [
|
||||
{"name":"💳 🇷🇺 RUB ₽ Visa/MC/Mir",
|
||||
"currency":"RUB",
|
||||
"min":500,
|
||||
"max":10000,
|
||||
"min":2000,
|
||||
"max":20000,
|
||||
"acc":"Card number",
|
||||
"imask":masks.cc,
|
||||
"iid":"cc",
|
||||
@@ -74,21 +74,21 @@ export default [
|
||||
"id":"card",
|
||||
"placeholder":"4111 1111 1111 1111",
|
||||
},
|
||||
{"name":"💳 🇺🇦 UAH ₴ Visa/MC",
|
||||
"currency":"UAH",
|
||||
"min":10,
|
||||
"max":20000,
|
||||
"imask":masks.cc,
|
||||
"iid":"cc",
|
||||
"acc":"Card number",
|
||||
"autocomplete":"cc-number",
|
||||
"id":"uacard",
|
||||
"placeholder":"4111 1111 1111 1111",
|
||||
},
|
||||
// {"name":"💳 🇺🇦 UAH ₴ Visa/MC",
|
||||
// "currency":"UAH",
|
||||
// "min":10,
|
||||
// "max":4999,
|
||||
// "imask":masks.cc,
|
||||
// "iid":"cc",
|
||||
// "acc":"Card number",
|
||||
// "autocomplete":"cc-number",
|
||||
// "id":"uacard",
|
||||
// "placeholder":"4111 1111 1111 1111",
|
||||
// },
|
||||
{"name":"💳 🇰🇿 KZT ₸ Visa/MC",
|
||||
"currency":"KZT",
|
||||
"min":1000,
|
||||
"max":50000,
|
||||
"min":2000,
|
||||
"max":45000,
|
||||
"imask":masks.cc,
|
||||
"acc":"Card number",
|
||||
"iid":"cc",
|
||||
@@ -96,39 +96,40 @@ export default [
|
||||
"id":"kzcard",
|
||||
"placeholder":"4111 1111 1111 1111",
|
||||
},
|
||||
{"name":"📱 🇷🇺 RUB ₽ Mobile top-up",
|
||||
"currency":"RUB",
|
||||
"min":10,
|
||||
"max":2000,
|
||||
"imask":masks.telru,
|
||||
"acc":"Phone number",
|
||||
"autocomplete":"tel",
|
||||
"inputmode":"tel",
|
||||
"id":"mobile",
|
||||
"placeholder":"+7 955 555-1234",
|
||||
},
|
||||
{"name":"📱 🇺🇦 UAH ₴ Mobile top-up",
|
||||
"currency":"UAH",
|
||||
"min":1,
|
||||
"max":500,
|
||||
"imask":masks.telua,
|
||||
"acc":"Phone number",
|
||||
"autocomplete":"tel",
|
||||
"inputmode":"tel",
|
||||
"id":"uamobile",
|
||||
"placeholder":"+38 055 555 1234",
|
||||
},
|
||||
{"name":"👛 🇷🇺 RUB ₽ Qiwi",
|
||||
"imask": masks.tel,
|
||||
"currency":"RUB",
|
||||
"min":1,
|
||||
"max":10000,
|
||||
"acc":"Wallet (Phone number)",
|
||||
"autocomplete":"tel",
|
||||
"inputmode":"tel",
|
||||
"id":"qiwi",
|
||||
"placeholder":"+7 955 555-1234",
|
||||
},
|
||||
// {"name":"📱 🇷🇺 RUB ₽ Mobile top-up",
|
||||
// "currency":"RUB",
|
||||
// "min":20,
|
||||
// "max":2000,
|
||||
// "imask":masks.telru,
|
||||
// "acc":"Phone number",
|
||||
// "autocomplete":"tel",
|
||||
// "inputmode":"tel",
|
||||
// "id":"mobile",
|
||||
// "placeholder":"+7 955 555-1234",
|
||||
// },
|
||||
// {"name":"📱 🇺🇦 UAH ₴ Mobile top-up",
|
||||
// "currency":"UAH",
|
||||
// "min":1,
|
||||
// "max":500,
|
||||
// "imask":masks.telua,
|
||||
// "acc":"Phone number",
|
||||
// "autocomplete":"tel",
|
||||
// "inputmode":"tel",
|
||||
// "id":"uamobile",
|
||||
// "placeholder":"+38 055 555 1234",
|
||||
// },
|
||||
// {"name":"👛 🇷🇺 RUB ₽ Qiwi",
|
||||
// "imask": masks.tel,
|
||||
// "currency":"RUB",
|
||||
// "min":1000,
|
||||
// "max":10000,
|
||||
// "acc":"Wallet (Phone number)",
|
||||
// "autocomplete":"tel",
|
||||
// "inputmode":"tel",
|
||||
// "id":"qiwi",
|
||||
// "placeholder":"+7 955 555-1234",
|
||||
// },
|
||||
/*
|
||||
{"name":"👛 🇷🇺 RUB ₽ YooMoney",
|
||||
"currency":"RUB",
|
||||
"min":0.01,
|
||||
@@ -202,7 +203,8 @@ export default [
|
||||
"placeholder":"00000-000-00",
|
||||
"imask":{mask:"00000-000-00"}
|
||||
},
|
||||
{"name":"📱 🇳🇬 NGN ₦ Mobile top-up",
|
||||
*/
|
||||
/* {"name":"📱 🇳🇬 NGN ₦ Mobile top-up",
|
||||
"currency":"NGN",
|
||||
"min":50,
|
||||
"max":5000,
|
||||
@@ -245,5 +247,5 @@ export default [
|
||||
"inputmode":"tel",
|
||||
"id":"afmobile",
|
||||
"placeholder":"+93 123 456 789",
|
||||
},
|
||||
}, */
|
||||
]
|
||||
Reference in new issue
Block a user