Kundenansicht neu P2: Adressen auf derselben Herkunft zulassen (Vorschau, Zahlungsseiten)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Sonnet 5.5 committed 2026-10-16 17:24:27 +00:00
1 parent 2ac7d3f64c
commit eb7c44ac11
8 files changed
+26 -14

No files matched your search

+2 -2
View File
@@ -5,7 +5,7 @@
import { api } from './api.js'
import { h, leeren } from './dom.js'
import { K, ladeAbo, safeUrl, meldeTitel, fmtEuro, fmtDatum, ABO_NICHT_GELADEN } from './ansicht-hilfen.js'
import { K, ladeAbo, sichereAdresse, meldeTitel, fmtEuro, fmtDatum, ABO_NICHT_GELADEN } from './ansicht-hilfen.js'
const laeufe = new WeakMap() // Wurzel → Nummer des jüngsten Aufrufs
const BEDINGUNGEN = '/abo-bedingungen.html'
@@ -101,7 +101,7 @@ function bestellung(daten, productKey, viewAs) {
method: 'POST',
body: { productKey, acceptTerms, startChoice, termsVersion: daten.termsVersion, offerId: offer?.id || '', lateStartAt: daten.lateStartAt || '' },
})
const ziel = safeUrl(url)
const ziel = sichereAdresse(url)
if (!ziel) throw new Error('Die Zahlungsseite konnte nicht geöffnet werden. Bitte später noch einmal versuchen.')
window.location.href = ziel
} catch (f) {