strapi-plugin-payone-provider 5.7.26 → 5.8.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1191 -1191
- package/admin/src/components/Initializer/index.jsx +16 -16
- package/admin/src/components/PluginIcon/index.jsx +17 -17
- package/admin/src/index.js +57 -57
- package/admin/src/pages/App/components/AppHeader.jsx +45 -45
- package/admin/src/pages/App/components/AppTabs.jsx +105 -105
- package/admin/src/pages/App/components/ApplePayBtn.jsx +355 -355
- package/admin/src/pages/App/components/ApplePayConfig.jsx +357 -357
- package/admin/src/pages/App/components/DocsPanel.jsx +53 -53
- package/admin/src/pages/App/components/RenderInput.jsx +78 -78
- package/admin/src/pages/App/components/StatusBadge.jsx +87 -87
- package/admin/src/pages/App/components/icons/BankIcon.jsx +10 -10
- package/admin/src/pages/App/components/icons/ChevronDownIcon.jsx +9 -9
- package/admin/src/pages/App/components/icons/ChevronUpIcon.jsx +9 -9
- package/admin/src/pages/App/components/icons/CreditCardIcon.jsx +9 -9
- package/admin/src/pages/App/components/icons/ErrorIcon.jsx +10 -10
- package/admin/src/pages/App/components/icons/InfoIcon.jsx +9 -9
- package/admin/src/pages/App/components/icons/MarkCircle.jsx +19 -19
- package/admin/src/pages/App/components/icons/PaymentIcon.jsx +10 -10
- package/admin/src/pages/App/components/icons/PendingIcon.jsx +9 -9
- package/admin/src/pages/App/components/icons/PersonIcon.jsx +9 -9
- package/admin/src/pages/App/components/icons/SuccessIcon.jsx +9 -9
- package/admin/src/pages/App/components/icons/WalletIcon.jsx +9 -9
- package/admin/src/pages/App/components/icons/index.jsx +12 -12
- package/admin/src/pages/App/components/payment-actions/AuthorizationForm.jsx +334 -334
- package/admin/src/pages/App/components/payment-actions/CaptureForm.jsx +120 -120
- package/admin/src/pages/App/components/payment-actions/PaymentActionsPanel.jsx +183 -183
- package/admin/src/pages/App/components/payment-actions/PaymentMethodSelector.jsx +315 -315
- package/admin/src/pages/App/components/payment-actions/PaymentResult.jsx +129 -129
- package/admin/src/pages/App/components/payment-actions/PreauthorizationForm.jsx +273 -273
- package/admin/src/pages/App/components/payment-actions/RefundForm.jsx +114 -114
- package/admin/src/pages/App/components/transaction-history/ImportExportBar.jsx +153 -153
- package/admin/src/pages/App/components/transaction-history/details/TransactionHistoryItem.jsx +526 -526
- package/admin/src/pages/App/index.jsx +96 -96
- package/admin/src/pages/App/styles.css +176 -176
- package/admin/src/pages/constants/paymentConstants.js +71 -71
- package/admin/src/pages/hooks/use-system-theme.js +27 -27
- package/admin/src/pages/hooks/usePaymentActions.js +498 -498
- package/admin/src/pages/hooks/usePluginTranslations.js +12 -12
- package/admin/src/pages/hooks/useSettings.js +183 -183
- package/admin/src/pages/hooks/useTransactionHistory.js +148 -148
- package/admin/src/pages/utils/api.js +97 -97
- package/admin/src/pages/utils/applePayConstants.js +196 -196
- package/admin/src/pages/utils/formatTransactionData.js +15 -15
- package/admin/src/pages/utils/getInputComponent.jsx +200 -200
- package/admin/src/pages/utils/paymentUtils.js +661 -661
- package/admin/src/pages/utils/tooltipHelpers.js +18 -18
- package/admin/src/pages/utils/transactionTableUtils.js +71 -71
- package/admin/src/pluginId.js +9 -9
- package/admin/src/translations/de.json +235 -235
- package/admin/src/translations/en.json +235 -235
- package/admin/src/translations/fr.json +235 -235
- package/admin/src/translations/ru.json +235 -235
- package/admin/src/utils/prefixPluginTranslations.js +13 -13
- package/package.json +45 -45
- package/server/bootstrap.js +107 -107
- package/server/config/index.js +83 -83
- package/server/content-types/index.js +4 -4
- package/server/content-types/transactions/index.js +4 -4
- package/server/content-types/transactions/schema.json +86 -86
- package/server/controllers/index.js +7 -7
- package/server/controllers/payone.js +503 -506
- package/server/destroy.js +5 -5
- package/server/index.js +23 -23
- package/server/policies/index.js +7 -7
- package/server/policies/is-auth.js +29 -29
- package/server/policies/isSuperAdmin.js +20 -20
- package/server/register.js +5 -5
- package/server/routes/index.js +218 -218
- package/server/services/applePayService.js +295 -295
- package/server/services/index.js +9 -9
- package/server/services/paymentService.js +264 -223
- package/server/services/payone.js +78 -78
- package/server/services/settingsService.js +59 -59
- package/server/services/testConnectionService.js +115 -115
- package/server/services/transactionService.js +262 -262
- package/server/utils/csvTransactions.js +82 -82
- package/server/utils/normalize.js +39 -39
- package/server/utils/paymentMethodParams.js +288 -288
- package/server/utils/requestBuilder.js +115 -100
- package/server/utils/responseParser.js +141 -141
- package/strapi-admin.js +4 -4
- package/strapi-server.js +3 -3
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Box } from "@strapi/design-system";
|
|
3
|
-
import { Layouts } from "@strapi/strapi/admin";
|
|
4
|
-
import useSettings from "../hooks/useSettings";
|
|
5
|
-
import usePaymentActions from "../hooks/usePaymentActions";
|
|
6
|
-
import AppHeader from "./components/AppHeader";
|
|
7
|
-
import AppTabs from "./components/AppTabs";
|
|
8
|
-
import ApplePayConfigPanel from "./components/ApplePayConfigPanel";
|
|
9
|
-
import GooglePayConfigPanel from "./components/GooglePayConfigPanel";
|
|
10
|
-
import "./styles.css";
|
|
11
|
-
|
|
12
|
-
const App = () => {
|
|
13
|
-
const [activeTab, setActiveTab] = React.useState(1);
|
|
14
|
-
const [currentView, setCurrentView] = React.useState("main");
|
|
15
|
-
const settings = useSettings();
|
|
16
|
-
const paymentActions = usePaymentActions();
|
|
17
|
-
|
|
18
|
-
const handleNavigate = (view) => {
|
|
19
|
-
setCurrentView(view);
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
const isApplePayConfigPage = currentView === "apple-pay-config";
|
|
23
|
-
const isGooglePayConfigPage = currentView === "google-pay-config";
|
|
24
|
-
|
|
25
|
-
if (isApplePayConfigPage) {
|
|
26
|
-
return (
|
|
27
|
-
<Layouts.Root className="payone-provider-root">
|
|
28
|
-
<AppHeader
|
|
29
|
-
title="Apple Pay Configuration"
|
|
30
|
-
activeTab={null}
|
|
31
|
-
isSaving={settings.isSaving}
|
|
32
|
-
onSave={settings.handleSave}
|
|
33
|
-
onBack={() => handleNavigate("main")}
|
|
34
|
-
/>
|
|
35
|
-
<Layouts.Content>
|
|
36
|
-
<Box padding={6}>
|
|
37
|
-
<ApplePayConfigPanel
|
|
38
|
-
settings={settings.settings}
|
|
39
|
-
onInputChange={settings.handleInputChange}
|
|
40
|
-
isSaving={settings.isSaving}
|
|
41
|
-
onSave={settings.handleSave}
|
|
42
|
-
/>
|
|
43
|
-
</Box>
|
|
44
|
-
</Layouts.Content>
|
|
45
|
-
</Layouts.Root>
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
if (isGooglePayConfigPage) {
|
|
50
|
-
return (
|
|
51
|
-
<Layouts.Root className="payone-provider-root">
|
|
52
|
-
<AppHeader
|
|
53
|
-
title="Google Pay Configuration"
|
|
54
|
-
activeTab={null}
|
|
55
|
-
isSaving={settings.isSaving}
|
|
56
|
-
onSave={settings.handleSave}
|
|
57
|
-
onBack={() => handleNavigate("main")}
|
|
58
|
-
/>
|
|
59
|
-
<Layouts.Content>
|
|
60
|
-
<Box padding={6}>
|
|
61
|
-
<GooglePayConfigPanel
|
|
62
|
-
settings={settings.settings}
|
|
63
|
-
onInputChange={settings.handleInputChange}
|
|
64
|
-
isSaving={settings.isSaving}
|
|
65
|
-
onSave={settings.handleSave}
|
|
66
|
-
onBack={() => handleNavigate("main")}
|
|
67
|
-
/>
|
|
68
|
-
</Box>
|
|
69
|
-
</Layouts.Content>
|
|
70
|
-
</Layouts.Root>
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
return (
|
|
75
|
-
<Layouts.Root className="payone-provider-root">
|
|
76
|
-
<AppHeader
|
|
77
|
-
activeTab={activeTab}
|
|
78
|
-
isSaving={settings.isSaving}
|
|
79
|
-
onSave={settings.handleSave}
|
|
80
|
-
/>
|
|
81
|
-
<Layouts.Content>
|
|
82
|
-
<Box padding={6}>
|
|
83
|
-
<AppTabs
|
|
84
|
-
activeTab={activeTab}
|
|
85
|
-
setActiveTab={setActiveTab}
|
|
86
|
-
onNavigateToConfig={handleNavigate}
|
|
87
|
-
settings={settings}
|
|
88
|
-
paymentActions={paymentActions}
|
|
89
|
-
/>
|
|
90
|
-
</Box>
|
|
91
|
-
</Layouts.Content>
|
|
92
|
-
</Layouts.Root>
|
|
93
|
-
);
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
export default App;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Box } from "@strapi/design-system";
|
|
3
|
+
import { Layouts } from "@strapi/strapi/admin";
|
|
4
|
+
import useSettings from "../hooks/useSettings";
|
|
5
|
+
import usePaymentActions from "../hooks/usePaymentActions";
|
|
6
|
+
import AppHeader from "./components/AppHeader";
|
|
7
|
+
import AppTabs from "./components/AppTabs";
|
|
8
|
+
import ApplePayConfigPanel from "./components/ApplePayConfigPanel";
|
|
9
|
+
import GooglePayConfigPanel from "./components/GooglePayConfigPanel";
|
|
10
|
+
import "./styles.css";
|
|
11
|
+
|
|
12
|
+
const App = () => {
|
|
13
|
+
const [activeTab, setActiveTab] = React.useState(1);
|
|
14
|
+
const [currentView, setCurrentView] = React.useState("main");
|
|
15
|
+
const settings = useSettings();
|
|
16
|
+
const paymentActions = usePaymentActions();
|
|
17
|
+
|
|
18
|
+
const handleNavigate = (view) => {
|
|
19
|
+
setCurrentView(view);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const isApplePayConfigPage = currentView === "apple-pay-config";
|
|
23
|
+
const isGooglePayConfigPage = currentView === "google-pay-config";
|
|
24
|
+
|
|
25
|
+
if (isApplePayConfigPage) {
|
|
26
|
+
return (
|
|
27
|
+
<Layouts.Root className="payone-provider-root">
|
|
28
|
+
<AppHeader
|
|
29
|
+
title="Apple Pay Configuration"
|
|
30
|
+
activeTab={null}
|
|
31
|
+
isSaving={settings.isSaving}
|
|
32
|
+
onSave={settings.handleSave}
|
|
33
|
+
onBack={() => handleNavigate("main")}
|
|
34
|
+
/>
|
|
35
|
+
<Layouts.Content>
|
|
36
|
+
<Box padding={6}>
|
|
37
|
+
<ApplePayConfigPanel
|
|
38
|
+
settings={settings.settings}
|
|
39
|
+
onInputChange={settings.handleInputChange}
|
|
40
|
+
isSaving={settings.isSaving}
|
|
41
|
+
onSave={settings.handleSave}
|
|
42
|
+
/>
|
|
43
|
+
</Box>
|
|
44
|
+
</Layouts.Content>
|
|
45
|
+
</Layouts.Root>
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (isGooglePayConfigPage) {
|
|
50
|
+
return (
|
|
51
|
+
<Layouts.Root className="payone-provider-root">
|
|
52
|
+
<AppHeader
|
|
53
|
+
title="Google Pay Configuration"
|
|
54
|
+
activeTab={null}
|
|
55
|
+
isSaving={settings.isSaving}
|
|
56
|
+
onSave={settings.handleSave}
|
|
57
|
+
onBack={() => handleNavigate("main")}
|
|
58
|
+
/>
|
|
59
|
+
<Layouts.Content>
|
|
60
|
+
<Box padding={6}>
|
|
61
|
+
<GooglePayConfigPanel
|
|
62
|
+
settings={settings.settings}
|
|
63
|
+
onInputChange={settings.handleInputChange}
|
|
64
|
+
isSaving={settings.isSaving}
|
|
65
|
+
onSave={settings.handleSave}
|
|
66
|
+
onBack={() => handleNavigate("main")}
|
|
67
|
+
/>
|
|
68
|
+
</Box>
|
|
69
|
+
</Layouts.Content>
|
|
70
|
+
</Layouts.Root>
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return (
|
|
75
|
+
<Layouts.Root className="payone-provider-root">
|
|
76
|
+
<AppHeader
|
|
77
|
+
activeTab={activeTab}
|
|
78
|
+
isSaving={settings.isSaving}
|
|
79
|
+
onSave={settings.handleSave}
|
|
80
|
+
/>
|
|
81
|
+
<Layouts.Content>
|
|
82
|
+
<Box padding={6}>
|
|
83
|
+
<AppTabs
|
|
84
|
+
activeTab={activeTab}
|
|
85
|
+
setActiveTab={setActiveTab}
|
|
86
|
+
onNavigateToConfig={handleNavigate}
|
|
87
|
+
settings={settings}
|
|
88
|
+
paymentActions={paymentActions}
|
|
89
|
+
/>
|
|
90
|
+
</Box>
|
|
91
|
+
</Layouts.Content>
|
|
92
|
+
</Layouts.Root>
|
|
93
|
+
);
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export default App;
|
|
@@ -1,176 +1,176 @@
|
|
|
1
|
-
.payone-provider-root [data-state="inactive"],
|
|
2
|
-
.payone-provider-root [data-state="active"] {
|
|
3
|
-
background: transparent !important;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
/* ===== Global Animations ===== */
|
|
7
|
-
@keyframes fadeIn {
|
|
8
|
-
from {
|
|
9
|
-
opacity: 0;
|
|
10
|
-
transform: translateY(8px);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
to {
|
|
14
|
-
opacity: 1;
|
|
15
|
-
transform: translateY(0);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@keyframes slideIn {
|
|
20
|
-
from {
|
|
21
|
-
opacity: 0;
|
|
22
|
-
transform: translateX(-12px);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
to {
|
|
26
|
-
opacity: 1;
|
|
27
|
-
transform: translateX(0);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@keyframes pulse {
|
|
32
|
-
0%,
|
|
33
|
-
100% {
|
|
34
|
-
opacity: 1;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
50% {
|
|
38
|
-
opacity: 0.7;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@keyframes shimmer {
|
|
43
|
-
0% {
|
|
44
|
-
background-position: -1000px 0;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
100% {
|
|
48
|
-
background-position: 1000px 0;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/* Tab Button Base Styles */
|
|
53
|
-
.payone-provider-root button[role="tab"] {
|
|
54
|
-
box-shadow: none !important;
|
|
55
|
-
border: none !important;
|
|
56
|
-
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
|
|
57
|
-
position: relative;
|
|
58
|
-
background: transparent !important;
|
|
59
|
-
outline: none !important;
|
|
60
|
-
transform: scale(1) !important;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.payone-provider-root button[role="tab"]:active {
|
|
64
|
-
transform: scale(1) !important;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/* Remove shake animation */
|
|
68
|
-
.payone-provider-root button[role="tab"]:focus,
|
|
69
|
-
.payone-provider-root button[role="tab"]:focus-visible {
|
|
70
|
-
outline: none !important;
|
|
71
|
-
box-shadow: none !important;
|
|
72
|
-
transform: none !important;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.payone-provider-root button[role="tab"][data-state="active"] {
|
|
76
|
-
background: linear-gradient(
|
|
77
|
-
180deg,
|
|
78
|
-
rgba(73, 69, 255, 0.05) 0%,
|
|
79
|
-
transparent 100%
|
|
80
|
-
) !important;
|
|
81
|
-
color: #4945ff !important;
|
|
82
|
-
font-weight: 600 !important;
|
|
83
|
-
box-shadow: none !important;
|
|
84
|
-
border: none !important;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.payone-provider-root button[role="tab"][data-state="inactive"] {
|
|
88
|
-
background: transparent !important;
|
|
89
|
-
color: #6b7280 !important;
|
|
90
|
-
box-shadow: none !important;
|
|
91
|
-
border: none !important;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.payone-provider-root button[role="tab"][data-state="inactive"]::after {
|
|
95
|
-
background: transparent;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.payone-provider-root button[role="tab"][data-state="inactive"]:hover {
|
|
99
|
-
background: linear-gradient(
|
|
100
|
-
180deg,
|
|
101
|
-
rgba(73, 69, 255, 0.02) 0%,
|
|
102
|
-
transparent 100%
|
|
103
|
-
) !important;
|
|
104
|
-
box-shadow: none !important;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/* Border animation */
|
|
108
|
-
@keyframes borderSlideIn {
|
|
109
|
-
0% {
|
|
110
|
-
transform: scaleX(0);
|
|
111
|
-
opacity: 0;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
100% {
|
|
115
|
-
transform: scaleX(1);
|
|
116
|
-
opacity: 1;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/* ===== Form Section Styles ===== */
|
|
121
|
-
.payment-form-section {
|
|
122
|
-
animation: fadeIn 0.5s ease-out;
|
|
123
|
-
padding: 24px;
|
|
124
|
-
margin-bottom: 20px;
|
|
125
|
-
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.payment-form-section:hover {
|
|
129
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.payment-form-title {
|
|
133
|
-
font-size: 14px;
|
|
134
|
-
font-weight: 600;
|
|
135
|
-
margin-bottom: 8px;
|
|
136
|
-
letter-spacing: -0.01em;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.payment-form-description {
|
|
140
|
-
font-size: 13px;
|
|
141
|
-
line-height: 1.5;
|
|
142
|
-
margin-top: 8px;
|
|
143
|
-
margin-bottom: 20px;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/* ===== Divider Styles ===== */
|
|
147
|
-
.payment-divider {
|
|
148
|
-
border: none;
|
|
149
|
-
height: 1px;
|
|
150
|
-
background: linear-gradient(
|
|
151
|
-
90deg,
|
|
152
|
-
transparent 0%,
|
|
153
|
-
#e8e8ea 20%,
|
|
154
|
-
#e8e8ea 80%,
|
|
155
|
-
transparent 100%
|
|
156
|
-
);
|
|
157
|
-
margin: 32px 0;
|
|
158
|
-
animation: fadeIn 0.4s ease-out;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/* ===== Responsive ===== */
|
|
162
|
-
@media (max-width: 768px) {
|
|
163
|
-
.payment-container {
|
|
164
|
-
border-radius: 12px;
|
|
165
|
-
padding: 16px;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.payment-form-section {
|
|
169
|
-
padding: 16px;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.payment-grid-2,
|
|
173
|
-
.payment-grid-3 {
|
|
174
|
-
grid-template-columns: 1fr;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
1
|
+
.payone-provider-root [data-state="inactive"],
|
|
2
|
+
.payone-provider-root [data-state="active"] {
|
|
3
|
+
background: transparent !important;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/* ===== Global Animations ===== */
|
|
7
|
+
@keyframes fadeIn {
|
|
8
|
+
from {
|
|
9
|
+
opacity: 0;
|
|
10
|
+
transform: translateY(8px);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
to {
|
|
14
|
+
opacity: 1;
|
|
15
|
+
transform: translateY(0);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@keyframes slideIn {
|
|
20
|
+
from {
|
|
21
|
+
opacity: 0;
|
|
22
|
+
transform: translateX(-12px);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
to {
|
|
26
|
+
opacity: 1;
|
|
27
|
+
transform: translateX(0);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@keyframes pulse {
|
|
32
|
+
0%,
|
|
33
|
+
100% {
|
|
34
|
+
opacity: 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
50% {
|
|
38
|
+
opacity: 0.7;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@keyframes shimmer {
|
|
43
|
+
0% {
|
|
44
|
+
background-position: -1000px 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
100% {
|
|
48
|
+
background-position: 1000px 0;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Tab Button Base Styles */
|
|
53
|
+
.payone-provider-root button[role="tab"] {
|
|
54
|
+
box-shadow: none !important;
|
|
55
|
+
border: none !important;
|
|
56
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
|
|
57
|
+
position: relative;
|
|
58
|
+
background: transparent !important;
|
|
59
|
+
outline: none !important;
|
|
60
|
+
transform: scale(1) !important;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.payone-provider-root button[role="tab"]:active {
|
|
64
|
+
transform: scale(1) !important;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Remove shake animation */
|
|
68
|
+
.payone-provider-root button[role="tab"]:focus,
|
|
69
|
+
.payone-provider-root button[role="tab"]:focus-visible {
|
|
70
|
+
outline: none !important;
|
|
71
|
+
box-shadow: none !important;
|
|
72
|
+
transform: none !important;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.payone-provider-root button[role="tab"][data-state="active"] {
|
|
76
|
+
background: linear-gradient(
|
|
77
|
+
180deg,
|
|
78
|
+
rgba(73, 69, 255, 0.05) 0%,
|
|
79
|
+
transparent 100%
|
|
80
|
+
) !important;
|
|
81
|
+
color: #4945ff !important;
|
|
82
|
+
font-weight: 600 !important;
|
|
83
|
+
box-shadow: none !important;
|
|
84
|
+
border: none !important;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.payone-provider-root button[role="tab"][data-state="inactive"] {
|
|
88
|
+
background: transparent !important;
|
|
89
|
+
color: #6b7280 !important;
|
|
90
|
+
box-shadow: none !important;
|
|
91
|
+
border: none !important;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.payone-provider-root button[role="tab"][data-state="inactive"]::after {
|
|
95
|
+
background: transparent;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.payone-provider-root button[role="tab"][data-state="inactive"]:hover {
|
|
99
|
+
background: linear-gradient(
|
|
100
|
+
180deg,
|
|
101
|
+
rgba(73, 69, 255, 0.02) 0%,
|
|
102
|
+
transparent 100%
|
|
103
|
+
) !important;
|
|
104
|
+
box-shadow: none !important;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Border animation */
|
|
108
|
+
@keyframes borderSlideIn {
|
|
109
|
+
0% {
|
|
110
|
+
transform: scaleX(0);
|
|
111
|
+
opacity: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
100% {
|
|
115
|
+
transform: scaleX(1);
|
|
116
|
+
opacity: 1;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* ===== Form Section Styles ===== */
|
|
121
|
+
.payment-form-section {
|
|
122
|
+
animation: fadeIn 0.5s ease-out;
|
|
123
|
+
padding: 24px;
|
|
124
|
+
margin-bottom: 20px;
|
|
125
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.payment-form-section:hover {
|
|
129
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.payment-form-title {
|
|
133
|
+
font-size: 14px;
|
|
134
|
+
font-weight: 600;
|
|
135
|
+
margin-bottom: 8px;
|
|
136
|
+
letter-spacing: -0.01em;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.payment-form-description {
|
|
140
|
+
font-size: 13px;
|
|
141
|
+
line-height: 1.5;
|
|
142
|
+
margin-top: 8px;
|
|
143
|
+
margin-bottom: 20px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* ===== Divider Styles ===== */
|
|
147
|
+
.payment-divider {
|
|
148
|
+
border: none;
|
|
149
|
+
height: 1px;
|
|
150
|
+
background: linear-gradient(
|
|
151
|
+
90deg,
|
|
152
|
+
transparent 0%,
|
|
153
|
+
#e8e8ea 20%,
|
|
154
|
+
#e8e8ea 80%,
|
|
155
|
+
transparent 100%
|
|
156
|
+
);
|
|
157
|
+
margin: 32px 0;
|
|
158
|
+
animation: fadeIn 0.4s ease-out;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* ===== Responsive ===== */
|
|
162
|
+
@media (max-width: 768px) {
|
|
163
|
+
.payment-container {
|
|
164
|
+
border-radius: 12px;
|
|
165
|
+
padding: 16px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.payment-form-section {
|
|
169
|
+
padding: 16px;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.payment-grid-2,
|
|
173
|
+
.payment-grid-3 {
|
|
174
|
+
grid-template-columns: 1fr;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
export const DEFAULT_PAYMENT_DATA = {
|
|
3
|
-
firstname: "John",
|
|
4
|
-
lastname: "Doe",
|
|
5
|
-
street: "Test Street 123",
|
|
6
|
-
zip: "12345",
|
|
7
|
-
city: "Test City",
|
|
8
|
-
country: "DE",
|
|
9
|
-
email: "test@example.com",
|
|
10
|
-
salutation: "Herr",
|
|
11
|
-
gender: "m",
|
|
12
|
-
telephonenumber: "01752345678",
|
|
13
|
-
ip: "127.0.0.1",
|
|
14
|
-
customer_is_present: "yes",
|
|
15
|
-
language: "de"
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export const DEFAULT_CURRENCY = "EUR";
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export const DEFAULT_PAGE_SIZE = 10;
|
|
23
|
-
|
|
24
|
-
export const filterOptions = [
|
|
25
|
-
{
|
|
26
|
-
name: "status",
|
|
27
|
-
label: "Status",
|
|
28
|
-
type: "enumeration",
|
|
29
|
-
options: [
|
|
30
|
-
{ value: "APPROVED", label: "Approved" },
|
|
31
|
-
{ value: "ERROR", label: "Error" },
|
|
32
|
-
{ value: "REDIRECT", label: "Redirect" },
|
|
33
|
-
{ value: "INVALID", label: "Invalid" },
|
|
34
|
-
{ value: "PENDING", label: "Pending" },
|
|
35
|
-
{ value: "CANCELLED", label: "Cancelled" },
|
|
36
|
-
],
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: "request_type",
|
|
40
|
-
label: "Request Type",
|
|
41
|
-
type: "enumeration",
|
|
42
|
-
options: [
|
|
43
|
-
{ value: "preauthorization", label: "Preauthorization" },
|
|
44
|
-
{ value: "authorization", label: "Authorization" },
|
|
45
|
-
{ value: "capture", label: "Capture" },
|
|
46
|
-
{ value: "refund", label: "Refund" },
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
name: "payment_method",
|
|
51
|
-
label: "Payment Method",
|
|
52
|
-
type: "enumeration",
|
|
53
|
-
options: [
|
|
54
|
-
{ value: "credit_card", label: "Credit Card" },
|
|
55
|
-
{ value: "paypal", label: "PayPal" },
|
|
56
|
-
{ value: "google_pay", label: "Google Pay" },
|
|
57
|
-
{ value: "apple_pay", label: "Apple Pay" },
|
|
58
|
-
{ value: "sofort", label: "Sofort Banking" },
|
|
59
|
-
{ value: "sepa", label: "SEPA Direct Debit" },
|
|
60
|
-
],
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: "date_from",
|
|
64
|
-
label: "Date From",
|
|
65
|
-
type: "date",
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
name: "date_to",
|
|
69
|
-
label: "Date To",
|
|
70
|
-
type: "date",
|
|
71
|
-
},
|
|
1
|
+
|
|
2
|
+
export const DEFAULT_PAYMENT_DATA = {
|
|
3
|
+
firstname: "John",
|
|
4
|
+
lastname: "Doe",
|
|
5
|
+
street: "Test Street 123",
|
|
6
|
+
zip: "12345",
|
|
7
|
+
city: "Test City",
|
|
8
|
+
country: "DE",
|
|
9
|
+
email: "test@example.com",
|
|
10
|
+
salutation: "Herr",
|
|
11
|
+
gender: "m",
|
|
12
|
+
telephonenumber: "01752345678",
|
|
13
|
+
ip: "127.0.0.1",
|
|
14
|
+
customer_is_present: "yes",
|
|
15
|
+
language: "de"
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
export const DEFAULT_CURRENCY = "EUR";
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
export const DEFAULT_PAGE_SIZE = 10;
|
|
23
|
+
|
|
24
|
+
export const filterOptions = [
|
|
25
|
+
{
|
|
26
|
+
name: "status",
|
|
27
|
+
label: "Status",
|
|
28
|
+
type: "enumeration",
|
|
29
|
+
options: [
|
|
30
|
+
{ value: "APPROVED", label: "Approved" },
|
|
31
|
+
{ value: "ERROR", label: "Error" },
|
|
32
|
+
{ value: "REDIRECT", label: "Redirect" },
|
|
33
|
+
{ value: "INVALID", label: "Invalid" },
|
|
34
|
+
{ value: "PENDING", label: "Pending" },
|
|
35
|
+
{ value: "CANCELLED", label: "Cancelled" },
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: "request_type",
|
|
40
|
+
label: "Request Type",
|
|
41
|
+
type: "enumeration",
|
|
42
|
+
options: [
|
|
43
|
+
{ value: "preauthorization", label: "Preauthorization" },
|
|
44
|
+
{ value: "authorization", label: "Authorization" },
|
|
45
|
+
{ value: "capture", label: "Capture" },
|
|
46
|
+
{ value: "refund", label: "Refund" },
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: "payment_method",
|
|
51
|
+
label: "Payment Method",
|
|
52
|
+
type: "enumeration",
|
|
53
|
+
options: [
|
|
54
|
+
{ value: "credit_card", label: "Credit Card" },
|
|
55
|
+
{ value: "paypal", label: "PayPal" },
|
|
56
|
+
{ value: "google_pay", label: "Google Pay" },
|
|
57
|
+
{ value: "apple_pay", label: "Apple Pay" },
|
|
58
|
+
{ value: "sofort", label: "Sofort Banking" },
|
|
59
|
+
{ value: "sepa", label: "SEPA Direct Debit" },
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: "date_from",
|
|
64
|
+
label: "Date From",
|
|
65
|
+
type: "date",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: "date_to",
|
|
69
|
+
label: "Date To",
|
|
70
|
+
type: "date",
|
|
71
|
+
},
|
|
72
72
|
];
|