Repository navigation
Expand file tree
/
Copy pathmetadata.php
More file actions
167 lines (166 loc) · 6.23 KB
/
Copy pathmetadata.php
File metadata and controls
167 lines (166 loc) · 6.23 KB
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<?php
/**
* Metadata version
*/
$sMetadataVersion = '2.1';
/**
* Module information
*/
$aModule = [
'id' => 'unzer_payment',
'title' => 'Unzer Payment',
'description' => [
'de' => 'Bezahlung mit Unzer',
'en' => 'Payment with Unzer'
],
'thumbnail' => 'admin/unzer_payment.png',
'lang' => 'en',
'version' => '1.2.0',
'author' => 'Unzer GmbH',
'email' => 'info@unzer.com',
'url' => 'https://www.unzer.com/',
'extend' => [
\OxidEsales\Eshop\Application\Model\OrderArticle::class => \Unzer\UnzerPayment\Model\OrderArticle::class,
\OxidEsales\Eshop\Application\Model\BasketReservation::class => \Unzer\UnzerPayment\Model\BasketReservation::class,
\OxidEsales\Eshop\Application\Component\UserComponent::class => \Unzer\UnzerPayment\Component\UserComponent::class,
\OxidEsales\Eshop\Application\Model\PaymentGateway::class => \Unzer\UnzerPayment\Model\PaymentGateway::class,
\OxidEsales\Eshop\Application\Model\Payment::class => \Unzer\UnzerPayment\Model\Payment::class,
\OxidEsales\Eshop\Application\Model\Order::class => \Unzer\UnzerPayment\Model\Order::class,
\OxidEsales\Eshop\Core\ViewConfig::class => \Unzer\UnzerPayment\Core\ViewConfig::class,
\OxidEsales\Eshop\Application\Controller\Admin\ModuleConfiguration::class => \Unzer\UnzerPayment\Controller\Admin\ModuleConfiguration::class,
\OxidEsales\Eshop\Application\Controller\Admin\OrderList::class => \Unzer\UnzerPayment\Controller\Admin\OrderList::class,
\OxidEsales\Eshop\Application\Controller\OrderController::class => \Unzer\UnzerPayment\Controller\OrderController::class,
\OxidEsales\Eshop\Application\Controller\PaymentController::class => \Unzer\UnzerPayment\Controller\PaymentController::class,
\OxidEsales\Eshop\Application\Controller\ThankYouController::class => \Unzer\UnzerPayment\Controller\ThankYouController::class,
],
'controllers' => [
'unzer_payment_express' => \Unzer\UnzerPayment\Controller\ExpressController::class,
'unzer_payment_redirect' => \Unzer\UnzerPayment\Controller\RedirectController::class,
'unzer_payment_webhook' => \Unzer\UnzerPayment\Controller\WebhookController::class,
'unzer_payment_admin_order' => \Unzer\UnzerPayment\Controller\Admin\AdminOrderController::class,
],
'events' => [
'onActivate' => \Unzer\UnzerPayment\Core\Events::class . '::onActivate',
'onDeactivate' => \Unzer\UnzerPayment\Core\Events::class . '::onDeactivate',
],
'settings' => [
['group' => 'unzer_payment_main', 'name' => 'blUnzerPreCreateOrder', 'type' => 'bool', 'value' => false],
[
'group' => 'unzer_payment_main',
'name' => 'UnzerPaymentMode',
'type' => 'select',
'value' => '0',
'constraints' => '0|1'
],
[
'group' => 'unzer_payment_main',
'name' => 'UnzerPaymentPublicKey',
'type' => 'str',
'value' => ''
],
[
'group' => 'unzer_payment_main',
'name' => 'UnzerPaymentPrivateKey',
'type' => 'str',
'value' => ''
],
[
'group' => 'unzer_payment_main',
'name' => 'UnzerPaymentLogLevel',
'type' => 'select',
'value' => 'ERROR',
'constraints' => 'ERROR|WARNING|DEBUG'
],
[
'group' => 'unzer_payment_specific',
'name' => 'UnzerPaymentCardChargeMode',
'type' => 'select',
'value' => 'authorize|charge',
'constraints' => 'authorize|charge',
],
[
'group' => 'unzer_payment_specific',
'name' => 'UnzerPaymentApplepayChargeMode',
'type' => 'select',
'value' => 'authorize|charge',
'constraints' => 'authorize|charge',
],
[
'group' => 'unzer_payment_specific',
'name' => 'UnzerPaymentGooglepayChargeMode',
'type' => 'select',
'value' => 'authorize|charge',
'constraints' => 'authorize|charge',
],
[
'group' => 'unzer_payment_specific',
'name' => 'UnzerPaymentPaypalChargeMode',
'type' => 'select',
'value' => 'authorize|charge',
'constraints' => 'authorize|charge',
],
[
'group' => 'unzer_payment_specific',
'name' => 'UnzerPaymentApplepayExpressCheckout',
'type' => 'bool',
'value' => false
],
[
'group' => 'unzer_payment_specific',
'name' => 'UnzerPaymentPaypalExpressCheckout',
'type' => 'bool',
'value' => false
],
[
'group' => 'unzer_payment_specific',
'name' => 'UnzerPaymentGooglepayExpressCheckout',
'type' => 'bool',
'value' => false
],
[
'group' => 'unzer_payment_specific',
'name' => 'UnzerPaymentGooglepayMerchantId',
'type' => 'str',
'value' => ''
],
[
'group' => 'unzer_payment_specific',
'name' => 'UnzerPaymentGooglepayMerchantName',
'type' => 'str',
'value' => ''
],
/*
[
'group' => 'unzer_payment_specific',
'name' => 'UnzerPaymentWeroChargeMode',
'type' => 'select',
'value' => 'authorize|charge',
'constraints' => 'authorize|charge',
],
*/
[
'group' => 'unzer_payment_specific',
'name' => 'UnzerPaymentCOFCreditCard',
'type' => 'bool',
'value' => false
],
[
'group' => 'unzer_payment_specific',
'name' => 'UnzerPaymentCOFPaypal',
'type' => 'bool',
'value' => false
],
[
'group' => 'unzer_payment_specific',
'name' => 'UnzerPaymentCOFDirectDebit',
'type' => 'bool',
'value' => false
],
[
'group' => 'unzer_payment_specific',
'name' => 'UnzerPaymentClickToPay',
'type' => 'bool',
'value' => false
]
],
];