This repository has been archived by the owner on Mar 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
pembayaran.html
132 lines (120 loc) · 3.85 KB
/
pembayaran.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
---
layout: payment-page
title: Pembayaran
value: payment
---
<div class="payment-point">
<ion-card>
<img src="/assets/images/qris_logo.jpg" />
<buttonQris>
<ion-item id="trigger-qris" class="ion-activated" style="cursor:pointer">
<ion-icon name="barcode-outline" slot="start"></ion-icon>
<ion-label>Scan Qris</ion-label>
<ion-icon name="chevron-forward-outline" slot="end"></ion-icon>
</ion-card>
<ion-card>
<img src="/assets/images/bank_transfer.jpg" />
</ion-item>
<buttonQris>
<buttonBank>
<ion-item id="trigger-transfer" class="ion-activated" style="cursor:pointer">
<ion-icon name="card-outline" slot="start"></ion-icon>
<ion-label>Transfer Bank</ion-label>
<ion-icon name="chevron-forward-outline" slot="end"></ion-icon>
</ion-item>
</buttonBank>
</ion-card>
</div>
<div class="chip">
<ion-chip color="success" onClick="wa_pay()"><ion-label>Kirim Bukti Pembayaran</ion-label></ion-chip>
</div>
<ion-modal trigger="trigger-qris" id="scQris">
<ion-header collapse="fade" translucent="true">
<ion-toolbar>
<ion-title>Scan Qris</ion-title>
<ion-buttons slot="end">
<ion-button onClick="dismissQris()">
<ion-icon slot="icon-only" name="close"></ion-icon>
</ion-button>
</ion-buttons>
</ion-toolbar>
</ion-header>
<ion-content>
<img src="/assets/images/qris.jpeg" />
</ion-content>
</ion-modal>
<ion-modal trigger="trigger-transfer" id="tfBank">
<ion-header collapse="fade" translucent="true">
<ion-toolbar>
<ion-title>Transfer Bank</ion-title>
<ion-buttons slot="end">
<ion-button onClick="dismissTbank()">
<ion-icon slot="icon-only" name="close"></ion-icon>
</ion-button>
</ion-buttons>
</ion-toolbar>
</ion-header>
<ion-content>
<ion-item>
<ion-label>Bank BRI</ion-label>
<input type="text" id="bri" value="000501121217502" style="border: none!important;background: transparent;" readonly>
<div class="input-group-append">
<span onclick="myBri()">
<i class="far fa-copy" style="font-size:25px;cursor:pointer;"></i></span>
</div>
</ion-item>
<ion-item >
<ion-label>Bank BTPN</ion-label>
<input type="text" id="btpn" value="903700011795" style="border: none!important;background: transparent;" readonly>
<div class="input-group-append">
<span onclick="myBtpn()">
<i class="far fa-copy" style="font-size:25px;cursor:pointer;"></i></span>
</div>
</ion-item>
</ion-content>
</ion-modal>
<script>
async function dismissQris() {
await cardModal.dismiss({
'dismissed': true
});
}
async function dismissTbank() {
await sheetModal.dismiss({
'dismissed': true
});
}
function wa_pay() {
location.replace('https://wa.me/6281386267897')
}
</script>
<script>
const Bank = document.querySelector('buttonBank');
Bank.addEventListener('click', handleButtonClick);
async function handleButtonClick() {
const alert = await alertController.create({
message: 'Kamu akan melakukan pembayaran melalui transfer BANK, silahkan Copy Paste nomor Rekening kami.',
buttons: ['Agree'],
});
await alert.present();
}
</script>
<script>
const Qris = document.querySelector('buttonQris');
Qris.addEventListener('click', handleButtonClick);
async function handleButtonClick() {
const alert = await alertController.create({
message: 'Silahkan Scan BarCode dengan aplikasi E-Wallet kamu, menerima pembayaran dari semua E-Wallet.',
buttons: ['Oke'],
});
await alert.present();
}
</script>
<script>
const sheetModal = document.querySelector('#tfBank');
const cardModal = document.querySelector('#scQris');
sheetModal.breakpoints = [0.1, 0.5, 1];
sheetModal.initialBreakpoint = 0.5;
cardModal.swipeToClose = true;
cardModal.presentingElement = document.querySelector('ion-app');
</script>