UNPKG

@rnw-community/react-native-payments

Version:

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

24 lines (22 loc) 1 kB
import type { PaymentShippingTypeEnum } from '../enum/payment-shipping-type.enum.js'; import type { SupportedNetworkEnum } from '../enum/supported-networks.enum.js'; /** * Common PaymentMethod data field shared across platforms */ export interface GenericPaymentMethodDataDataInterface { countryCode?: string; currencyCode: string; // If present PaymentResponse will have billingAddress requestBillingAddress?: boolean; // If present PaymentResponse will have email requestPayerEmail?: boolean; // If present PaymentResponse will have name requestPayerName?: boolean; // If present PaymentResponse will have phone requestPayerPhone?: boolean; // If present PaymentResponse will have shippingAddress requestShipping?: boolean; // https://www.w3.org/TR/payment-request/#dom-paymentoptions-shippingtype; forwarded to PKShippingType on iOS, no-op on Android shippingType?: PaymentShippingTypeEnum; supportedNetworks: SupportedNetworkEnum[]; }