strapi-plugin-payone-provider 1.6.3 → 1.6.4
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/admin/src/pages/App/components/AppHeader.jsx +14 -8
- package/admin/src/pages/App/components/ApplePayBtn.jsx +327 -306
- package/admin/src/pages/App/components/ApplePayConfigPanel.jsx +8 -19
- package/admin/src/pages/App/components/ConfigurationPanel.jsx +74 -16
- package/admin/src/pages/App/components/DocsPanel.jsx +0 -1
- package/admin/src/pages/App/components/GooglePayConfig.jsx +94 -34
- package/admin/src/pages/App/components/PaymentActionsPanel.jsx +40 -55
- package/admin/src/pages/App/components/paymentActions/ApplePayPanel.jsx +51 -0
- package/admin/src/pages/App/components/paymentActions/PaymentMethodSelector.jsx +2 -9
- package/admin/src/pages/App/components/paymentActions/PreauthorizationForm.jsx +1 -1
- package/admin/src/pages/hooks/usePaymentActions.js +7 -9
- package/admin/src/pages/utils/paymentUtils.js +46 -25
- package/package.json +1 -1
- package/server/bootstrap.js +19 -35
- package/server/controllers/payone.js +67 -15
- package/server/services/applePayService.js +218 -47
- package/server/services/paymentService.js +0 -13
- package/server/services/testConnectionService.js +3 -2
- package/server/utils/paymentMethodParams.js +46 -3
|
@@ -7,25 +7,32 @@ import pluginId from "../../../pluginId";
|
|
|
7
7
|
const AppHeader = ({ activeTab, isSaving, onSave }) => {
|
|
8
8
|
const history = useHistory();
|
|
9
9
|
const location = useLocation();
|
|
10
|
-
const isApplePayConfigPage = location.pathname.includes(
|
|
10
|
+
const isApplePayConfigPage = location.pathname.includes("/apple-pay-config");
|
|
11
|
+
const isGooglePayConfigPage = location.pathname.includes("/google-pay-config");
|
|
11
12
|
|
|
12
13
|
return (
|
|
13
14
|
<HeaderLayout
|
|
14
15
|
title={
|
|
15
16
|
<Box>
|
|
16
|
-
<Typography
|
|
17
|
-
|
|
17
|
+
<Typography
|
|
18
|
+
variant="alpha"
|
|
19
|
+
as="h1"
|
|
20
|
+
fontWeight="bold"
|
|
21
|
+
className="payment-title"
|
|
22
|
+
>
|
|
23
|
+
{isApplePayConfigPage
|
|
24
|
+
? "Apple Pay Configuration"
|
|
25
|
+
: "Payone Provider"}
|
|
18
26
|
</Typography>
|
|
19
27
|
<Typography variant="pi" marginTop={2} className="payment-subtitle">
|
|
20
|
-
{isApplePayConfigPage
|
|
28
|
+
{isApplePayConfigPage
|
|
21
29
|
? "Configure Apple Pay settings for your payment gateway"
|
|
22
|
-
: "Configure your Payone integration and manage payment transactions"
|
|
23
|
-
}
|
|
30
|
+
: "Configure your Payone integration and manage payment transactions"}
|
|
24
31
|
</Typography>
|
|
25
32
|
</Box>
|
|
26
33
|
}
|
|
27
34
|
primaryAction={
|
|
28
|
-
isApplePayConfigPage ? (
|
|
35
|
+
isApplePayConfigPage || isGooglePayConfigPage ? (
|
|
29
36
|
<Button
|
|
30
37
|
onClick={() => history.push(`/plugins/${pluginId}`)}
|
|
31
38
|
startIcon={<ArrowLeft />}
|
|
@@ -52,4 +59,3 @@ const AppHeader = ({ activeTab, isSaving, onSave }) => {
|
|
|
52
59
|
};
|
|
53
60
|
|
|
54
61
|
export default AppHeader;
|
|
55
|
-
|