@churchapps/apphelper-donations
Version:
Donation components for ChurchApps AppHelper
19 lines • 813 B
TypeScript
import type { Stripe, PaymentIntent } from "@stripe/stripe-js";
export interface ThreeDSResult {
success: boolean;
requiresAction: boolean;
error?: string;
paymentIntent?: PaymentIntent;
}
export declare class DonationHelper {
static handle3DSIfRequired(apiResult: any, stripe: Stripe | null): Promise<ThreeDSResult>;
static getInterval(intervalName: string): {
interval_count: number;
interval: string;
};
static getIntervalKeyName(intervalCount: number, intervalType: string): string;
static normalizeProvider(provider: string): string;
static isProvider(provider: string, expectedProvider: "stripe" | "paypal"): boolean;
static findGatewayByProvider(gateways: any[], provider: "stripe" | "paypal"): any;
}
//# sourceMappingURL=DonationHelper.d.ts.map