archetecture security fix
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
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
|
||||
Reference in New Issue
Block a user