UNPKG

@rnw-community/react-native-payments

Version:

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

15 lines (13 loc) 690 B
import type { NativePaymentDetailsUpdateInterface } from './native-payment-details-update.interface.js'; import type { PaymentItem } from '../@standard/w3c/payment-item.js'; import type { PaymentShippingOption } from '../@standard/w3c/payment-shipping-option.js'; export interface NativePaymentsChangeEventsInterface { addListener?: (eventName: string) => void; removeListeners?: (count: number) => void; setActiveEvents?: (requestId: string, eventNames: string[]) => Promise<void>; updatePaymentDetails?: ( update: NativePaymentDetailsUpdateInterface, displayItems: PaymentItem[], shippingOptions: PaymentShippingOption[] ) => Promise<void>; }