@tap-payments/apple-pay-button 0.0.63-development → 0.0.65-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.
@@ -296,15 +296,16 @@ export var useApplePay = function (_a) {
296
296
  return [3, 12];
297
297
  case 3:
298
298
  setLoading(true);
299
+ session_1.completePayment({ status: ApplePaySession.STATUS_SUCCESS });
299
300
  return [4, appService.tapTokenization(event.payment.token.paymentData)];
300
301
  case 4:
301
302
  data = _t.sent();
302
303
  setSuccess === null || setSuccess === void 0 ? void 0 : setSuccess(true);
303
304
  onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(data);
304
- session_1.completePayment({ status: ApplePaySession.STATUS_SUCCESS });
305
305
  return [3, 12];
306
306
  case 5:
307
307
  setLoading(true);
308
+ session_1.completePayment({ status: ApplePaySession.STATUS_SUCCESS });
308
309
  return [4, appService.tapTokenization(event.payment.token.paymentData)];
309
310
  case 6:
310
311
  tokenId = (_t.sent()).id;
@@ -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.65-development",
4
4
  "description": "Apple Pay Button React Component",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.js",