@tap-payments/apple-pay-button 0.0.1-test → 0.0.2-test

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.
@@ -18,4 +18,4 @@ export declare const SupportedNetworks: {
18
18
  readonly MasterCard: "masterCard";
19
19
  readonly Visa: "visa";
20
20
  };
21
- export declare const ApplePayVersion = 3;
21
+ export declare const ApplePayVersion = 5;
@@ -18,4 +18,4 @@ export var SupportedNetworks = {
18
18
  MasterCard: 'masterCard',
19
19
  Visa: 'visa'
20
20
  };
21
- export var ApplePayVersion = 3;
21
+ export var ApplePayVersion = 5;
@@ -98,11 +98,6 @@ export var useApplePay = function (_a) {
98
98
  });
99
99
  console.info("Creating ApplePaySession with version: ".concat(ApplePayVersion, " and request: ").concat(JSON.stringify(request)));
100
100
  session_1 = new ApplePaySession(ApplePayVersion, request);
101
- session_1.oncancel = function () {
102
- console.info('oncancel event');
103
- if (onCancel)
104
- onCancel();
105
- };
106
101
  session_1.onvalidatemerchant = function (event) { return __awaiter(void 0, void 0, void 0, function () {
107
102
  var merchantSession, error_1;
108
103
  return __generator(this, function (_a) {
@@ -179,6 +174,11 @@ export var useApplePay = function (_a) {
179
174
  }
180
175
  });
181
176
  }); };
177
+ session_1.oncancel = function () {
178
+ console.info('oncancel event');
179
+ if (onCancel)
180
+ onCancel();
181
+ };
182
182
  session_1.begin();
183
183
  }
184
184
  catch (e) {
package/build/index.js CHANGED
@@ -7,3 +7,4 @@ window['TapSDKs'] = {
7
7
  Scope: Scope,
8
8
  SupportedNetworks: SupportedNetworks
9
9
  };
10
+ console.log("apple-pay-button version: ".concat(require('../package.json').version));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/apple-pay-button",
3
- "version": "0.0.1-test",
3
+ "version": "0.0.2-test",
4
4
  "description": "Apple Pay Button React Component",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.js",