import type { CheckoutParams, CheckoutResult, CustomerParams, WebhookEvent } from '../core/provider.interface.js'; import { AbstractPaymentProvider } from '../core/abstract-provider.js'; export interface ChargilyConfig { apiKey: string; testMode?: boolean; successUrl: string; failureUrl: string; webhookUrl?: string; } export declare class ChargilyProvider extends AbstractPaymentProvider { private config; readonly name = "chargily"; readonly supportedCurrencies: string[]; readonly supportedMethods: string[]; private baseUrl; constructor(config: ChargilyConfig); private headers; protected doCheckout(params: CheckoutParams): Promise; createCustomer(params: CustomerParams): Promise; getCustomer(customerId: string): Promise>; /** * Get payment details by checkout ID. */ getPayment(checkoutId: string): Promise>; protected doVerifyWebhook(body: string, signature: string): Promise; } /** * Create a Chargily provider from environment variables. * * Convention env (cohérence avec Stripe `STRIPE_SECRET_KEY`) : * - `CHARGILY_SECRET_KEY` (recommandé) — clé secrète côté serveur * - `CHARGILY_API_KEY` (legacy alias) — gardé pour rétro-compat des * déploiements existants. À retirer dans une future major version. * * `getEnv()` résout la cascade @mostajs/config (`PROD_*`/`TEST_*`/`DEV_*` * selon `MOSTA_ENV`) puis fallback non-préfixé. */ export declare function createChargilyProvider(config?: Partial): ChargilyProvider; //# sourceMappingURL=chargily.provider.d.ts.map