strapi-plugin-payone-provider 1.6.3 → 1.6.5
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 +80 -43
- 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 +4 -14
- 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
|
@@ -1,306 +1,327 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import ApplePayButton from "apple-pay-button";
|
|
3
|
-
import { Box, Typography, Alert } from "@strapi/design-system";
|
|
4
|
-
import { request } from "@strapi/helper-plugin";
|
|
5
|
-
import pluginId from "../../../pluginId";
|
|
6
|
-
|
|
7
|
-
const ApplePayBtn = ({
|
|
8
|
-
amount,
|
|
9
|
-
onTokenReceived,
|
|
10
|
-
onError,
|
|
11
|
-
settings,
|
|
12
|
-
buttonStyle = "black",
|
|
13
|
-
type = "pay",
|
|
14
|
-
}) => {
|
|
15
|
-
const handleEventsForApplePay = (session, amountValue, currencyCode) => {
|
|
16
|
-
session.onvalidatemerchant = async (event) => {
|
|
17
|
-
try {
|
|
18
|
-
const
|
|
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
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import ApplePayButton from "apple-pay-button";
|
|
3
|
+
import { Box, Typography, Alert } from "@strapi/design-system";
|
|
4
|
+
import { request } from "@strapi/helper-plugin";
|
|
5
|
+
import pluginId from "../../../pluginId";
|
|
6
|
+
|
|
7
|
+
const ApplePayBtn = ({
|
|
8
|
+
amount,
|
|
9
|
+
onTokenReceived,
|
|
10
|
+
onError,
|
|
11
|
+
settings,
|
|
12
|
+
buttonStyle = "black",
|
|
13
|
+
type = "pay",
|
|
14
|
+
}) => {
|
|
15
|
+
const handleEventsForApplePay = (session, amountValue, currencyCode) => {
|
|
16
|
+
session.onvalidatemerchant = async (event) => {
|
|
17
|
+
try {
|
|
18
|
+
const applePayConfig = settings?.applePayConfig || {};
|
|
19
|
+
const requestCurrency =
|
|
20
|
+
currencyCode || applePayConfig.currencyCode || "EUR";
|
|
21
|
+
const requestCountryCode = applePayConfig.countryCode || "DE";
|
|
22
|
+
|
|
23
|
+
const merchantSession = await request(
|
|
24
|
+
`/${pluginId}/validate-apple-pay-merchant`,
|
|
25
|
+
{
|
|
26
|
+
method: "POST",
|
|
27
|
+
body: {
|
|
28
|
+
domain: window.location.hostname,
|
|
29
|
+
domainName: window.location.hostname,
|
|
30
|
+
displayName: settings?.merchantName || "Store",
|
|
31
|
+
currency: requestCurrency,
|
|
32
|
+
countryCode: requestCountryCode,
|
|
33
|
+
},
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
if (merchantSession.error) {
|
|
38
|
+
const errorMessage =
|
|
39
|
+
merchantSession.error.message || "Merchant validation failed";
|
|
40
|
+
const errorDetails = merchantSession.error.details || "";
|
|
41
|
+
|
|
42
|
+
// If it's a 403 error, provide more specific guidance
|
|
43
|
+
if (merchantSession.error.status === 403) {
|
|
44
|
+
throw new Error(
|
|
45
|
+
`403 Forbidden: Authentication failed with Payone. ` +
|
|
46
|
+
`Please check your Payone credentials (aid, portalid, mid, key) in plugin settings. ` +
|
|
47
|
+
`Also ensure that: 1) Mode is set to "live" (Apple Pay only works in live mode), ` +
|
|
48
|
+
`2) Your domain is registered with Payone Merchant Services, ` +
|
|
49
|
+
`3) Merchant ID (mid) matches your merchantIdentifier in PMI. ` +
|
|
50
|
+
`Details: ${errorDetails || errorMessage}`
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
throw new Error(
|
|
55
|
+
errorMessage + (errorDetails ? ` - ${errorDetails}` : "")
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const sessionData = merchantSession.data || merchantSession;
|
|
60
|
+
|
|
61
|
+
if (!sessionData || !sessionData.merchantIdentifier) {
|
|
62
|
+
throw new Error(
|
|
63
|
+
"Invalid merchant session: missing merchantIdentifier. " +
|
|
64
|
+
"Please check your Payone Apple Pay configuration in PMI (CONFIGURATION → PAYMENT PORTALS → [Your Portal] → Payment type configuration tab)."
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
session.completeMerchantValidation(sessionData);
|
|
69
|
+
} catch (error) {
|
|
70
|
+
|
|
71
|
+
// Don't call completeMerchantValidation with empty object - this causes user cancellation
|
|
72
|
+
// Instead, let the error propagate so user can see what went wrong
|
|
73
|
+
if (onError) {
|
|
74
|
+
onError(error);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// Complete with failure status to show error to user
|
|
78
|
+
try {
|
|
79
|
+
session.completeMerchantValidation({});
|
|
80
|
+
} catch (completeError) {
|
|
81
|
+
// Silent fail
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
session.onpaymentmethodselected = (event) => {
|
|
87
|
+
const update = {
|
|
88
|
+
newTotal: {
|
|
89
|
+
label: settings?.merchantName || "Total",
|
|
90
|
+
type: "final",
|
|
91
|
+
amount: amountValue,
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
session.completePaymentMethodSelection(update);
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
session.onshippingmethodselected = (event) => {
|
|
98
|
+
const update = {
|
|
99
|
+
newTotal: {
|
|
100
|
+
label: settings?.merchantName || "Total",
|
|
101
|
+
type: "final",
|
|
102
|
+
amount: amountValue,
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
session.completeShippingMethodSelection(update);
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
session.onshippingcontactselected = (event) => {
|
|
109
|
+
const update = {
|
|
110
|
+
newTotal: {
|
|
111
|
+
label: settings?.merchantName || "Total",
|
|
112
|
+
type: "final",
|
|
113
|
+
amount: amountValue,
|
|
114
|
+
},
|
|
115
|
+
};
|
|
116
|
+
session.completeShippingContactSelection(update);
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
session.onpaymentauthorized = async (event) => {
|
|
120
|
+
try {
|
|
121
|
+
const paymentData = event.payment;
|
|
122
|
+
|
|
123
|
+
if (!paymentData || !paymentData.token) {
|
|
124
|
+
const result = {
|
|
125
|
+
status: window.ApplePaySession.STATUS_FAILURE,
|
|
126
|
+
};
|
|
127
|
+
session.completePayment(result);
|
|
128
|
+
if (onError) {
|
|
129
|
+
onError(new Error("Payment token is missing"));
|
|
130
|
+
}
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
const tokenObject = paymentData.token;
|
|
135
|
+
|
|
136
|
+
if (!tokenObject.paymentData) {
|
|
137
|
+
const result = {
|
|
138
|
+
status: window.ApplePaySession.STATUS_FAILURE,
|
|
139
|
+
};
|
|
140
|
+
session.completePayment(result);
|
|
141
|
+
if (onError) {
|
|
142
|
+
onError(new Error("Invalid Apple Pay token structure"));
|
|
143
|
+
}
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// Encode token as Base64 for transmission
|
|
148
|
+
let tokenString;
|
|
149
|
+
try {
|
|
150
|
+
tokenString = btoa(
|
|
151
|
+
unescape(encodeURIComponent(JSON.stringify(tokenObject)))
|
|
152
|
+
);
|
|
153
|
+
} catch (e) {
|
|
154
|
+
tokenString = btoa(
|
|
155
|
+
unescape(encodeURIComponent(JSON.stringify(tokenObject)))
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (onTokenReceived) {
|
|
160
|
+
const result = await onTokenReceived(tokenString, {
|
|
161
|
+
paymentToken: tokenObject,
|
|
162
|
+
billingContact: paymentData.billingContact,
|
|
163
|
+
shippingContact: paymentData.shippingContact,
|
|
164
|
+
amount: amountValue, //
|
|
165
|
+
currency: currencyCode,
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
if (result && typeof result.then === "function") {
|
|
169
|
+
await result;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
const paymentResult = {
|
|
173
|
+
status: window.ApplePaySession.STATUS_SUCCESS,
|
|
174
|
+
};
|
|
175
|
+
session.completePayment(paymentResult);
|
|
176
|
+
} else {
|
|
177
|
+
const paymentResult = {
|
|
178
|
+
status: window.ApplePaySession.STATUS_SUCCESS,
|
|
179
|
+
};
|
|
180
|
+
session.completePayment(paymentResult);
|
|
181
|
+
}
|
|
182
|
+
} catch (error) {
|
|
183
|
+
const result = {
|
|
184
|
+
status: window.ApplePaySession.STATUS_FAILURE,
|
|
185
|
+
};
|
|
186
|
+
session.completePayment(result);
|
|
187
|
+
if (onError) {
|
|
188
|
+
onError(error);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
session.oncancel = (event) => {
|
|
194
|
+
// Session cancelled by user
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
const handleApplePayClick = () => {
|
|
199
|
+
if (!settings?.mid) {
|
|
200
|
+
const error = new Error(
|
|
201
|
+
"Merchant ID is not configured. Please set Merchant ID in plugin settings."
|
|
202
|
+
);
|
|
203
|
+
if (onError) {
|
|
204
|
+
onError(error);
|
|
205
|
+
}
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
if (typeof window === "undefined" || !window.ApplePaySession) {
|
|
210
|
+
if (onError) {
|
|
211
|
+
onError(new Error("Apple Pay is not supported in this environment."));
|
|
212
|
+
}
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
const amountValue = amount ? (parseFloat(amount) / 100).toFixed(2) : "0.00";
|
|
217
|
+
const applePayConfig = settings?.applePayConfig || {};
|
|
218
|
+
const supportedNetworks = applePayConfig.supportedNetworks || [
|
|
219
|
+
"visa",
|
|
220
|
+
"masterCard",
|
|
221
|
+
"amex",
|
|
222
|
+
];
|
|
223
|
+
const merchantCapabilities = applePayConfig.merchantCapabilities || [
|
|
224
|
+
"supports3DS",
|
|
225
|
+
];
|
|
226
|
+
const currencyCode = applePayConfig.currencyCode || "EUR";
|
|
227
|
+
const countryCode = applePayConfig.countryCode || "DE";
|
|
228
|
+
|
|
229
|
+
const applePayRequest = {
|
|
230
|
+
countryCode: countryCode,
|
|
231
|
+
currencyCode: currencyCode,
|
|
232
|
+
merchantCapabilities: merchantCapabilities,
|
|
233
|
+
supportedNetworks: supportedNetworks,
|
|
234
|
+
total: {
|
|
235
|
+
label: settings?.merchantName || "Total",
|
|
236
|
+
type: "final",
|
|
237
|
+
amount: amountValue,
|
|
238
|
+
},
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
const session = new window.ApplePaySession(3, applePayRequest);
|
|
242
|
+
|
|
243
|
+
handleEventsForApplePay(session, amountValue, currencyCode);
|
|
244
|
+
|
|
245
|
+
session.begin();
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
const mode = (settings?.mode || "test").toLowerCase();
|
|
249
|
+
const isLiveMode = mode === "live";
|
|
250
|
+
|
|
251
|
+
if (!settings?.mid) {
|
|
252
|
+
return (
|
|
253
|
+
<Box>
|
|
254
|
+
<Alert closeLabel="Close" title="Merchant ID Missing" variant="warning">
|
|
255
|
+
<Typography variant="pi" marginTop={2}>
|
|
256
|
+
Merchant ID is not configured. Please set Merchant ID in plugin
|
|
257
|
+
settings. You can find your merchantIdentifier in PMI at:
|
|
258
|
+
CONFIGURATION → PAYMENT PORTALS → [Your Portal] → Payment type
|
|
259
|
+
configuration tab.
|
|
260
|
+
</Typography>
|
|
261
|
+
</Alert>
|
|
262
|
+
</Box>
|
|
263
|
+
);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
if (!isLiveMode) {
|
|
267
|
+
return (
|
|
268
|
+
<Box>
|
|
269
|
+
<Alert
|
|
270
|
+
closeLabel="Close"
|
|
271
|
+
title=" Apple Pay Only Works in Live Mode"
|
|
272
|
+
variant="danger"
|
|
273
|
+
>
|
|
274
|
+
<Typography variant="pi" marginTop={2}>
|
|
275
|
+
<strong>Apple Pay is only supported in live mode.</strong> According
|
|
276
|
+
to Payone documentation, test mode support will be available at a
|
|
277
|
+
later time.
|
|
278
|
+
</Typography>
|
|
279
|
+
<Typography variant="pi" style={{ marginLeft: "8px" }}>
|
|
280
|
+
Please switch to <strong>live mode</strong> in plugin settings to
|
|
281
|
+
use Apple Pay.
|
|
282
|
+
</Typography>
|
|
283
|
+
</Alert>
|
|
284
|
+
</Box>
|
|
285
|
+
);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
const buttonStyleMap = {
|
|
289
|
+
black: "black",
|
|
290
|
+
white: "white",
|
|
291
|
+
"white-outline": "white-outline",
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
const buttonTypeMap = {
|
|
295
|
+
pay: "plain",
|
|
296
|
+
buy: "buy",
|
|
297
|
+
donate: "donate",
|
|
298
|
+
"check-out": "check-out",
|
|
299
|
+
book: "book",
|
|
300
|
+
subscribe: "subscribe",
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
const nativeButtonStyle = buttonStyleMap[buttonStyle] || "black";
|
|
304
|
+
const nativeButtonType = buttonTypeMap[type] || "plain";
|
|
305
|
+
|
|
306
|
+
return (
|
|
307
|
+
<Box style={{ minHeight: "40px", width: "100%" }}>
|
|
308
|
+
<ApplePayButton
|
|
309
|
+
onClick={handleApplePayClick}
|
|
310
|
+
buttonStyle={nativeButtonStyle}
|
|
311
|
+
type={nativeButtonType}
|
|
312
|
+
style={{ width: "220px", height: "40px" }}
|
|
313
|
+
/>
|
|
314
|
+
<br /> <br />
|
|
315
|
+
<Typography
|
|
316
|
+
variant="pi"
|
|
317
|
+
textColor="neutral600"
|
|
318
|
+
style={{ fontSize: "12px", marginTop: "8px", marginRight: "6px" }}
|
|
319
|
+
>
|
|
320
|
+
Apple Pay does NOT work on localhost. Use a production domain with
|
|
321
|
+
HTTPS.
|
|
322
|
+
</Typography>
|
|
323
|
+
</Box>
|
|
324
|
+
);
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
export default ApplePayBtn;
|