-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
128 lines (124 loc) · 5.28 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
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
<!DOCTYPE html>
<html>
<head>
<title>Angular 2 Payment BackOffice Plugin</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">
<!-- Polyfill(s) for older browsers -->
<script src="node_modules/core-js/client/shim.min.js"></script>
<script src="node_modules/zone.js/dist/zone.js"></script>
<script src="node_modules/reflect-metadata/Reflect.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>
<script src="systemjs.config.js"></script>
<script>
System.import('app')
.then(function (m) {
var options = {
'mockAJAX': true,
callDatePicker: function(){
console.log('call datepicker...');
},
callAfterInit: function () {
console.log('call after init add form');
},
makeCallbackOnDemand: function () {
console.log('callback');
},
'payer': "",
'chosen_online_system': "",
'chosen_payment_type': "bank",
'chosen_reg_service_id': "",
'chosen_price_type': "early_bird",
'payment_types': [
{key: 'bank', label: 'Bank transfer'},
{key: 'cash', label: 'Cash payment (on-site)'},
{key: 'online_dt', label: 'Credit card (DataTrans)'},
{key: 'online_pp', label: 'Credit card (PayPal)'}
],
'payment_date': "28.08.2017",
'reg_services_out': [
{id: 816, name: 'session 1'},
{id: 819, name: 'session 2'}
],
'is_invoice': "",
'show_form': true,
'show_download_invoice_btn': true,
'show_download_receipt_btn': "",
'show_edit_invoice_btn': true,
'show_reg_services': true,
'show_payment_types': true,
'show_price_types': true,
'show_transactions_form': true,
'get_invoice_url': "",
'create_invoice_url': "",
'cancel_invoice_url': "",
'download_invoice_url': "",
'download_receipt_url': "",
'save_form_url': "",
'save_transaction_url': "",
'view_step': "",
'transactions': [
{
amount: "10.00",
bank_details: null,
date: '05.10.2016',
details: {
error: null,
success: {
amount: "10:00",
bank: null,
cc_status: "success",
cc_transaction_id: "161005180517014765",
date: "05.10.2016",
payment_type: "Credit card"
}
},
invoice_number: "105120",
payment_type: "Credit card",
state: "completed"
},
{
amount: "15.00",
bank_details: null,
date: '08.10.2016',
details: {
error: {
code: '0100002',
message: 'Error message',
detail: 'Error details goes here...'
},
success: null
},
invoice_number: "105122",
payment_type: "Credit card",
state: "completed"
}
],
'invoices': [
{key: "4245", label: 105120}
],
'price_types': [
{key: 'super_early_bird', label: 'Super early bird'},
{key: 'early_bird', label: 'Early bird'},
{key: 'regular', label: 'Regular'},
{key: 'onsite', label: 'On site'}
],
'payer_notes': "",
'payment_completed': false,
'show_payment_completed': true,
'balance_due': "0.00 CHF",
'total_paid': "0.00 CHF",
'total_fee': "0.00 CHF"
};
m.RunApplication(options);
})
.catch(function (err) {
console.error(err);
});
</script>
</head>
<body>
<payment-backoffice-plugin>Loading...</payment-backoffice-plugin>
</body>
</html>