UNPKG

uz-pay-sdk

Version:

🚀 Universal Payment SDK for Uzbekistan - Integrate Payme, Click, UzCard, Humo & Apelsin with one simple API. Battle-tested, production-ready, 95% faster integration.

38 lines (37 loc) • 888 B
export declare class CreatePaymentDto { provider: 'payme' | 'click' | 'uzcard' | 'humo' | 'apelsin'; amount: number; orderId: string; description?: string; currency?: string; returnUrl?: string; phoneNumber?: string; cardNumber?: string; } export declare class CheckPaymentDto { provider: string; transactionId: string; } export declare class CancelPaymentDto { provider: string; transactionId: string; amount?: number; } export interface PaymentResponse { provider: string; transactionId: string; status: string; paymentUrl?: string; amount?: number; currency?: string; orderId?: string; message?: string; } export interface ProviderConfig { name: string; description: string; supportedMethods: string[]; currency: string[]; requiredFields: string[]; optionalFields: string[]; }