diff --git a/AGENTS.md b/AGENTS.md index 0ec7c00..3f0938a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -71,11 +71,12 @@ See `docs/adr/0002-every-value-is-sourced.md`. if any, are always labelled and never change a rating or an order. - **Facts, not opinions, in data.** Reviews are opinions and are stored separately, attributed, dated and backed by evidence of a real integration. -- **Logos are trademarks.** Default to a colour badge with the provider's - initial. A logo is added only from a domain or an official social media - page of the provider, with its URL and date in `data/reference/logos.json`, - and removed on request. See - `docs/adr/0004-provider-logos.md`. +- **Logos are trademarks.** A logo is added only from a domain or an official + social media page of the provider, with its URL and date in + `data/reference/logos.json`, and removed on request. A verified sheet needs + its `mark` logo; drafts may keep the letter badge. See + `docs/adr/0004-provider-logos.md` and + `docs/adr/0005-verified-sheets-need-a-logo.md`. --- diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c6f07da..ebf6b4e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -33,7 +33,7 @@ account. You can answer in English or French. Records start as drafts and only verified ones appear on the site. A draft becomes **verified** once each value has been checked against the page it -cites. Filling in drafts is the most useful thing you can do right now. +cites and it has the provider's logo (see "Writing rules"). Filling in drafts is the most useful thing you can do right now. 1. Pick an issue labelled `good first issue` and say you are on it. 2. Collect what the issue lists (countries, fees, account opening, developer diff --git a/data/providers/passerelle.json b/data/providers/passerelle.json index da82cdc..f16785d 100644 --- a/data/providers/passerelle.json +++ b/data/providers/passerelle.json @@ -4,14 +4,14 @@ "status": "verified", "verified_at": "2026-12-02", "families": [ - "orchestrator" + "aggregator" ], "website": "https://passerelle.abecedaire.tg", "headquarters": { "value": "TG", "source": "terms" }, - "summary": "Lome-based routing layer: one API sends each mobile money or card payment in XOF to a partner aggregator and fails over to a backup one. Sandbox from sign-up, signed webhooks and an MCP server. Partners named: PaygateGlobal, MoneyFusion, KKiaPay. No public fees found.", + "summary": "Lome-based service: one API routes XOF mobile money and card payments to a partner aggregator, with a backup one. Partners named: PaygateGlobal, MoneyFusion, KKiaPay. Sandbox from sign-up, signed webhooks and an MCP server. No public fees found.", "sources": { "products": { "url": "https://passerelle.abecedaire.tg/produits", @@ -23,7 +23,7 @@ "url": "https://passerelle.abecedaire.tg/conditions-utilisation", "kind": "official_page", "observed_at": "2026-12-02", - "note": "Revised 2026-09-28. Operated by Abecedaire Ent, a single-member limited company registered in Lome, Togo. Says passerelle. never holds merchant or customer funds, which move on partner aggregators' rails under a contract held by the merchant or by passerelle., depending on the setup. Fees are those shown at sign-up or in the dashboard. No availability commitment (SLA) at this stage. Production needs further information, in proportion to the volume processed. The settlements guide (docs.passerelle.abecedaire.tg/guides/settlements) describes fees deducted from each successful payment and a periodic payment of the balance due to the merchant's chosen account. The privacy policy (https://passerelle.abecedaire.tg/confidentialite, revised 2026-09-28, read 2026-12-03) says transaction data is shared with the aggregator a given transaction is routed to, and names PaygateGlobal, MoneyFusion or KKiaPay, as the case may be. It does not say which one serves which country or method." + "note": "Revised 2026-09-28. Operated by Abecedaire Ent, a single-member limited company registered in Lome, Togo. Says passerelle. never holds merchant or customer funds, which move on partner aggregators' rails under a contract held by the merchant or by passerelle., depending on the setup. Fees are those shown at sign-up or in the dashboard. No availability commitment (SLA) at this stage. Production needs further information, in proportion to the volume processed. The settlements guide (docs.passerelle.abecedaire.tg/guides/settlements, read again 2026-12-03) says fees are deducted from each successful payment and the balance due is paid periodically to the merchant's chosen account, and the API reference reports that balance (https://docs.passerelle.abecedaire.tg/api/merchants-controller-get-balance, read 2026-12-03). These pages do not say on whose account the money sits before that payment. The privacy policy (https://passerelle.abecedaire.tg/confidentialite, revised 2026-09-28, read 2026-12-03) says transaction data is shared with the aggregator a given transaction is routed to, and names PaygateGlobal, MoneyFusion or KKiaPay, as the case may be. It does not say which one serves which country or method." }, "docs-payments": { "url": "https://docs.passerelle.abecedaire.tg/guides/payments", @@ -58,7 +58,7 @@ }, "coverage": [ { - "country": "BF", + "country": "TG", "collection": true, "methods": [ { @@ -92,7 +92,7 @@ "source": "docs-payments" }, { - "country": "CI", + "country": "BF", "collection": true, "methods": [ { @@ -109,7 +109,7 @@ "source": "docs-payments" }, { - "country": "GW", + "country": "CI", "collection": true, "methods": [ { @@ -126,7 +126,7 @@ "source": "docs-payments" }, { - "country": "ML", + "country": "GW", "collection": true, "methods": [ { @@ -143,7 +143,7 @@ "source": "docs-payments" }, { - "country": "NE", + "country": "ML", "collection": true, "methods": [ { @@ -160,7 +160,7 @@ "source": "docs-payments" }, { - "country": "SN", + "country": "NE", "collection": true, "methods": [ { @@ -177,7 +177,7 @@ "source": "docs-payments" }, { - "country": "TG", + "country": "SN", "collection": true, "methods": [ { diff --git a/data/reference/logos.json b/data/reference/logos.json index 8a31c30..22de7bf 100644 --- a/data/reference/logos.json +++ b/data/reference/logos.json @@ -92,5 +92,7 @@ {"provider": "yoco", "variant": "mark", "file": "logos/yoco-mark.png", "url": "https://www.yoco.com/favicon-32x32.png?v=dbf952510fd25cdd51080a06cb2d96b6", "observed_at": "2026-11-19"}, {"provider": "youcan-pay", "variant": "mark", "file": "logos/youcan-pay-mark.png", "url": "https://youcanpay.com/build/assets/favicon-BGdoIH6J.ico", "observed_at": "2026-11-19"}, {"provider": "novasend", "variant": "wordmark", "file": "logos/novasend-wordmark.png", "url": "https://novasend.app/assets/logo/novasend.png", "observed_at": "2026-12-02"}, - {"provider": "novasend", "variant": "mark", "file": "logos/novasend-mark.png", "url": "https://portal.novasend.app/favicon.ico", "observed_at": "2026-12-02"} + {"provider": "novasend", "variant": "mark", "file": "logos/novasend-mark.png", "url": "https://portal.novasend.app/favicon.ico", "observed_at": "2026-12-02"}, + {"provider": "passerelle", "variant": "mark", "file": "logos/passerelle-mark.png", "url": "https://passerelle.abecedaire.tg/favicon.svg", "observed_at": "2026-12-02"}, + {"provider": "afribapay", "variant": "mark", "file": "logos/afribapay-mark.png", "url": "https://www.afribapay.com/wp-content/uploads/2023/12/favicon-300x300-1.png", "observed_at": "2026-12-03"} ] diff --git a/docs/adr/0005-verified-sheets-need-a-logo.md b/docs/adr/0005-verified-sheets-need-a-logo.md new file mode 100644 index 0000000..0a8704a --- /dev/null +++ b/docs/adr/0005-verified-sheets-need-a-logo.md @@ -0,0 +1,20 @@ +# 0005. A verified sheet needs a logo + +Date: 2026-12-03 +Status: accepted. Amends 0004. + +## Context + +Two sheets were published with the letter badge although the provider had an +official icon: nothing checked for it. + +## Decision + +A sheet cannot be verified without its `mark` logo, under the rules of 0004. +A draft keeps the letter badge until a file meets those rules. + +## Consequences + +- The build fails when a verified provider has no `mark`. +- A removal request on a verified sheet also calls for a decision on that + sheet. diff --git a/public/logos/afribapay-mark.png b/public/logos/afribapay-mark.png new file mode 100644 index 0000000..e440cad Binary files /dev/null and b/public/logos/afribapay-mark.png differ diff --git a/public/logos/passerelle-mark.png b/public/logos/passerelle-mark.png new file mode 100644 index 0000000..d642bb0 Binary files /dev/null and b/public/logos/passerelle-mark.png differ diff --git a/src/i18n/data-fr.ts b/src/i18n/data-fr.ts index fcbadc9..ccea756 100644 --- a/src/i18n/data-fr.ts +++ b/src/i18n/data-fr.ts @@ -466,8 +466,8 @@ export const DATA_FR: Readonly> = { "Real-time settlement: funds reach the bank immediately after a withdrawal request. The page names no eligible bank.": "Reversement en temps réel : les fonds arrivent à la banque dès la demande de retrait. La page ne nomme aucune banque éligible.", - 'Lome-based routing layer: one API sends each mobile money or card payment in XOF to a partner aggregator and fails over to a backup one. Sandbox from sign-up, signed webhooks and an MCP server. Partners named: PaygateGlobal, MoneyFusion, KKiaPay. No public fees found.': - 'Couche de routage basée à Lomé : une seule API envoie chaque paiement mobile money ou carte en XOF vers un agrégateur partenaire, et bascule vers un autre en cas d’échec. Mode test dès l’inscription, webhooks signés et serveur MCP. Partenaires nommés : PaygateGlobal, MoneyFusion, KKiaPay. Frais publics non trouvés.', + 'Lome-based service: one API routes XOF mobile money and card payments to a partner aggregator, with a backup one. Partners named: PaygateGlobal, MoneyFusion, KKiaPay. Sandbox from sign-up, signed webhooks and an MCP server. No public fees found.': + "Service basé à Lomé : une seule API envoie les paiements mobile money et carte en XOF à un agrégateur partenaire, avec un partenaire de secours. Partenaires nommés : PaygateGlobal, MoneyFusion, KKiaPay. Mode test dès l’inscription, webhooks signés et serveur MCP. Frais publics non trouvés.", 'Methods are offered through partner aggregators; the docs do not say which one serves this country.': 'Moyens de paiement proposés via des agrégateurs partenaires ; la documentation ne dit pas lequel sert ce pays.', 'Signing can be turned off per account.': 'La signature peut être désactivée pour un compte.', 'Lists a REST API and an MCP server; names no SDK.': 'Présente une API REST et un serveur MCP ; aucun SDK nommé.', diff --git a/src/lib/check-dataset.ts b/src/lib/check-dataset.ts index 63f82cb..07e285e 100644 --- a/src/lib/check-dataset.ts +++ b/src/lib/check-dataset.ts @@ -1,7 +1,7 @@ import type { Provider } from '../schema/provider'; import { checkGlossary } from './check-glossary'; import { checkLicencesAgainstRegisters } from './check-licences'; -import { checkBrandLogos, checkLogos, checkMethodLogos } from './check-logos'; +import { checkBrandLogos, checkLogos, checkMethodLogos, checkProviderMarks } from './check-logos'; import { checkReferenceData, reporter } from './check-reference-data'; import { checkReferences } from './check-references'; import { checkSources } from './check-sources'; @@ -23,6 +23,7 @@ export function checkDataset(dataset: Dataset): Issue[] { const report = reporter(issues, file); checkSlug(file, provider, report); + checkProviderMarks(dataset.logos, provider, report); checkSources(provider, report); checkReferences(provider, { known, report }); checkLicencesAgainstRegisters(provider, dataset.registers, report); diff --git a/src/lib/check-logos.ts b/src/lib/check-logos.ts index a987ca4..ebde2ad 100644 --- a/src/lib/check-logos.ts +++ b/src/lib/check-logos.ts @@ -1,7 +1,8 @@ import type { BrandLogo, Logo, MethodLogo } from '../schema/logo'; +import type { Provider } from '../schema/provider'; import { reporter } from './check-reference-data'; import { BRAND_LOGOS_FILE, LOGOS_FILE, METHOD_LOGOS_FILE } from './data-paths'; -import type { Issue, KnownIds } from './dataset-types'; +import type { Issue, KnownIds, Report } from './dataset-types'; /** Each logo belongs to a known provider, once per variant, under the file name its entry implies. */ export function checkLogos(logos: Logo[], known: KnownIds, issues: Issue[]): void { @@ -26,6 +27,15 @@ export function checkLogos(logos: Logo[], known: KnownIds, issues: Issue[]): voi }); } +/** A verified sheet is never published with the letter badge: it needs the provider's square mark. */ +export function checkProviderMarks(logos: Logo[], provider: Provider, report: Report): void { + const hasMark = logos.some((logo) => logo.provider === provider.slug && logo.variant === 'mark'); + + if (provider.status === 'verified' && !hasMark) { + report('status', 'A verified provider needs a "mark" logo'); + } +} + /** Each brand logo belongs to a brand of `brands.json`, once per variant, under the file name its entry implies. */ export function checkBrandLogos(logos: BrandLogo[], known: KnownIds, issues: Issue[]): void { const report = reporter(issues, BRAND_LOGOS_FILE); diff --git a/tests/logos.test.ts b/tests/logos.test.ts index c733175..cc21d64 100644 --- a/tests/logos.test.ts +++ b/tests/logos.test.ts @@ -112,3 +112,27 @@ describe('checkMethodLogos', () => { ]); }); }); + +describe('checkProviderMarks', () => { + const verified = provider({ status: 'verified', verified_at: '2026-12-03' }); + const message = 'A verified provider needs a "mark" logo'; + + function markIssues(record: Record, logos: Array>): string[] { + const data = { ...dataset(record), logos: logos.map((logo) => logoSchema.parse(logo)) }; + + return checkDataset(data) + .filter((issue) => issue.message === message) + .map((issue) => issue.file); + } + + it('refuses a verified provider without a logo', () => { + expect(markIssues(verified, [])).toEqual(['data/providers/acme-pay.json']); + expect(markIssues(verified, [{ ...MARK, provider: 'ghost-pay', file: 'logos/ghost-pay-mark.svg' }])).toEqual(['data/providers/acme-pay.json']); + expect(markIssues(verified, [{ ...MARK, variant: 'wordmark', file: 'logos/acme-pay-wordmark.png' }])).toEqual(['data/providers/acme-pay.json']); + }); + + it('accepts a verified provider with its mark, and a draft without one', () => { + expect(markIssues(verified, [MARK])).toEqual([]); + expect(markIssues(provider(), [])).toEqual([]); + }); +});