-- Configure database settings for handle-order-paid trigger -- These settings are required for the payment trigger to work -- Set base URL (change if different) DELETE FROM pg_settings WHERE name = 'app.base_url'; ALTER DATABASE postgres SET "app.base_url" = 'https://lovable.backoffice.biz.id'; -- Set service role key (you need to replace this with your actual service role key) -- Get it from: Supabase Dashboard > Project Settings > API > service_role (confidential) -- Uncomment and set the actual key: -- ALTER DATABASE postgres SET "app.service_role_key" = 'YOUR_SERVICE_ROLE_KEY_HERE'; -- Verify settings SELECT current_setting('app.base_url', true) as base_url, current_setting('app.service_role_key', true) as service_role_key;