@tap-payments/apple-pay-button 1.2.5 → 1.2.6
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.
|
@@ -266,8 +266,6 @@ export var useApplePay = function (_a) {
|
|
|
266
266
|
return [3, 8];
|
|
267
267
|
case 7:
|
|
268
268
|
console.error('We only support AppleToken and TapToken for now');
|
|
269
|
-
console.info('Completing payment with status: STATUS_FAILURE');
|
|
270
|
-
session_1.completePayment({ status: ApplePaySession.STATUS_FAILURE });
|
|
271
269
|
throw new Error('We only support AppleToken and TapToken for now');
|
|
272
270
|
case 8: return [3, 11];
|
|
273
271
|
case 9:
|
|
@@ -275,7 +273,8 @@ export var useApplePay = function (_a) {
|
|
|
275
273
|
if (debug)
|
|
276
274
|
console.error('error in onpaymentauthorized', error_2);
|
|
277
275
|
session_1.completePayment({ status: ApplePaySession.STATUS_FAILURE });
|
|
278
|
-
|
|
276
|
+
onError && onError(shapeApplePayError(error_2));
|
|
277
|
+
return [3, 11];
|
|
279
278
|
case 10:
|
|
280
279
|
setLoading(false);
|
|
281
280
|
return [7];
|