@tap-payments/apple-pay-button 0.0.43-development → 0.0.45-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.
@@ -106,7 +106,7 @@ export interface ApplePayButtonProps {
106
106
  onReady?: () => void;
107
107
  metaData?: MetaData;
108
108
  debug?: boolean;
109
- integration?: 'merchant' | 'tap';
109
+ integration?: 'sdk' | 'iframe';
110
110
  headers?: {
111
111
  mdn: string;
112
112
  application: string;
@@ -20,7 +20,7 @@ import './ApplePayButton.css';
20
20
  var ApplePay = React.memo(function (props) {
21
21
  var mappedProps = getDefaultValues(props);
22
22
  var _a = useApplePay(mappedProps), loading = _a.loading, onApplePayButtonClicked = _a.onApplePayButtonClicked, disabled = _a.disabled, applePayRequestData = _a.applePayRequestData, applePayRequestConfiguration = _a.applePayRequestConfiguration;
23
- var isMerchantIntegration = props.integration === 'merchant';
23
+ var isIframeIntegration = props.integration === 'iframe';
24
24
  React.useEffect(function () {
25
25
  if (props.debug) {
26
26
  console.log('ApplePayButtonProps', props);
@@ -32,7 +32,7 @@ var ApplePay = React.memo(function (props) {
32
32
  borderRadius: mappedProps.interface.edges === Edges.STRAIGHT ? '0' : '10px'
33
33
  }, onClick: function () {
34
34
  var _a, _b;
35
- if (isMerchantIntegration) {
35
+ if (isIframeIntegration) {
36
36
  (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props, __assign(__assign({}, applePayRequestConfiguration), { applePayRequestData: applePayRequestData }));
37
37
  return;
38
38
  }
@@ -60,7 +60,7 @@ export declare const getDefaultValues: (mainObject: ApplePayButtonProps) => {
60
60
  onReady?: (() => void) | undefined;
61
61
  metaData?: import("../@types").MetaData | undefined;
62
62
  debug?: boolean | undefined;
63
- integration?: "merchant" | "tap" | undefined;
63
+ integration?: "sdk" | "iframe" | undefined;
64
64
  headers?: {
65
65
  mdn: string;
66
66
  application: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/apple-pay-button",
3
- "version": "0.0.43-development",
3
+ "version": "0.0.45-development",
4
4
  "description": "Apple Pay Button React Component",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.js",