hp-app-bundle-sdk
Version:
A comprehensive SDK for building mini-applications.
18 lines • 821 B
TypeScript
import { MiniApp } from "../../core";
import { PaymentConfig, PaymentRequest, PaymentResult, PaymentVerification, IPaymentModule } from "./types";
export declare class PaymentManager implements IPaymentModule {
private config;
private miniapp;
constructor(miniapp: MiniApp, config?: Partial<PaymentConfig>);
makePayment(request: PaymentRequest): Promise<PaymentResult>;
verifyPayment(referenceId: string): Promise<PaymentVerification>;
getPaymentHistory(options?: {}): Promise<PaymentResult[]>;
private handleBrowserPayment;
private handleBrowserVerification;
private handleBrowserPaymentHistory;
private handleNativePayment;
private handleNativeVerification;
private handleNativePaymentHistory;
private postNativeMessage;
}
//# sourceMappingURL=PaymentManager.d.ts.map