Files
alrahma_sunday_school_api/apps/api/dist/services/paypalService.d.ts
T
2026-06-11 03:22:12 -04:00

19 lines
833 B
TypeScript

export interface PayPalCreateOrderParams {
amount: number;
currency: string;
orderId: string;
description: string;
returnUrl: string;
cancelUrl: string;
}
export interface PayPalOrderResult {
orderId: string;
approveUrl: string;
status: string;
}
export declare function createOrder(params: PayPalCreateOrderParams): Promise<PayPalOrderResult>;
export declare function captureOrder(paypalOrderId: string): Promise<Record<string, unknown>>;
export declare function refundCapture(captureId: string, amount: number, currency: string, note?: string): Promise<Record<string, unknown>>;
export declare function verifyWebhookEvent(headers: Record<string, string | undefined>, rawBody: string): Promise<boolean>;
export declare function isConfigured(): boolean;
//# sourceMappingURL=paypalService.d.ts.map