-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
40 lines (40 loc) · 2.13 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<title>Hello World!</title>
<script>
function card() {
window.location.href="https://petrovich.ru?orderId=transaction-id-1234&lang=ru";
}
function sberpay() {
window.location.replace("sberpay://transaction-id-1234");
}
function confirmation() {
window.location.replace("https://petrovich.ru/pay/result/87643840-4532-4625-a549-514694924ee1/?orderId=3e1483c1-462f-7892-a872-478600002d8e&lang=ru")
}
function orderHref() {
window.location.href = "petrovich://mshurkin.github.io/order/38092ed4-9421-419f-8cad-87b2919efa56/72e29f6167604da10d28ad61ec0afa88/"
}
function orderReplace() {
window.location.replace("petrovich://mshurkin.github.io/order/38092ed4-9421-419f-8cad-87b2919efa56/72e29f6167604da10d28ad61ec0afa88/")
}
function orderReplaceHttps() {
window.location.replace("https://mshurkin.github.io/order/38092ed4-9421-419f-8cad-87b2919efa56/72e29f6167604da10d28ad61ec0afa88/")
}
function orderOriginal() {
window.location.replace("petrovich://petrovich.ru/order/38092ed4-9421-419f-8cad-87b2919efa56/72e29f6167604da10d28ad61ec0afa88/")
}
</script>
</head>
<body>
<p>SberPay test</p>
<input type="button" value="Оплата по карте" onclick="card()">
<input type="button" value="SberPay" onclick="sberpay()">
<input type="button" value="Подтверждение" onclick="confirmation()">
<input type="button" value="К заказу (href)" onclick="orderHref()">
<input type="button" value="К заказу (replace)" onclick="orderReplace()">
<input type="button" value="К заказу (https)" onclick="orderReplaceHttps()">
<input type="button" value="К заказу (оригинальная ссылка)" onclick="orderOriginal()">
</body>
</html>