UNPKG

@test-org122/merchant-connector

Version:

Package that defines how to write a dispute mediator. Includes an example mediator for testing, which always resolve's in the sender's favor.

17 lines (12 loc) 513 B
import { Subject } from "rxjs"; import { IResolutionResult } from "./IResolutionResult"; export interface IMerchantConnector { resolveChallenge(paymentId: string): Promise<IResolutionResult>; getPublicKey(): Promise<string>; onSendFundsRequested: Subject<ISendFundsRequest>; onAuthorizeFundsRequested: Subject<IAuthorizeFundsRequest>; // Sends a request to display the connector onDisplayRequested: Subject<void>; } export interface ISendFundsRequest {} export interface IAuthorizeFundsRequest {}