lnurl-pay.me/src/payways.js

250 lines
5.7 KiB
JavaScript
Raw Normal View History

2021-07-17 13:44:07 +03:00
const masks = {
cc: {
mask: "0000 0000 0000 0000"
},
telru: { mask: "{+}{7} 000 000-0000" },
telua: { mask: "{+}{3}{8} {\\0}00 000 0000"},
telng: { mask: "{+}{2}{3}{4} 000 000 0000"},
telgh: { mask: "{+}{2}{3}{3} 000 000 000"},
telza: { mask: "{+}{2}{7} 00 000 0000"},
2021-08-17 01:01:49 +03:00
telaf: { mask: "{+}{9}{3} 000 000 000"},
2021-07-17 13:44:07 +03:00
tel: {
mask: [
{
mask: '+00 {21} 0 000 0000',
startsWith: '30',
lazy: false,
country: 'Greece'
},
{
mask: '+0 000 000 0000',
// startsWith: '77',
lazy: false,
country: 'Kazakhstan'
},
{
mask: '+0 000 000-0000',
startsWith: '7',
// lazy: false,
country: 'Russia'
},
{
mask: "+00 000 000-0000",
startsWith: '380',
// lazy: false,
country: 'Ukraine'
},
{
mask: '+00-0000-000000',
startsWith: '91',
lazy: false,
country: 'India'
},
{
mask: '+0000000[000000000]',
startsWith: '',
country: 'unknown'
}
],
dispatch: function (appended, dynamicMasked) {
var number = (dynamicMasked.value + appended).replace(/\D/g,'');
return dynamicMasked.compiledMasks.find(function (m) {
return number.indexOf(m.startsWith) === 0;
});
}
}
}
const maskYoo = {
mask:[{mask: "00000000000000[0]",startsWith: '41001'},...masks.tel.mask],
dispatch: masks.tel.dispatch
}
export default [
{"name":"💳 🇷🇺 RUB ₽ Visa/MC/Mir",
"currency":"RUB",
"min":500,
2022-06-07 17:47:32 +03:00
"max":15000,
2021-07-17 13:44:07 +03:00
"acc":"Card number",
"imask":masks.cc,
"iid":"cc",
"autocomplete":"cc-number",
"id":"card",
"placeholder":"4111 1111 1111 1111",
},
{"name":"💳 🇺🇦 UAH ₴ Visa/MC",
"currency":"UAH",
"min":10,
2021-09-09 19:18:52 +03:00
"max":20000,
2021-07-17 13:44:07 +03:00
"imask":masks.cc,
"iid":"cc",
"acc":"Card number",
"autocomplete":"cc-number",
"id":"uacard",
"placeholder":"4111 1111 1111 1111",
},
{"name":"💳 🇰🇿 KZT ₸ Visa/MC",
"currency":"KZT",
2021-10-04 11:11:11 +03:00
"min":1000,
2021-07-17 13:44:07 +03:00
"max":50000,
"imask":masks.cc,
"acc":"Card number",
"iid":"cc",
"autocomplete":"cc-number",
"id":"kzcard",
"placeholder":"4111 1111 1111 1111",
},
{"name":"📱 🇷🇺 RUB ₽ Mobile top-up",
"currency":"RUB",
"min":10,
2021-07-17 13:44:07 +03:00
"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 ₽ YooMoney",
"currency":"RUB",
"min":0.01,
"max":10000,
"acc":"Wallet ID or mobile number",
"autocomplete":"tel",
"id":"yandex",
"imask":maskYoo,
"placeholder":"41001…",
},
{"name":"🚌 🇷🇺 RUB ₽ Strelka",
"currency":"RUB",
"min":10,
"max":2000,
"imask":{mask:"0000 0000 000"},
"acc":"Strelka card number",
"id":"strelka",
"placeholder":"0000 0000 000",
},
{"name":"🌐 🇷🇺 RUB ₽ Flex provider",
"currency":"RUB",
"min":20,
"max":2000,
"acc":"Flex account (NB! not user login)",
"id":"flex",
"imask":{mask:"0[0000000]"},
},
{"name":"🌐 🇷🇺 RUB ₽ Spaceweb.ru",
"currency":"RUB",
"min":10,
"max":2000,
"acc":"Login on sweb.ru",
"id":"spaceweb",
"inputmode":"text",
"imask":{mask:"a[xxxxxxxxxxxxxx]",
definitions:{'a':/[A-Za-z_]/,'x':/[A-Za-z0-9_,\.\-]/}},
},
2022-05-11 12:52:09 +03:00
{"name":"🌐 🇷🇺 RUB ₽ Jino.ru",
"currency":"RUB",
"min":250,
"max":10000,
"acc":"Login on jino.ru",
"placeholder":"my_login",
"id":"jino",
"inputmode":"text",
"imask":{mask:"a[xxxxxxxxxxxxxx]",
definitions:{'a':/[A-Za-z_]/,'x':/[A-Za-z0-9_,\.\-]/}},
},
{"name":"🚕 🇷🇺 RUB ₽ Taxi Maxim",
"currency":"RUB",
"min":10,
"max":2000,
"imask":{mask:"000[000000]"},
"acc":"Account number ",
"id":"maxim",
},
{"name":"📞 🇷🇺 RUB ₽ SipNet",
"currency":"RUB",
"min":10,
"max":2000,
"acc":"SIP ID",
"id":"sipnet",
"imask":{mask:"000[000000]"}
},
{"name":"⚡ 🇷🇺 RUB ₽ Mosenergosbyt (Moscow+MO)",
"currency":"RUB",
"min":1,
"max":15000,
"acc":"Account in Mosenergosbyt",
"id":"mosenergo",
2022-05-11 15:50:39 +03:00
"placeholder":"00000-000-00",
"imask":{mask:"00000-000-00"}
},
{"name":"📱 🇳🇬 NGN ₦ Mobile top-up",
"currency":"NGN",
"min":50,
"max":5000,
"imask":masks.telng,
"acc":"Phone number",
"autocomplete":"tel",
"inputmode":"tel",
"id":"ngmobile",
"placeholder":"+234 905 555 1234",
},
{"name":"📱 🇬🇭 GHS ₵ Mobile top-up",
"currency":"GHS",
"min":1,
"max":100,
"imask":masks.telgh,
"acc":"Phone number",
"autocomplete":"tel",
"inputmode":"tel",
"id":"ghmobile",
"placeholder":"+233 302 555 123",
},
{"name":"📱 🇿🇦 ZAR R Mobile top-up",
"currency":"ZAR",
"min":3,
"max":500,
"imask":masks.telza,
"acc":"Phone number",
"autocomplete":"tel",
"inputmode":"tel",
"id":"zamobile",
"placeholder":"+27 87 555 1234",
},
2021-08-17 01:01:49 +03:00
{"name":"📱 🇦🇫 AFN Mobile top-up",
"currency":"AFN",
"min":40,
"max":2000,
"imask":masks.telaf,
"acc":"Phone number",
"autocomplete":"tel",
"inputmode":"tel",
"id":"afmobile",
"placeholder":"+93 123 456 789",
},
2021-07-17 13:44:07 +03:00
]