@tap-payments/apple-pay-button 0.0.63-development → 0.0.64-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.
@@ -10,4 +10,4 @@ export declare const getApplePayRequest: ({ order, customer, supportedNetworks,
10
10
  export declare const rsaSetup: (key: string) => (string: string) => string;
11
11
  export declare function generateApplicationHeader(obj: Record<string, string | any>): string;
12
12
  export declare const prepareApplePayRequest: ({ payment_options, merchant, order, customer, acceptance }: Pick<MetaData, 'merchant' | 'payment_options'> & Pick<ApplePayButtonProps, 'order' | 'customer' | 'acceptance'>) => ApplePayRequestData;
13
- export declare const shallRenderApplePay: () => any;
13
+ export declare const shallRenderApplePay: () => boolean;
@@ -79,6 +79,5 @@ export var prepareApplePayRequest = function (_a) {
79
79
  };
80
80
  export var shallRenderApplePay = function () {
81
81
  var https = window.location.protocol === 'https:';
82
- var isApplePayAvailable = window.ApplePaySession && window.ApplePaySession.canMakePayments();
83
- return https && isApplePayAvailable;
82
+ return https;
84
83
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/apple-pay-button",
3
- "version": "0.0.63-development",
3
+ "version": "0.0.64-development",
4
4
  "description": "Apple Pay Button React Component",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.js",