UNPKG

@rnw-community/react-native-payments

Version:

Accept Payments with Apple Pay and Android Pay using the Payment Request API.

4 lines 308 B
import { isError } from '@rnw-community/shared'; const nativeCancellationCodes = new Set(['E_CANCELLED_BY_USER', 'payment_error']); export const isNativeUserCancellation = (error) => isError(error) && nativeCancellationCodes.has(error.code ?? ''); //# sourceMappingURL=is-native-user-cancellation.util.js.map