@rnw-community/react-native-payments
Version:
Accept Payments with Apple Pay and Android Pay using the Payment Request API.
7 lines (4 loc) • 338 B
text/typescript
import type { WebPaymentResponseConstructor } from '../../type/web-payment-response-constructor.type.js';
import type { Maybe } from '@rnw-community/shared';
export const { PaymentResponse }: { PaymentResponse: Maybe<WebPaymentResponseConstructor> | undefined } =
typeof window === 'undefined' ? { PaymentResponse: null } : window;