mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
feat: ( payments ) convert ETB to method currency before charging
This commit is contained in:
@@ -12,11 +12,8 @@ export default registerAs("waafi", () => ({
|
||||
webhookSecret: process.env.WAAFI_WEBHOOK_SECRET ?? "",
|
||||
// Wallet payment method (EVC/ZAAD/Sahal) — MWALLET_ACCOUNT requires the payer phone up front.
|
||||
paymentMethod: process.env.WAAFI_PAYMENT_METHOD ?? "MWALLET_ACCOUNT",
|
||||
// Waafi has no ETB; when set this overrides the asserted currency (USD/DJF/SLSH).
|
||||
// TODO(demo): revert to the env-driven line below after the demo. Temporarily FORCED to USD
|
||||
// here so the .env (WAAFI_CURRENCY) cannot override it.
|
||||
// currency: process.env.WAAFI_CURRENCY ?? "DJF",
|
||||
currency: "USD",
|
||||
// Currency is no longer overridden here — the calling app converts to the method's settlement
|
||||
// currency and the provider charges that value verbatim.
|
||||
// Browser redirect targets after the hosted page completes/fails (UX only; webhook is source of truth).
|
||||
successUrl: process.env.WAAFI_HPP_SUCCESS_URL ?? "",
|
||||
failureUrl: process.env.WAAFI_HPP_FAILURE_URL ?? "",
|
||||
|
||||
Reference in New Issue
Block a user