UNPKG

@rnw-community/react-native-payments

Version:

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

10 lines (8 loc) 626 B
import type { PaymentAddressFieldEnum } from '../enum/payment-address-field.enum.js'; import type { PaymentContactFieldEnum } from '../enum/payment-contact-field.enum.js'; import type { PaymentUpdateErrorTypeEnum } from '../enum/payment-update-error-type.enum.js'; export type PaymentDetailsUpdateError = | string | { expired?: boolean; message: string; type: PaymentUpdateErrorTypeEnum.CouponCode } | { field: PaymentContactFieldEnum; message: string; type: PaymentUpdateErrorTypeEnum.ContactField } | { key: PaymentAddressFieldEnum; message: string; type: PaymentUpdateErrorTypeEnum.ShippingAddressField };