Add Mollie checkout flow, billing UI, and payment UX polish #71

Merged
uz1mani merged 73 commits from staging into main 2026-03-28 10:28:03 +00:00
13 changed files with 814 additions and 98 deletions
Showing only changes of commit 512368d79e - Show all commits

View File

@@ -54,9 +54,11 @@ export function initMollie(): MollieInstance | null {
if (mollieInstance) return mollieInstance
if (typeof window === 'undefined' || !window.Mollie || !MOLLIE_PROFILE_ID) return null
// Mollie auto-detects test/live mode based on the API key configured server-side.
// testmode must match the API key type on the backend (test_ = true, live_ = false)
const testmode = process.env.NEXT_PUBLIC_MOLLIE_TESTMODE === 'true'
mollieInstance = window.Mollie(MOLLIE_PROFILE_ID, {
locale: 'en_US',
testmode,
})
return mollieInstance
}