))}
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.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);
+---
+
+
- {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();
});