UNPKG

@rnw-community/react-native-payments

Version:

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

21 lines (17 loc) 999 B
import { AndroidAllowedAuthMethodsEnum } from '../enum/android-allowed-auth-methods.enum.js'; import type { AndroidPaymentMethodCardParameters } from './android-payment-method-card-parameters.js'; import type { AndroidTokenizationDirectSpecification } from './android-tokenization-direct-specification.js'; import type { AndroidTokenizationGatewaySpecification } from './android-tokenization-gateway-specification.js'; // https://developers.google.com/pay/api/android/reference/request-objects#PaymentMethod export interface AndroidPaymentMethod { parameters: AndroidPaymentMethodCardParameters; tokenizationSpecification?: AndroidTokenizationDirectSpecification | AndroidTokenizationGatewaySpecification; type: 'CARD'; } export const defaultAndroidPaymentMethod: AndroidPaymentMethod = { parameters: { allowedAuthMethods: [AndroidAllowedAuthMethodsEnum.PAN_ONLY, AndroidAllowedAuthMethodsEnum.CRYPTOGRAM_3DS], allowedCardNetworks: [], }, type: 'CARD', };