-
Notifications
You must be signed in to change notification settings - Fork 1
/
metadata.php
133 lines (129 loc) · 9.44 KB
/
metadata.php
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
<?php
/**
* Copyright © OXID eSales AG. All rights reserved.
* See LICENSE file for license details.
*/
/**
* Metadata version
*/
use OxidEsales\Eshop\Application\Model\PaymentGateway as OxPaymentGateway;
use OxidEsales\Eshop\Application\Model\Order as OxOrder;
use OxidEsales\Eshop\Application\Model\OrderArticle as OxOrderArticle;
use OxidEsales\Eshop\Application\Model\Payment as OxPayment;
use OxidEsales\Eshop\Application\Controller\Admin\ModuleConfiguration as OxModuleConfiguration;
use OxidEsales\Eshop\Application\Controller\Admin\ModuleMain as OxModuleMain;
use OxidEsales\Eshop\Application\Controller\Admin\PaymentMain as OxPaymentMain;
use OxidEsales\Eshop\Application\Controller\Admin\OrderMain as OxOrderMain;
use OxidEsales\Eshop\Application\Controller\Admin\OrderOverview as OxOrderOverView;
use OxidEsales\Eshop\Application\Controller\PaymentController as OxPaymentController;
use OxidEsales\Eshop\Application\Controller\OrderController as OxOrderController;
use OxidEsales\Eshop\Core\Email as OxEmail;
use OxidEsales\Eshop\Core\Session as OxSession;
use OxidSolutionCatalysts\Stripe\Application\Controller\StripeWebhook;
use OxidSolutionCatalysts\Stripe\Application\Controller\StripeFinishPayment;
use OxidSolutionCatalysts\Stripe\Application\Controller\Admin\OrderRefund;
use OxidSolutionCatalysts\Stripe\Application\Controller\Admin\StripeConnect;
use OxidSolutionCatalysts\Stripe\Core\Events;
use OxidSolutionCatalysts\Stripe\extend\Application\Model\PaymentGateway;
use OxidSolutionCatalysts\Stripe\extend\Application\Model\Order;
use OxidSolutionCatalysts\Stripe\extend\Application\Model\OrderArticle;
use OxidSolutionCatalysts\Stripe\extend\Application\Model\Payment;
use OxidSolutionCatalysts\Stripe\extend\Application\Controller\Admin\ModuleConfiguration;
use OxidSolutionCatalysts\Stripe\extend\Application\Controller\Admin\ModuleMain;
use OxidSolutionCatalysts\Stripe\extend\Application\Controller\Admin\PaymentMain;
use OxidSolutionCatalysts\Stripe\extend\Application\Controller\Admin\OrderMain;
use OxidSolutionCatalysts\Stripe\extend\Application\Controller\Admin\OrderOverview;
use OxidSolutionCatalysts\Stripe\extend\Application\Controller\PaymentController;
use OxidSolutionCatalysts\Stripe\extend\Application\Controller\OrderController;
use OxidSolutionCatalysts\Stripe\extend\Core\Email;
use OxidSolutionCatalysts\Stripe\extend\Core\Session;
$sMetadataVersion = '2.1';
/**
* Module information
*/
$aModule = [
'id' => 'stripe',
'title' => [
'de' => 'Stripe Payment',
'en' => 'Stripe Payment',
'fr' => 'Stripe Payment'
],
'description' => [
'de' => 'Dieses Modul integriert STRIPE als Zahlungsanbieter in Ihren OXID Shop.',
'en' => 'This module integrates STRIPE as payment provider in your OXID Shop.',
],
'thumbnail' => 'stripe_logo.png',
'version' => '1.0.7',
'author' => 'OXID eSales AG',
'url' => 'https://www.oxid-esales.com',
'email' => '[email protected]',
'extend' => [
OxPaymentGateway::class => PaymentGateway::class,
OxOrder::class => Order::class,
OxOrderArticle::class => OrderArticle::class,
OxPayment::class => Payment::class,
OxModuleConfiguration::class => ModuleConfiguration::class,
OxModuleMain::class => ModuleMain::class,
OxPaymentMain::class => PaymentMain::class,
OxOrderMain::class => OrderMain::class,
OxOrderOverView::class => OrderOverview::class,
OxPaymentController::class => PaymentController::class,
OxOrderController::class => OrderController::class,
OxEmail::class => Email::class,
OxSession::class => Session::class,
],
'controllers' => [
'StripeWebhook' => StripeWebhook::class,
'StripeFinishPayment' => StripeFinishPayment::class,
'stripe_order_refund' => OrderRefund::class,
'StripeConnect' => StripeConnect::class,
],
'templates' => [
'stripewebhook.tpl' => 'osc/stripe/Application/views/hook/tpl/stripewebhook.tpl',
'stripe_issuers.tpl' => 'osc/stripe/Application/views/frontend/tpl/stripe_issuers.tpl',
'stripeideal.tpl' => 'osc/stripe/Application/views/frontend/tpl/stripeideal.tpl',
'stripesofort.tpl' => 'osc/stripe/Application/views/frontend/tpl/stripesofort.tpl',
'stripeeps.tpl' => 'osc/stripe/Application/views/frontend/tpl/stripeeps.tpl',
'stripep24.tpl' => 'osc/stripe/Application/views/frontend/tpl/stripep24.tpl',
'stripecreditcard.tpl' => 'osc/stripe/Application/views/frontend/tpl/stripecreditcard.tpl',
'stripe_order_refund.tpl' => 'osc/stripe/Application/views/admin/tpl/stripe_order_refund.tpl',
'stripe_second_chance.tpl' => 'osc/stripe/Application/views/email/tpl/stripe_second_chance.tpl',
'stripe_module_main.tpl' => 'osc/stripe/Application/views/admin/tpl/stripe_module_main.tpl',
'stripe_connect.tpl' => 'osc/stripe/Application/views/admin/tpl/stripe_connect.tpl',
],
'events' => [
'onActivate' => Events::class.'::onActivate',
'onDeactivate' => Events::class.'::onDeactivate',
],
'blocks' => [
['template' => 'module_config.tpl', 'block' => 'admin_module_config_var', 'file' => 'stripe_module_config_var.tpl'],
['template' => 'module_config.tpl', 'block' => 'admin_module_config_form', 'file' => 'stripe_module_config_form.tpl'],
['template' => 'payment_main.tpl', 'block' => 'admin_payment_main_form', 'file' => 'stripe_admin_payment_main_form.tpl'],
['template' => 'page/checkout/inc/payment_other.tpl', 'block' => 'checkout_payment_longdesc', 'file' => 'stripe_checkout_payment_longdesc.tpl'],
['template' => 'page/checkout/payment.tpl', 'block' => 'select_payment', 'file' => 'stripe_select_payment.tpl'],
['template' => 'page/checkout/payment.tpl', 'block' => 'checkout_payment_errors', 'file' => 'stripe_checkout_payment_errors.tpl'],
],
'settings' => [
['group' => 'STRIPE_GENERAL', 'name' => 'sStripeMode', 'type' => 'select', 'value' => 'test', 'position' => 10, 'constraints' => 'live|test'],
['group' => 'STRIPE_GENERAL', 'name' => 'sStripeTestToken', 'type' => 'str', 'value' => '', 'position' => 20],
['group' => 'STRIPE_GENERAL', 'name' => 'sStripeTestPk', 'type' => 'str', 'value' => '', 'position' => 21],
['group' => 'STRIPE_GENERAL', 'name' => 'sStripeLiveToken', 'type' => 'str', 'value' => '', 'position' => 30],
['group' => 'STRIPE_GENERAL', 'name' => 'sStripeLivePk', 'type' => 'str', 'value' => '', 'position' => 31],
['group' => 'STRIPE_GENERAL', 'name' => 'sStripeTestKey', 'type' => 'str', 'value' => '', 'position' => 32],
['group' => 'STRIPE_GENERAL', 'name' => 'sStripeLiveKey', 'type' => 'str', 'value' => '', 'position' => 33],
['group' => 'STRIPE_GENERAL', 'name' => 'blStripeLogTransactionInfo', 'type' => 'bool', 'value' => '1', 'position' => 34],
['group' => 'STRIPE_GENERAL', 'name' => 'blStripeRemoveByBillingCountry', 'type' => 'bool', 'value' => '1', 'position' => 35],
['group' => 'STRIPE_GENERAL', 'name' => 'blStripeRemoveByBasketCurrency', 'type' => 'bool', 'value' => '1', 'position' => 36],
['group' => 'STRIPE_GENERAL', 'name' => 'blStripeProvideCustomerEmailAddress','type' => 'bool', 'value' => '0', 'position' => 37],
['group' => 'STRIPE_STATUS_MAPPING', 'name' => 'sStripeStatusPending', 'type' => 'select', 'value' => '', 'position' => 50],
['group' => 'STRIPE_STATUS_MAPPING', 'name' => 'sStripeStatusProcessing', 'type' => 'select', 'value' => '', 'position' => 60],
['group' => 'STRIPE_STATUS_MAPPING', 'name' => 'sStripeStatusCancelled', 'type' => 'select', 'value' => '', 'position' => 70],
['group' => 'STRIPE_CRONJOBS', 'name' => 'sStripeCronFinishOrdersActive', 'type' => 'bool', 'value' => '0', 'position' => 80],
['group' => 'STRIPE_CRONJOBS', 'name' => 'sStripeCronSecondChanceActive', 'type' => 'bool', 'value' => '0', 'position' => 90],
['group' => 'STRIPE_CRONJOBS', 'name' => 'iStripeCronSecondChanceTimeDiff', 'type' => 'select', 'value' => '1', 'position' => 100],
['group' => 'STRIPE_CRONJOBS', 'name' => 'sStripeCronOrderShipmentActive', 'type' => 'bool', 'value' => '0', 'position' => 110],
['group' => 'STRIPE_CRONJOBS', 'name' => 'sStripeCronSecureKey', 'type' => 'str', 'value' => '', 'position' => 120],
['group' => 'STRIPE_WEBHOOKS', 'name' => 'sStripeWebhookEndpoint', 'type' => 'str', 'value' => '', 'position' => 130],
['group' => 'STRIPE_WEBHOOKS', 'name' => 'sStripeWebhookEndpointSecret', 'type' => 'str', 'value' => '', 'position' => 140],
]
];