@tap-payments/apple-pay-button 0.0.66-development → 0.0.68-development
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/build/api.js
CHANGED
|
@@ -158,7 +158,7 @@ var APPService = (function () {
|
|
|
158
158
|
body = {
|
|
159
159
|
validationUrl: validationURL,
|
|
160
160
|
origin: merchantRegisteredDomain,
|
|
161
|
-
merchantIdentifier:
|
|
161
|
+
merchantIdentifier: merchant.id,
|
|
162
162
|
merchantId: merchant.id,
|
|
163
163
|
merchantName: merchant.name
|
|
164
164
|
};
|
|
@@ -16,8 +16,8 @@ import { findOrCreateElementAndInject } from '../../utils';
|
|
|
16
16
|
import { useApplePay } from '../../hooks/useApplePay';
|
|
17
17
|
import { Locale, PayButton } from '@tap-payments/acceptance-sdk';
|
|
18
18
|
var ApplePay = React.memo(function (props) {
|
|
19
|
-
var _a, _b;
|
|
20
|
-
var
|
|
19
|
+
var _a, _b, _c;
|
|
20
|
+
var _d = useApplePay({ buttonProps: props }), onClick = _d.onClick, initialLoading = _d.initialLoading, mappedProps = _d.mappedProps, theme = _d.theme, isRounded = _d.isRounded, success = _d.success, error = _d.error, applePayPaymentMethodOptions = _d.applePayPaymentMethodOptions, profileData = _d.profileData;
|
|
21
21
|
React.useEffect(function () {
|
|
22
22
|
if (props.debug) {
|
|
23
23
|
console.log('ApplePayButtonProps', props);
|
|
@@ -27,7 +27,7 @@ var ApplePay = React.memo(function (props) {
|
|
|
27
27
|
width: '100%',
|
|
28
28
|
display: 'flex',
|
|
29
29
|
justifyContent: 'center'
|
|
30
|
-
} }, { children: _jsx(PayButton, { shimmerLoader: !profileData || initialLoading || !applePayPaymentMethodOptions, locale: ((_a = mappedProps.interface) === null || _a === void 0 ? void 0 : _a.locale) || Locale.EN, theme: theme, edges: (_b = mappedProps.interface) === null || _b === void 0 ? void 0 : _b.edges, isFailed: error, isRounded: isRounded, isSuccess: success, onClick: onClick, buttonStyle: applePayPaymentMethodOptions === null || applePayPaymentMethodOptions === void 0 ? void 0 : applePayPaymentMethodOptions.button_style }) })));
|
|
30
|
+
} }, { children: _jsx(PayButton, { shimmerLoader: !profileData || initialLoading || !applePayPaymentMethodOptions, locale: ((_a = mappedProps.interface) === null || _a === void 0 ? void 0 : _a.locale) || Locale.EN, theme: theme, edges: (_b = mappedProps.interface) === null || _b === void 0 ? void 0 : _b.edges, colorStyle: (_c = mappedProps.interface) === null || _c === void 0 ? void 0 : _c.colorStyle, isFailed: error, isRounded: isRounded, isSuccess: success, onClick: onClick, buttonStyle: applePayPaymentMethodOptions === null || applePayPaymentMethodOptions === void 0 ? void 0 : applePayPaymentMethodOptions.button_style }) })));
|
|
31
31
|
});
|
|
32
32
|
export function ApplePayButton(props) {
|
|
33
33
|
return _jsx(ApplePay, __assign({}, props));
|