feat: ( redirect ) add redirect url based on the domain name

This commit is contained in:
Abubeker Yasin
2026-07-14 14:16:48 +03:00
parent 1ace808b4a
commit ef5d643ba4
8 changed files with 179 additions and 11 deletions

View File

@@ -124,6 +124,12 @@ WAAFI_INSECURE_TLS=false
# Payment Configuration
PAYMENT_PROVIDERS_ENABLED=TELEBIRR,CBE_BIRR,EBIRR,CARD,WALLET,WAAFI
# Portal domains the browser-facing redirects (telebirr, waafi, Fayda WEB) may be rebased onto:
# the API swaps the configured URL's host for whichever of these the request came from. Comma-
# separated exact origins (scheme + host, no trailing slash). Leave empty to always use the
# configured URLs below. DMONEY is a server webhook and is never rebased.
PAYMENT_REDIRECT_ALLOWED_ORIGINS=
# Browser return targets after a hosted payment page (UX only — payment is confirmed by the
# webhook/queryStatus, never this redirect). Global fallback used when a method-specific URL
# below is unset. Most providers use a single redirect; Waafi takes separate success/failure.