diff --git a/src/pages/Account.tsx b/src/pages/Account.tsx index 054aae1..6cd8b63 100644 --- a/src/pages/Account.tsx +++ b/src/pages/Account.tsx @@ -7,8 +7,9 @@ import { Label } from "@/components/ui/label"; import { useAuth } from "@/hooks/useAuth"; import { useToast } from "@/hooks/use-toast"; import { supabase } from "@/integrations/supabase/client"; +import { getStripeEnvironment, hasPaymentsConfigured } from "@/lib/stripe"; import Header from "@/components/Header"; -import { Save, Package } from "lucide-react"; +import { Save, Package, ExternalLink } from "lucide-react"; // Validate Stockholm postal codes (100 00 - 199 99) diff --git a/supabase/functions/create-checkout/index.ts b/supabase/functions/create-checkout/index.ts index 11eb29a..3b0ccf8 100644 --- a/supabase/functions/create-checkout/index.ts +++ b/supabase/functions/create-checkout/index.ts @@ -204,12 +204,14 @@ Deno.serve(async (req) => { description: `Kakabonnemang – ${b.kg_per_week} kg/vecka`, metadata: { company: b.company, + customer_email: b.email, kg_per_week: String(b.kg_per_week), employees: String(b.employees), }, }, metadata: { company: b.company, + customer_email: b.email, kg_per_week: String(b.kg_per_week), }, } as any); @@ -251,6 +253,7 @@ Deno.serve(async (req) => { description: `Kakabonnemang – ${b.kg_per_week} kg/vecka`, metadata: { company: b.company, + customer_email: b.email, kg_per_week: String(b.kg_per_week), employees: String(b.employees), },