a0-purchases
Version:
Lightweight subscription management for AI apps with auto-detecting providers
16 lines • 635 B
TypeScript
import { BasePlatformAdapter, Purchase } from '../../core/adapters';
import { PurchasesPackage } from '../../revenuecat-types';
import { PurchasesConfig } from '../../types';
export declare class WebAdapter extends BasePlatformAdapter {
readonly name = "web";
private isStripeInitialized;
private logEvent;
private createError;
isSupported(): boolean;
init(config?: PurchasesConfig): Promise<void>;
private initializeStripe;
purchase(pkg: PurchasesPackage, userId?: string): Promise<Purchase>;
restore(_userId?: string): Promise<void>;
dispose(): void;
}
//# sourceMappingURL=WebAdapter.d.ts.map