-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (49 loc) · 1.75 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://mtf.gateway.mastercard.com/checkout/version/61/checkout.js"
data-error="errorCallback"
data-cancel="cancelCallback"
data-complete="completeCallback"></script>
<script type="text/javascript">
function errorCallback(error) {
android.onPaymentFailed(JSON.stringify(error));
}
function cancelCallback() {
android.onPaymentCancelled();
}
function completeCallback(resultIndicator, sessionVersion) {
android.onPaymentSuccessful(resultIndicator, sessionVersion);
}
Checkout.configure({
session: {
id: 'SESSION0002246280607E7483328H67'
},
merchant: 'MALAWIMRA',
order: {
amount: 1000.00,
currency: 'MWK',
description: 'Load Money to BCN',
id: '60004'
},
interaction: {
merchant: {
name: 'MALAWIMRA',
address: {
line1: 'Street 12',
line2: 'Malawi'
}
},
displayControl: {
billingAddress : 'HIDE',
customerEmail : 'HIDE',
orderSummary : 'SHOW',
shipping : 'HIDE'
}
}
});
</script>
</head>
<body>
</body>
</html>