@rnw-community/react-native-payments
Version:
Accept Payments with Apple Pay and Android Pay using the Payment Request API.
21 lines • 1.09 kB
TypeScript
import type { PaymentDetailsUpdate } from '../../@standard/w3c/payment-details-update.js';
import type { PaymentRequestEventPayloadInterface } from '../../interface/payment-request-event-payload.interface.js';
import type { PaymentRequestEventListener } from '../../type/payment-request-event-listener.type.js';
import type { PaymentRequestEventType } from '../../type/payment-request-event.type.js';
import type { Maybe } from '@rnw-community/shared';
export declare class ChangeEventDispatcher {
private answer;
private isOpen;
private releaseAbandoned;
private readonly abandoned;
private readonly isRequestActive;
private readonly event;
constructor(type: PaymentRequestEventType, payload: PaymentRequestEventPayloadInterface, isRequestActive: () => boolean);
dispatch(listeners: readonly PaymentRequestEventListener[]): Promise<Maybe<PaymentDetailsUpdate>>;
abandon(): void;
private callListeners;
private callListener;
private resolveAnswer;
private readonly handleUpdateWith;
}
//# sourceMappingURL=change-event-dispatcher.d.ts.map