19 lines
833 B
TypeScript
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
|