@tap-payments/apple-pay-button 0.0.2-test → 0.0.3-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.
|
@@ -105,7 +105,6 @@ export var useApplePay = function (_a) {
|
|
|
105
105
|
case 0:
|
|
106
106
|
console.info('Creating merchant session and validating merchant session');
|
|
107
107
|
console.info('onvalidatemerchant event', event);
|
|
108
|
-
setLoading(true);
|
|
109
108
|
_a.label = 1;
|
|
110
109
|
case 1:
|
|
111
110
|
_a.trys.push([1, 3, , 4]);
|
|
@@ -122,9 +121,7 @@ export var useApplePay = function (_a) {
|
|
|
122
121
|
console.error('error in onvalidatemerchant', error_1);
|
|
123
122
|
session_1.completePayment({ status: 'STATUS_FAILURE' });
|
|
124
123
|
throw error_1;
|
|
125
|
-
case 4:
|
|
126
|
-
setLoading(false);
|
|
127
|
-
return [2];
|
|
124
|
+
case 4: return [2];
|
|
128
125
|
}
|
|
129
126
|
});
|
|
130
127
|
}); };
|
|
@@ -133,7 +130,6 @@ export var useApplePay = function (_a) {
|
|
|
133
130
|
return __generator(this, function (_b) {
|
|
134
131
|
switch (_b.label) {
|
|
135
132
|
case 0:
|
|
136
|
-
setLoading(true);
|
|
137
133
|
console.info('onpaymentauthorized event', event);
|
|
138
134
|
_b.label = 1;
|
|
139
135
|
case 1:
|
|
@@ -168,9 +164,7 @@ export var useApplePay = function (_a) {
|
|
|
168
164
|
console.error('error in onpaymentauthorized', error_2);
|
|
169
165
|
session_1.completePayment({ status: 'STATUS_FAILURE' });
|
|
170
166
|
throw error_2;
|
|
171
|
-
case 10:
|
|
172
|
-
setLoading(false);
|
|
173
|
-
return [2];
|
|
167
|
+
case 10: return [2];
|
|
174
168
|
}
|
|
175
169
|
});
|
|
176
170
|
}); };
|