@rnw-community/react-native-payments
Version:
Accept Payments with Apple Pay and Android Pay using the Payment Request API.
10 lines (8 loc) • 448 B
text/typescript
import type { PaymentAddressFieldEnum } from '../../enum/payment-address-field.enum.js';
import type { PaymentContactFieldEnum } from '../../enum/payment-contact-field.enum.js';
// https://www.w3.org/TR/payment-request/#dom-paymentvalidationerrors
export interface PaymentValidationErrors {
error?: string;
payer?: Partial<Record<PaymentContactFieldEnum, string>>;
shippingAddress?: Partial<Record<PaymentAddressFieldEnum, string>>;
}