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:
1 parent
2ac7d3f64c
commit
eb7c44ac11
8 files changed
+26
-14
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user