diff --git a/data/providers/afribapay.json b/data/providers/afribapay.json index e3d02a4..77075ad 100644 --- a/data/providers/afribapay.json +++ b/data/providers/afribapay.json @@ -81,7 +81,7 @@ "brand": "mtn-momo" }, { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, { @@ -109,7 +109,7 @@ "brand": "moov-money" }, { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" } ], @@ -151,7 +151,7 @@ "brand": "mixx-by-yas" }, { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, { @@ -159,7 +159,8 @@ "brand": "djamo" }, { - "kind": "mobile_money" + "kind": "mobile_money", + "brand": "expresso" } ], "currencies": [ @@ -336,14 +337,15 @@ "brand": "orange-money" }, { - "kind": "mobile_money" + "kind": "mobile_money", + "brand": "telecel-money" } ], "currencies": [ "XAF" ], "source": "docs", - "note": "Central African Republic: the docs list Orange and Telecel." + "note": "Central African Republic: the docs list Orange and Telecel, whose mobile money is called Telecel Money (https://telecel-rca.com/?p=177, observed 2026-12-03)." }, { "country": "GA", diff --git a/data/providers/cinetpay.json b/data/providers/cinetpay.json index 2586005..5da50cd 100644 --- a/data/providers/cinetpay.json +++ b/data/providers/cinetpay.json @@ -59,7 +59,7 @@ "brand": "mtn-momo" }, { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, { @@ -85,7 +85,7 @@ "brand": "mixx-by-yas" }, { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, { @@ -311,7 +311,7 @@ { "country": "CI", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "collection", @@ -370,7 +370,7 @@ { "country": "CI", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "payout", @@ -406,7 +406,7 @@ { "country": "SN", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "collection", diff --git a/data/providers/fedapay.json b/data/providers/fedapay.json index f3eb270..868e904 100644 --- a/data/providers/fedapay.json +++ b/data/providers/fedapay.json @@ -120,7 +120,7 @@ "brand": "mtn-momo" }, { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, { @@ -296,7 +296,7 @@ { "country": "CI", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "collection", diff --git a/data/providers/flutterwave.json b/data/providers/flutterwave.json index a13d6ea..5934c31 100644 --- a/data/providers/flutterwave.json +++ b/data/providers/flutterwave.json @@ -353,7 +353,7 @@ "brand": "moov-money" }, { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" } ], diff --git a/data/providers/jeko.json b/data/providers/jeko.json index f29aa03..dc5d8a7 100644 --- a/data/providers/jeko.json +++ b/data/providers/jeko.json @@ -87,7 +87,7 @@ "brand": "moov-money" }, { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, { @@ -162,7 +162,7 @@ { "country": "CI", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "collection", @@ -222,7 +222,7 @@ { "country": "CI", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "collection", @@ -285,7 +285,7 @@ { "country": "CI", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "payout", @@ -350,7 +350,7 @@ { "country": "CI", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "payout", diff --git a/data/providers/lomi.json b/data/providers/lomi.json index 4f4342d..c86a12b 100644 --- a/data/providers/lomi.json +++ b/data/providers/lomi.json @@ -57,7 +57,7 @@ "collection": true, "payout": true, "methods": [ - { "kind": "mobile_money", "brand": "wave" }, + { "kind": "wallet", "brand": "wave" }, { "kind": "mobile_money", "brand": "mtn-momo" }, { "kind": "card" }, { "kind": "apple_pay" }, diff --git a/data/providers/novasend.json b/data/providers/novasend.json index f3b2756..7bfa2ff 100644 --- a/data/providers/novasend.json +++ b/data/providers/novasend.json @@ -129,7 +129,7 @@ "brand": "orange-money" }, { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, { @@ -238,7 +238,7 @@ { "country": "CI", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "collection", @@ -310,7 +310,7 @@ { "country": "CI", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "payout", @@ -537,7 +537,7 @@ { "country": "CI", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "collection", @@ -549,7 +549,7 @@ { "country": "CI", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "withdrawal", diff --git a/data/providers/nyole.json b/data/providers/nyole.json index be4037a..800165b 100644 --- a/data/providers/nyole.json +++ b/data/providers/nyole.json @@ -61,7 +61,7 @@ "brand": "orange-money" }, { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, { @@ -91,7 +91,7 @@ "brand": "orange-money" }, { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, { diff --git a/data/providers/paydunya.json b/data/providers/paydunya.json index 90eacd7..eaa53de 100644 --- a/data/providers/paydunya.json +++ b/data/providers/paydunya.json @@ -54,7 +54,7 @@ "payout": true, "methods": [ { "kind": "mobile_money", "brand": "orange-money" }, - { "kind": "mobile_money", "brand": "wave" }, + { "kind": "wallet", "brand": "wave" }, { "kind": "mobile_money", "brand": "mixx-by-yas" }, { "kind": "wallet", "brand": "wizall-money" }, { "kind": "wallet", "brand": "djamo" }, @@ -72,7 +72,7 @@ { "kind": "mobile_money", "brand": "orange-money" }, { "kind": "mobile_money", "brand": "mtn-momo" }, { "kind": "mobile_money", "brand": "moov-money" }, - { "kind": "mobile_money", "brand": "wave" }, + { "kind": "wallet", "brand": "wave" }, { "kind": "wallet", "brand": "djamo" }, { "kind": "card" } ], diff --git a/data/providers/paystack.json b/data/providers/paystack.json index 74041fa..c2ebfc1 100644 --- a/data/providers/paystack.json +++ b/data/providers/paystack.json @@ -208,7 +208,7 @@ "kind": "card" }, { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, { @@ -267,7 +267,7 @@ { "country": "CI", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "collection", diff --git a/data/providers/wave.json b/data/providers/wave.json index 1ba083d..76f09eb 100644 --- a/data/providers/wave.json +++ b/data/providers/wave.json @@ -7,7 +7,7 @@ "wallet" ], "website": "https://www.wave.com", - "summary": "Mobile money service. Wave Digital Finance is listed as an e-money institution in Senegal. Wave Business accepts merchant payments; its developer docs describe API access with a Wave Business account, a checkout API and webhooks.", + "summary": "Payment wallet. Wave Digital Finance is listed as an e-money institution in Senegal. Wave Business accepts merchant payments; its developer docs describe API access with a Wave Business account, a checkout API and webhooks.", "sources": { "umoa-register-2026-06": { "url": "https://www.cb-umoa.org/sites/default/files/Liste%20%20des%20EME%20ET%20EP%20de%20l%27UMOA%202026.pdf", @@ -87,7 +87,7 @@ "collection": true, "methods": [ { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" } ], @@ -101,7 +101,7 @@ "payout": true, "methods": [ { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" } ], @@ -116,7 +116,7 @@ "collection": true, "methods": [ { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" } ], @@ -130,7 +130,7 @@ "payout": true, "methods": [ { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" } ], @@ -145,7 +145,7 @@ "collection": true, "methods": [ { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" } ], @@ -159,7 +159,7 @@ "payout": true, "methods": [ { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" } ], @@ -174,7 +174,7 @@ "collection": true, "methods": [ { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" } ], @@ -188,7 +188,7 @@ "payout": true, "methods": [ { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" } ], @@ -203,7 +203,7 @@ "collection": true, "methods": [ { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" } ], @@ -217,7 +217,7 @@ "payout": true, "methods": [ { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" } ], @@ -247,7 +247,7 @@ { "country": "CI", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "collection", @@ -260,7 +260,7 @@ { "country": "CI", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "payout", @@ -273,7 +273,7 @@ { "country": "SN", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "collection", @@ -286,7 +286,7 @@ { "country": "SN", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "payout", @@ -299,7 +299,7 @@ { "country": "ML", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "collection", @@ -312,7 +312,7 @@ { "country": "ML", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "payout", @@ -325,7 +325,7 @@ { "country": "BF", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "collection", @@ -338,7 +338,7 @@ { "country": "BF", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "payout", @@ -351,7 +351,7 @@ { "country": "NE", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "collection", @@ -364,7 +364,7 @@ { "country": "NE", "method": { - "kind": "mobile_money", + "kind": "wallet", "brand": "wave" }, "direction": "payout", diff --git a/data/reference/brand-logos.json b/data/reference/brand-logos.json index 026eb39..c87fb88 100644 --- a/data/reference/brand-logos.json +++ b/data/reference/brand-logos.json @@ -4,6 +4,7 @@ {"brand": "celtiis-cash", "variant": "mark", "file": "logos/brands/celtiis-cash-mark.png", "url": "https://www.celtiis.bj/wp-content/uploads/2026/05/cropped-logo-1-192x192.png", "observed_at": "2026-11-19"}, {"brand": "chipper-cash", "variant": "mark", "file": "logos/brands/chipper-cash-mark.png", "url": "https://cdn.prod.website-files.com/63772f94fd90e7cde2056fe8/63772f94fd90e7b5e305701f_chippercash-webclip.png", "observed_at": "2026-11-19"}, {"brand": "djamo", "variant": "mark", "file": "logos/brands/djamo-mark.png", "url": "https://www.djamo.com/icons/djamo_favicon.png", "observed_at": "2026-11-19"}, + {"brand": "expresso", "variant": "mark", "file": "logos/brands/expresso-mark.png", "url": "https://www.expressotelecom.sn/wp-content/uploads/2023/05/logo-expresso.png", "observed_at": "2026-12-03"}, {"brand": "kuda", "variant": "mark", "file": "logos/brands/kuda-mark.png", "url": "https://www.kuda.com/wp-content/uploads/2026/07/cropped-Favicon-1-192x192.png", "observed_at": "2026-11-19"}, {"brand": "mastercard", "variant": "mark", "file": "logos/brands/mastercard-mark.svg", "url": "https://www.mastercard.com/content/dam/brandcenter/assets/downloads/mc_symbol_SVG.zip", "observed_at": "2026-11-19"}, {"brand": "mixx-by-yas", "variant": "mark", "file": "logos/brands/mixx-by-yas-mark.svg", "url": "https://yas.tg/wp-content/uploads/2024/11/favicon.svg", "observed_at": "2026-11-19"}, @@ -17,6 +18,7 @@ {"brand": "palmpay", "variant": "mark", "file": "logos/brands/palmpay-mark.png", "url": "https://www.palmpay.com/favicon.ico", "observed_at": "2026-11-19"}, {"brand": "sama-money", "variant": "mark", "file": "logos/brands/sama-money-mark.png", "url": "https://sama.money/favicon-32.png", "observed_at": "2026-11-19"}, {"brand": "telecel-cash", "variant": "mark", "file": "logos/brands/telecel-cash-mark.png", "url": "https://telecel.com.gh/icons/icon-384x384.png", "observed_at": "2026-11-19"}, + {"brand": "telecel-money", "variant": "mark", "file": "logos/brands/telecel-money-mark.png", "url": "https://telecel-rca.com/wp-content/uploads/2026/08/cropped-logo_car_05_blanc-192x192.png", "observed_at": "2026-12-03"}, {"brand": "verve", "variant": "wordmark", "file": "logos/brands/verve-wordmark.svg", "url": "https://myverveworld.com/build-assets/Verve-logo-dark.Dz4FhTOB_Zenuao.svg", "observed_at": "2026-11-27"}, {"brand": "visa", "variant": "wordmark", "file": "logos/brands/visa-wordmark.png", "url": "https://cdn.visa.com/v2/assets/images/logos/visa/blue/logo.png", "observed_at": "2026-11-19"}, {"brand": "wave", "variant": "mark", "file": "logos/brands/wave-mark.png", "url": "https://www.wave.com/img/favicon.png", "observed_at": "2026-11-19"}, diff --git a/data/reference/brands.json b/data/reference/brands.json index 994b24c..9599bdc 100644 --- a/data/reference/brands.json +++ b/data/reference/brands.json @@ -2,13 +2,15 @@ {"id": "mtn-momo", "name": "MTN MoMo", "kind": "mobile_money", "group": "MTN Group", "countries": ["BJ", "CG", "CI", "CM", "GH", "LR", "NG", "RW", "SS", "SZ", "UG", "ZA", "ZM"]}, {"id": "moov-money", "name": "Moov Money", "kind": "mobile_money", "group": "Moov Africa (Maroc Telecom)", "countries": ["BF", "BJ", "CI", "GA", "ML", "NE", "TD", "TG"], "former_names": ["Flooz", "Moov Money Flooz"]}, {"id": "orange-money", "name": "Orange Money", "kind": "mobile_money", "group": "Orange Middle East and Africa", "countries": ["BF", "BW", "CD", "CF", "CI", "CM", "GN", "GW", "LR", "MA", "MG", "ML", "SL", "SN", "TN"]}, - {"id": "wave", "name": "Wave", "kind": "mobile_money", "group": "Wave Mobile Money", "countries": ["BF", "CI", "CM", "GM", "ML", "SN", "UG"]}, + {"id": "wave", "name": "Wave", "kind": "wallet", "group": "Wave Mobile Money", "countries": ["BF", "CI", "CM", "GM", "ML", "SN", "UG"]}, {"id": "mpesa", "name": "M-Pesa", "kind": "mobile_money", "group": "Safaricom and Vodacom", "countries": ["CD", "ET", "KE", "LS", "MZ", "TZ"]}, {"id": "airtel-money", "name": "Airtel Money", "kind": "mobile_money", "group": "Airtel Africa", "countries": ["CD", "CG", "GA", "KE", "MG", "MW", "NE", "RW", "TD", "TZ", "UG", "ZM"]}, {"id": "celtiis-cash", "name": "Celtiis Cash", "kind": "mobile_money", "group": "Celtiis (SBIN)", "countries": ["BJ"]}, {"id": "mixx-by-yas", "name": "Mixx by Yas", "kind": "mobile_money", "group": "Axian Telecom (Yas)", "countries": ["SN", "TG", "TZ"], "former_names": ["T-Money", "TMoney", "Free Money", "Tigo Pesa"]}, {"id": "vodafone-cash", "name": "Vodafone Cash", "kind": "mobile_money", "group": "Vodafone Egypt", "countries": ["EG"]}, {"id": "telecel-cash", "name": "Telecel Cash", "kind": "mobile_money", "group": "Telecel Group", "countries": ["GH"], "former_names": ["Vodafone Cash"]}, + {"id": "telecel-money", "name": "Telecel Money", "kind": "mobile_money", "group": "Telecel Group", "countries": ["CF"]}, + {"id": "expresso", "name": "Expresso", "kind": "mobile_money", "group": "Expresso", "countries": ["SN"]}, {"id": "at-money", "name": "AT Money", "kind": "mobile_money", "group": "AT Ghana", "countries": ["GH"], "former_names": ["AirtelTigo Money"]}, {"id": "visa", "name": "Visa", "kind": "card_scheme", "group": "Visa Inc.", "countries": ["AO", "BF", "BJ", "BW", "CI", "CM", "CV", "DZ", "EG", "ET", "GA", "GH", "KE", "LY", "MA", "ML", "MU", "MZ", "NA", "NG", "RW", "SC", "SN", "SO", "TG", "TN", "TZ", "UG", "ZA", "ZM", "ZW"]}, {"id": "mastercard", "name": "Mastercard", "kind": "card_scheme", "group": "Mastercard Inc.", "countries": ["EG", "GH", "KE", "MA", "MU", "NG", "UG", "ZA"]}, diff --git a/public/logos/brands/expresso-mark.png b/public/logos/brands/expresso-mark.png new file mode 100644 index 0000000..124e4a9 Binary files /dev/null and b/public/logos/brands/expresso-mark.png differ diff --git a/public/logos/brands/telecel-money-mark.png b/public/logos/brands/telecel-money-mark.png new file mode 100644 index 0000000..c78356f Binary files /dev/null and b/public/logos/brands/telecel-money-mark.png differ diff --git a/src/components/CoverageList.astro b/src/components/CoverageList.astro index e1b72da..7421ceb 100644 --- a/src/components/CoverageList.astro +++ b/src/components/CoverageList.astro @@ -7,7 +7,7 @@ import { dataText, providerStrings } from '../i18n/translate'; import type { Provider } from '../schema/provider'; import { CAPABILITY_KINDS } from '../schema/constants'; import { coverageView } from '../lib/site-coverage'; -import { methodGroups } from '../lib/method-groups'; +import { isOtherOperator, methodGroups } from '../lib/method-groups'; import { flagUrl } from '../lib/site-format'; import type { Lookups } from '../lib/site-types'; import CheckIcon from './CheckIcon.astro'; @@ -62,7 +62,7 @@ const capabilities = [...provider.capabilities] {groups[r]?.map((group) => (
{labels.families[group.family]} - {group.methods.map((method) => )} + {group.methods.map((method) => )}
))} diff --git a/src/components/MethodChip.astro b/src/components/MethodChip.astro index a3def5e..33f263b 100644 --- a/src/components/MethodChip.astro +++ b/src/components/MethodChip.astro @@ -8,7 +8,7 @@ import type { CoverageRow, Lookups } from '../lib/site-types'; * A payment method with its published logo, or the pictogram of its kind when none is * published: a brand is never shown by an initial the brand does not use. A wordmark already * spells the name, so it stands alone and carries the name for screen readers. `label` names - * a card without brand by its origin. + * a card without brand by its origin, or an operator the source leaves unnamed. */ interface Props { method: CoverageRow['methods'][number]; @@ -40,9 +40,9 @@ const alone = logo?.wide === true; .method-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; line-height: 1; white-space: nowrap; color: var(--ink); } .method-chip.is-logo { padding: 0 11px; } .method-chip-badge { display: grid; place-items: center; width: 20px; height: 20px; flex: none; } - .method-chip-badge img { width: 18px; height: 18px; object-fit: contain; } + .method-chip-badge img { width: 18px; height: 18px; object-fit: contain; border-radius: 5px; } .method-chip-badge.is-wide { width: auto; } - .method-chip-badge.is-wide img { width: 34px; height: 20px; object-fit: contain; } + .method-chip-badge.is-wide img { width: 34px; height: 20px; object-fit: contain; border-radius: 0; } .method-chip-badge.is-icon { border-radius: 50%; background: var(--lagune-50); color: var(--lagune); } .method-chip-badge.is-icon :global(svg) { width: 13px; height: 13px; } diff --git a/src/components/provider/EmptySection.astro b/src/components/provider/EmptySection.astro index 8fb4509..0ecb14c 100644 --- a/src/components/provider/EmptySection.astro +++ b/src/components/provider/EmptySection.astro @@ -1,29 +1,26 @@ --- +import type { GapStrings } from '../../i18n/provider-types'; import type { Locale } from '../../i18n/locales'; import { localePath, providerStrings } from '../../i18n/translate'; import { reportPath } from '../../contribute/links'; import type { Topic } from '../../contribute/types'; +import { SECTION_ICONS } from '../../lib/section-icons'; +import GapPanel from './GapPanel.astro'; -/** The one empty state of a sheet section: nothing sourced yet, and where to suggest a source. */ +/** A sheet section nothing is sourced in yet, and where to suggest a source. */ interface Props { locale: Locale; /** Provider the report form opens about. */ slug: string; /** Subject of the report form the link opens. */ topic: Topic; - /** Title of the section, so that each link has its own name. */ - section: string; + section: keyof GapStrings['texts']; } const { locale, slug, topic, section } = Astro.props; const strings = providerStrings(locale); --- -

- {strings.noSourcedValue} - {strings.suggestSource} -

- - + + {strings.suggestSource} + diff --git a/src/components/provider/GapPanel.astro b/src/components/provider/GapPanel.astro new file mode 100644 index 0000000..ecbe8c4 --- /dev/null +++ b/src/components/provider/GapPanel.astro @@ -0,0 +1,50 @@ +--- +import SectionIcon from './SectionIcon.astro'; + +/** The panel of a section without data: what is missing, and what to do about it in the default slot. */ +interface Props { + drawing: string; + title: string; + text: string; + /** What else the source says. */ + note?: string; + /** Said under the text, such as where and when it was seen. */ + seen?: string; + /** The provider itself keeps the data private, as opposed to data not checked yet. */ + stated?: boolean; +} + +const { drawing, title, text, note, seen, stated = false } = Astro.props; +--- + +
+ +
+

{title}

+

{text}

+ {note !== undefined &&

{note}

} + {seen !== undefined &&

{seen}

} +
+
+
+ + diff --git a/src/components/provider/OperationsGrid.astro b/src/components/provider/OperationsGrid.astro new file mode 100644 index 0000000..a6d5715 --- /dev/null +++ b/src/components/provider/OperationsGrid.astro @@ -0,0 +1,68 @@ +--- +import type { Locale } from '../../i18n/locales'; +import { localePath, providerStrings } from '../../i18n/translate'; +import { reportPath } from '../../contribute/links'; +import { OPERATION_ICONS } from '../../lib/section-icons'; +import type { Fact } from '../../lib/site-types'; +import type { Provider } from '../../schema/provider'; +import NoteText from '../NoteText.astro'; +import SectionIcon from './SectionIcon.astro'; + +/** The points of the operations section: tinted when known, grey when no source says. */ +interface Props { + locale: Locale; + provider: Provider; + /** In the order of `operationsFacts`. */ + facts: readonly Fact[]; +} + +const { locale, provider, facts } = Astro.props; +const strings = providerStrings(locale); +const none = facts.every((fact) => fact.value === null); +--- + + +{ + none && ( +

+ {strings.gaps.operations(provider.name)} + {strings.suggestSource} +

+ ) +} + + diff --git a/src/components/provider/PrivateFees.astro b/src/components/provider/PrivateFees.astro new file mode 100644 index 0000000..9c4e017 --- /dev/null +++ b/src/components/provider/PrivateFees.astro @@ -0,0 +1,29 @@ +--- +import type { Locale } from '../../i18n/locales'; +import { dataText, localePath, providerStrings } from '../../i18n/translate'; +import { reportPath } from '../../contribute/links'; +import { SECTION_ICONS } from '../../lib/section-icons'; +import { sourceLink } from '../../lib/site-format'; +import type { Provider } from '../../schema/provider'; +import GapPanel from './GapPanel.astro'; + +/** The provider was seen not to publish its fees. */ +interface Props { + locale: Locale; + provider: Provider; + /** The sourced "no public pricing"; the source key `pricing` is a pricing page. */ + statement: NonNullable; +} + +const { locale, provider, statement } = Astro.props; +const { source, note } = statement; +const strings = providerStrings(locale); +const t = strings.gaps.privateFees; +const { url, observedAt } = sourceLink(provider, source, strings); +const onPricing = source === 'pricing'; +--- + + + {onPricing ? t.openPricing : t.openSource} {strings.newTab} + {t.report} + diff --git a/src/components/provider/ProviderPage.astro b/src/components/provider/ProviderPage.astro index e411c5c..582b8ce 100644 --- a/src/components/provider/ProviderPage.astro +++ b/src/components/provider/ProviderPage.astro @@ -8,6 +8,8 @@ import IdentityBadges from './IdentityBadges.astro'; import Layout from '../Layout.astro'; import LicenceList from '../LicenceList.astro'; import LicenceSeal from '../LicenceSeal.astro'; +import OperationsGrid from './OperationsGrid.astro'; +import PrivateFees from './PrivateFees.astro'; import SourceRecap from '../SourceRecap.astro'; import SourceRef from '../SourceRef.astro'; import type { Locale } from '../../i18n/locales'; @@ -64,7 +66,6 @@ const empty = { fees: provider.fees.length === 0, settlements: settlements.length === 0, onboarding: onboarding.every((fact) => fact.value === null), - operations: operations.every((fact) => fact.value === null), integration: transparency.every((fact) => fact.value === null), licences: provider.licences.length + provider.not_found_in.length === 0, }; @@ -113,19 +114,27 @@ const sections = (['coverage', 'fees', 'settlements', 'onboarding', 'operations'

{strings.sections.coverage}

- {empty.coverage ? : } + {empty.coverage ? : }

{strings.sections.fees}

- {empty.fees ? : } + { + !empty.fees ? ( + + ) : provider.integration.public_pricing?.value === false ? ( + + ) : ( + + ) + }

{strings.sections.settlements}

{ empty.settlements ? ( - + ) : ( <>

{strings.settlements.intro}

@@ -138,19 +147,19 @@ const sections = (['coverage', 'fees', 'settlements', 'onboarding', 'operations'

{strings.sections.onboarding}

- {empty.onboarding ? : } + {empty.onboarding ? : }

{strings.sections.operations}

- {empty.operations ? : } +

{strings.sections.integration}

{ empty.integration ? ( - + ) : ( <>

{strings.integrationIntro}

@@ -162,7 +171,7 @@ const sections = (['coverage', 'fees', 'settlements', 'onboarding', 'operations'

{strings.sections.licences}

- {empty.licences ? : } + {empty.licences ? : }
diff --git a/src/components/provider/SectionIcon.astro b/src/components/provider/SectionIcon.astro new file mode 100644 index 0000000..d896c38 --- /dev/null +++ b/src/components/provider/SectionIcon.astro @@ -0,0 +1,10 @@ +--- +/** A drawing of a sheet section. Decorative: its name is always next to it. */ +interface Props { + drawing: string; +} + +const { drawing } = Astro.props; +--- + + diff --git a/src/i18n/data-fr.ts b/src/i18n/data-fr.ts index ccea756..82f9461 100644 --- a/src/i18n/data-fr.ts +++ b/src/i18n/data-fr.ts @@ -5,8 +5,8 @@ export const DATA_FR: Readonly> = { "Payment aggregator operated by Open SI, registered in Benin. Accepts mobile money and cards in XOF; its pricing page lists Benin, Togo, Cote d'Ivoire, Senegal, Niger and Burkina Faso, with rates that depend on the plan.": 'Agrégateur de paiement exploité par Open SI, société immatriculée au Bénin. Accepte le mobile money et les cartes en XOF ; sa page de tarifs liste le Bénin, le Togo, la Côte d’Ivoire, le Sénégal, le Niger et le Burkina Faso, avec des taux qui dépendent de la formule.', - 'Mobile money service. Wave Digital Finance is listed as an e-money institution in Senegal. Wave Business accepts merchant payments; its developer docs describe API access with a Wave Business account, a checkout API and webhooks.': - 'Service de mobile money. Wave Digital Finance figure comme établissement de monnaie électronique au Sénégal. Wave Business accepte les paiements marchands ; sa documentation développeur décrit un accès API avec un compte Wave Business, une API de paiement et des webhooks.', + 'Payment wallet. Wave Digital Finance is listed as an e-money institution in Senegal. Wave Business accepts merchant payments; its developer docs describe API access with a Wave Business account, a checkout API and webhooks.': + 'Portefeuille de paiement. Wave Digital Finance figure comme établissement de monnaie électronique au Sénégal. Wave Business accepte les paiements marchands ; sa documentation développeur décrit un accès API avec un compte Wave Business, une API de paiement et des webhooks.', 'Appli mobile': 'Appli mobile', Integration: 'Intégration', @@ -546,8 +546,8 @@ export const DATA_FR: Readonly> = { "Togo : la documentation liste Mixx by Yas sous son ancien nom, T-Money.", "DR Congo: the table gives CDF only. A sample response of the same docs also shows USD.": "Congo-Kinshasa : le tableau indique seulement le CDF. Un exemple de réponse de la même documentation montre aussi l’USD.", - "Central African Republic: the docs list Orange and Telecel.": - "République centrafricaine : la documentation liste Orange et Telecel.", + "Central African Republic: the docs list Orange and Telecel, whose mobile money is called Telecel Money (https://telecel-rca.com/?p=177, observed 2026-12-03).": + "République centrafricaine : la documentation liste Orange et Telecel, dont le mobile money s’appelle Telecel Money (https://telecel-rca.com/?p=177, consulté le 2026-12-03).", "The docs call their list indicative and name 14 countries; the site announces more than 20. Cote d'Ivoire: Djamo is described for collection only.": "La documentation dit sa liste indicative et nomme 14 pays ; le site en annonce plus de 20. Côte d’Ivoire : Djamo est décrit pour l’encaissement seulement.", "Senegal: the docs list Mixx by Yas under its former name, Free, and Expresso. Djamo is described for collection only.": diff --git a/src/i18n/provider-en.ts b/src/i18n/provider-en.ts index 5a6092d..6258587 100644 --- a/src/i18n/provider-en.ts +++ b/src/i18n/provider-en.ts @@ -16,6 +16,28 @@ export const PROVIDER_EN: ProviderStrings = { noSourcedValue: 'No sourced data yet', unknown: 'Unknown', suggestSource: 'Suggest a source', + gaps: { + notChecked: 'Not checked yet', + texts: { + coverage: 'We have no source yet on the countries and payment methods of this provider.', + fees: 'We have no source yet on the fees of this provider.', + settlements: 'We have no source yet on how long this provider takes to pay merchants.', + onboarding: 'We have no source yet on how to open an account.', + integration: 'We have no source yet on the developer tools of this provider.', + licences: 'We have no source yet on the licences of this provider.', + }, + toCheck: 'To check', + operations: (name) => `These points have not been checked for ${name} yet.`, + privateFees: { + title: 'Fees not public', + text: (name) => `${name} does not publish a fee table. Contact the provider to know the fees for your business.`, + seenOnPricing: (date) => `Seen on its pricing page on ${date}`, + seen: (date) => `Seen on ${date}`, + openPricing: 'See its pricing page', + openSource: 'See the source', + report: 'Report a fee', + }, + }, yes: 'Yes', no: 'No', none: 'None', @@ -44,8 +66,9 @@ export const PROVIDER_EN: ProviderStrings = { collect: 'Collect', send: 'Send', methods: 'Payment methods', - families: { cards: 'Cards', mobile: 'Mobile money', other: 'Other' }, + families: { cards: 'Cards', mobile: 'Mobile money', wallets: 'Wallets', other: 'Other' }, unknown: 'Not stated', + otherOperator: 'Other operator', singleCurrency: (code, name) => `All amounts in ${code}, ${name}`, services: 'Services', capabilities: { diff --git a/src/i18n/provider-fr.ts b/src/i18n/provider-fr.ts index 9d2e70c..f07dffe 100644 --- a/src/i18n/provider-fr.ts +++ b/src/i18n/provider-fr.ts @@ -16,6 +16,28 @@ export const PROVIDER_FR: ProviderStrings = { noSourcedValue: 'Pas encore de donnée sourcée', unknown: 'Inconnu', suggestSource: 'Proposer une source', + gaps: { + notChecked: 'Pas encore vérifié', + texts: { + coverage: 'Nous n’avons pas encore de source sur les pays et les moyens de paiement de ce service.', + fees: 'Nous n’avons pas encore de source sur les tarifs de ce service.', + settlements: 'Nous n’avons pas encore de source sur les délais de reversement de ce service.', + onboarding: 'Nous n’avons pas encore de source sur l’ouverture d’un compte.', + integration: 'Nous n’avons pas encore de source sur les outils développeur de ce service.', + licences: 'Nous n’avons pas encore de source sur les agréments de ce service.', + }, + toCheck: 'À vérifier', + operations: (name) => `Ces points n’ont pas encore été vérifiés pour ${name}.`, + privateFees: { + title: 'Tarifs non publics', + text: (name) => `${name} ne publie pas de grille tarifaire. Contactez le service pour connaître les frais de votre activité.`, + seenOnPricing: (date) => `Constaté sur sa page Tarifs, le ${date}`, + seen: (date) => `Constaté le ${date}`, + openPricing: 'Voir sa page Tarifs', + openSource: 'Voir la source', + report: 'Signaler un tarif', + }, + }, yes: 'Oui', no: 'Non', none: 'Aucun', @@ -35,8 +57,8 @@ export const PROVIDER_FR: ProviderStrings = { securityDeposit: 'Dépôt de garantie', limits: 'Montant par paiement', recurring: 'Paiements récurrents', - plugins: 'Plugins e-commerce', - payoutRequirements: 'Avant d’envoyer de l’argent', + plugins: 'Extensions e-commerce', + payoutRequirements: 'Conditions pour envoyer', prohibited: 'Activités refusées', }, coverage: { @@ -44,8 +66,9 @@ export const PROVIDER_FR: ProviderStrings = { collect: 'Encaisser', send: 'Envoyer', methods: 'Moyens de paiement', - families: { cards: 'Cartes', mobile: 'Mobile money', other: 'Autres' }, + families: { cards: 'Cartes', mobile: 'Mobile money', wallets: 'Portefeuilles', other: 'Autres' }, unknown: 'Non précisé', + otherOperator: 'Autre opérateur', singleCurrency: (code, name) => `Tous les montants en ${code}, ${name}`, services: 'Services', capabilities: { diff --git a/src/i18n/provider-types.ts b/src/i18n/provider-types.ts index 1614bef..33c7a32 100644 --- a/src/i18n/provider-types.ts +++ b/src/i18n/provider-types.ts @@ -24,6 +24,7 @@ export interface ProviderStrings { readonly unknown: string; /** Link of an empty section to the correction form. */ readonly suggestSource: string; + readonly gaps: GapStrings; readonly yes: string; readonly no: string; readonly none: string; @@ -48,6 +49,25 @@ export interface ProviderStrings { readonly licenceTypes: Names; } +/** What a section says when the sheet has nothing to show in it. */ +export interface GapStrings { + readonly notChecked: string; + /** What is missing, per section. */ + readonly texts: Readonly, string>>; + /** Answer of one point of the operations section. */ + readonly toCheck: string; + readonly operations: (name: string) => string; + readonly privateFees: { + readonly title: string; + readonly text: (name: string) => string; + readonly seenOnPricing: (date: string) => string; + readonly seen: (date: string) => string; + readonly openPricing: string; + readonly openSource: string; + readonly report: string; + }; +} + export interface SectionStrings { readonly coverage: string; readonly fees: string; @@ -86,6 +106,8 @@ export interface CoverageStrings { /** Title of each family of methods in a country row, when the sheet has several. */ readonly families: Readonly>; readonly unknown: string; + /** An operator the source does not name, next to operators it names. */ + readonly otherOperator: string; /** Shown once above the table when every country uses the same currency. */ readonly singleCurrency: (code: string, name: string) => string; /** Heading of the row of extra services (bulk payouts, refunds...). */ diff --git a/src/lib/method-groups.ts b/src/lib/method-groups.ts index 7f96092..182981b 100644 --- a/src/lib/method-groups.ts +++ b/src/lib/method-groups.ts @@ -1,15 +1,15 @@ import type { MethodKind } from './offer-types'; import type { CoverageRow, MethodFamily, MethodGroup } from './site-types'; -const FAMILY_ORDER: readonly MethodFamily[] = ['cards', 'mobile', 'other']; +const FAMILY_ORDER: readonly MethodFamily[] = ['cards', 'mobile', 'wallets', 'other']; -/** Wallets stay with the other means: most are a bank's or a fintech's app, not mobile money. */ +/** Mobile money belongs to a telecom operator; a wallet is an app of its own, such as Wave or Djamo. */ const FAMILIES: Record = { card: 'cards', apple_pay: 'cards', google_pay: 'cards', mobile_money: 'mobile', - wallet: 'other', + wallet: 'wallets', bank_transfer: 'other', ussd: 'other', qr: 'other', @@ -24,3 +24,8 @@ export function methodGroups(methods: CoverageRow['methods']): MethodGroup[] { return groups.filter((group) => group.methods.length > 0); } + +/** Whether a method is an operator the source does not name, next to operators it names. */ +export function isOtherOperator(method: CoverageRow['methods'][number], siblings: CoverageRow['methods']): boolean { + return method.kind === 'mobile_money' && method.brand === undefined && siblings.some(({ brand }) => brand !== undefined); +} diff --git a/src/lib/offer-match.ts b/src/lib/offer-match.ts index da25ea3..d349230 100644 --- a/src/lib/offer-match.ts +++ b/src/lib/offer-match.ts @@ -2,6 +2,9 @@ import { METHOD_KINDS } from '../schema/constants'; import type { Provider } from '../schema/provider'; import type { BestMatches, MethodChoice, MethodKind, OfferChoice, OfferWish, Profile } from './offer-types'; +/** Keys a method had before it was filed elsewhere: shared addresses keep working. */ +const MOVED: ReadonlyMap = new Map([['mobile_money.wave', 'wallet.wave']]); + const PROFILES: readonly Profile[] = ['individual', 'company']; /** `card`, or `mobile_money.orange-money`: the form a method takes in an address and in offer keys. */ @@ -11,7 +14,7 @@ export function methodKey(method: MethodChoice): string { /** The method a key names, or `null` when the kind is unknown. */ export function parseMethodKey(key: string): MethodChoice | null { - const [kind, brand, extra] = key.split('.'); + const [kind, brand, extra] = (MOVED.get(key) ?? key).split('.'); const known = METHOD_KINDS.find((value): value is MethodKind => value === kind); if (known === undefined || extra !== undefined || brand === '') return null; diff --git a/src/lib/section-icons.ts b/src/lib/section-icons.ts new file mode 100644 index 0000000..8794efd --- /dev/null +++ b/src/lib/section-icons.ts @@ -0,0 +1,21 @@ +import { CONTRIBUTE_ICONS } from '../contribute/icons'; + +/** Drawings of sheet sections and points, on an 18 by 18 grid, stroked in the current colour. */ +export const SECTION_ICONS = { + coverage: CONTRIBUTE_ICONS.globe, + fees: CONTRIBUTE_ICONS.percent, + settlements: CONTRIBUTE_ICONS.bank, + onboarding: CONTRIBUTE_ICONS.id, + integration: CONTRIBUTE_ICONS.code, + licences: CONTRIBUTE_ICONS.seal, + privateFees: '', +} as const; + +/** In the order of `operationsFacts`: amount, recurring payments, plugins, conditions, refused activities. */ +export const OPERATION_ICONS: readonly string[] = [ + CONTRIBUTE_ICONS.percent, + '', + CONTRIBUTE_ICONS.shop, + '', + '', +]; diff --git a/src/lib/site-types.ts b/src/lib/site-types.ts index 9726e60..7c8703e 100644 --- a/src/lib/site-types.ts +++ b/src/lib/site-types.ts @@ -81,8 +81,8 @@ export interface CoverageRow { currencies: string[]; } -/** Where a method sits in a country row: cards first, then mobile money, then the rest. */ -export type MethodFamily = 'cards' | 'mobile' | 'other'; +/** Where a method sits in a country row: cards first, then mobile money, wallets, and the rest. */ +export type MethodFamily = 'cards' | 'mobile' | 'wallets' | 'other'; /** The methods of one family in a country row, in data order. */ export interface MethodGroup { diff --git a/tests/brand-kinds.test.ts b/tests/brand-kinds.test.ts new file mode 100644 index 0000000..45ec1cd --- /dev/null +++ b/tests/brand-kinds.test.ts @@ -0,0 +1,23 @@ +import { describe, expect, it } from 'vitest'; + +import { parseMethodKey } from '../src/lib/offer-match'; +import { loadSite } from '../src/lib/site-data'; + +const site = loadSite(process.cwd()); + +describe('brand kinds', () => { + it('files every brand under one kind on all published sheets', () => { + const kinds = new Map(site.reference.brands.map(({ id, kind }) => [id, kind === 'card_scheme' ? 'card' : kind])); + const wrong = site.published.flatMap(({ slug, coverage, fees }) => + [...coverage.flatMap(({ methods }) => methods), ...fees.map(({ method }) => method)] + .filter(({ brand, kind }) => brand !== undefined && kinds.get(brand) !== kind) + .map(({ brand, kind }) => `${slug}: ${brand} as ${kind}`), + ); + + expect(wrong).toEqual([]); + }); + + it('keeps the addresses that named Wave as mobile money', () => { + expect(parseMethodKey('mobile_money.wave')).toEqual({ kind: 'wallet', brand: 'wave' }); + }); +}); diff --git a/tests/method-groups.test.ts b/tests/method-groups.test.ts index bc713d4..35d3880 100644 --- a/tests/method-groups.test.ts +++ b/tests/method-groups.test.ts @@ -1,9 +1,9 @@ import { describe, expect, it } from 'vitest'; -import { methodGroups } from '../src/lib/method-groups'; +import { isOtherOperator, methodGroups } from '../src/lib/method-groups'; describe('methodGroups', () => { - it('puts cards first, then mobile money, then the rest, each in data order', () => { + it('puts cards first, then mobile money, wallets and the rest, each in data order', () => { const groups = methodGroups([ { kind: 'ussd' }, { kind: 'mobile_money', brand: 'mtn-momo' }, @@ -15,10 +15,20 @@ describe('methodGroups', () => { expect(groups.map((group) => [group.family, group.methods.map((method) => method.brand ?? method.kind)])).toEqual([ ['cards', ['visa', 'apple_pay']], ['mobile', ['mtn-momo']], - ['other', ['ussd', 'wallet']], + ['wallets', ['wallet']], + ['other', ['ussd']], ]); }); + it('tells an unnamed operator apart from the named ones only', () => { + const named = { kind: 'mobile_money', brand: 'mtn-momo' } as const; + const unnamed = { kind: 'mobile_money' } as const; + + expect(isOtherOperator(unnamed, [named, unnamed])).toBe(true); + expect(isOtherOperator(named, [named, unnamed])).toBe(false); + expect(isOtherOperator(unnamed, [unnamed])).toBe(false); + }); + it('leaves out a family without methods', () => { expect(methodGroups([{ kind: 'bank_transfer' }]).map((group) => group.family)).toEqual(['other']); expect(methodGroups([])).toEqual([]); diff --git a/tests/provider-strings.test.ts b/tests/provider-strings.test.ts index a2372c6..b95e37c 100644 --- a/tests/provider-strings.test.ts +++ b/tests/provider-strings.test.ts @@ -71,7 +71,7 @@ describe('operations facts', () => { const facts = operationsFacts(record, providerStrings('fr')); expect(valueOf(facts, 'Montant par paiement')).toBe('200 XOF à 1\u202f000\u202f000 XOF · Ghana : Jusqu’à 5\u202f000 GHS'); - expect(valueOf(facts, 'Plugins e-commerce')).toBe('Aucun'); + expect(valueOf(facts, 'Extensions e-commerce')).toBe('Aucun'); expect(valueOf(facts, 'Paiements récurrents')).toBeNull(); });