Implement new billing-gateway and update related services
Created a new package named billing-gateway which implements interfaces for different billing providers and provides a centralized service for payments. This will potentially help to maintain cleaner code by reducing direct dependencies on specific payment providers in the core application code. Additionally, made adjustments in existing services, like Stripe, to comply with this change. The relevant interfaces and types have been exported and imported accordingly.
This commit is contained in:
@@ -141,10 +141,10 @@ create type public.billing_provider as ENUM('stripe', 'lemon-squeezy', 'paddle')
|
||||
*/
|
||||
create table if not exists
|
||||
public.config (
|
||||
enable_organization_accounts boolean default true,
|
||||
enable_account_billing boolean default true,
|
||||
enable_organization_billing boolean default true,
|
||||
billing_provider public.billing_provider default 'stripe'
|
||||
enable_organization_accounts boolean default true not null,
|
||||
enable_account_billing boolean default true not null,
|
||||
enable_organization_billing boolean default true not null,
|
||||
billing_provider public.billing_provider default 'stripe' not null
|
||||
);
|
||||
|
||||
comment on table public.config is 'Configuration for the Supabase MakerKit.';
|
||||
|
||||
Reference in New Issue
Block a user