@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.
package/build/constants/index.js
CHANGED
|
@@ -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