strapi-plugin-payone-provider 1.6.2 → 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.
@@ -3,6 +3,7 @@ import pluginId from "./pluginId";
3
3
  import Initializer from "./components/Initializer/index.jsx";
4
4
  import PluginIcon from "./components/PluginIcon/index.jsx";
5
5
  import { injectGooglePayScript } from "./pages/utils/injectGooglePayScript";
6
+ import { injectApplePayScript } from "./pages/utils/injectApplePayScript";
6
7
 
7
8
  const name = pluginPkg.strapi.name;
8
9
 
@@ -32,6 +33,7 @@ export default {
32
33
 
33
34
  bootstrap(app) {
34
35
  injectGooglePayScript();
36
+ injectApplePayScript();
35
37
  },
36
38
 
37
39
  async registerTrads() {
@@ -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('/apple-pay-config');
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 variant="alpha" as="h1" fontWeight="bold" className="payment-title">
17
- {isApplePayConfigPage ? "Apple Pay Configuration" : "Payone Provider"}
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
-