UNPKG

strapi-plugin-masterclass

Version:
31 lines (30 loc) 848 B
import type { Core } from '@strapi/strapi'; declare const stripeService: ({ strapi }: { strapi: Core.Strapi; }) => { stripe_client: any; success_url: string; cancel_url: string; getStripeClient(): Promise<any>; createCheckoutSession(params: any): Promise<{ error: boolean; status: string; msg: string; data?: undefined; checkout_session?: undefined; total?: undefined; } | { data: any; checkout_session: any; total: number; error?: undefined; status?: undefined; msg?: undefined; }>; getPaymentStatus(checkout_session: any): Promise<any>; }; export default stripeService; export type StripeService = { createCheckoutSession: (params: any) => Promise<any>; getPaymentStatus: (params: any) => Promise<any>; };