From fd1075cb036b6b1e4644071170c5fb239a213b27 Mon Sep 17 00:00:00 2001 From: Ben Kalsky Date: Sat, 2 May 2026 00:41:41 +0300 Subject: [PATCH] docs: clarify Upay is a downstream clearer, not a SUMIT brand Mirrors the framing fix in @digitizers/sumit-api: SUMIT (formerly OfficeGuy) is the billing platform; Upay is one of several partner processors SUMIT routes card clearing through. Processor error codes (Upay_*) show up inside SUMIT response bodies and are scrubbed by redactSumitPayload before events leave the route handler. Co-Authored-By: Claude Opus 4.7 (1M context) --- CLAUDE.md | 4 +++- README.md | 4 +++- package.json | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 9dfa8aa..c5a1e04 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,9 @@ Guidance for AI assistants working in this repository. ## Project -`sumit-react` — React component (``), checkout state hook (`useSumitCheckout`), and Next.js route helpers (`createSumitChargeRoute`, `createSumitWebhookRoute`) for SUMIT / OfficeGuy / Upay payments. +`sumit-react` — React component (``), checkout state hook (`useSumitCheckout`), and Next.js route helpers (`createSumitChargeRoute`, `createSumitWebhookRoute`) for SUMIT (formerly OfficeGuy) payments. + +SUMIT is the billing platform. It delegates card clearing to partner processors — Upay is one, others exist — so processor-level error codes (`Upay_*`) appear inside SUMIT response bodies and are scrubbed by `redactSumitPayload` from `sumit-api` before any event leaves a route handler. Companion package: [`sumit-api`](https://github.com/Digitizers/sumit-api) (peer dependency). diff --git a/README.md b/README.md index 6ad7d8d..c7982a8 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,9 @@ [![react](https://img.shields.io/badge/react-%E2%89%A518-61DAFB?logo=react&logoColor=white)](package.json) [![next](https://img.shields.io/badge/next.js-app%20router-000000?logo=next.js&logoColor=white)](https://nextjs.org) -> React components and Next.js route helpers for [SUMIT / OfficeGuy / Upay](https://sumit.co.il) payments. The companion to [`sumit-api`](https://github.com/Digitizers/sumit-api). +> React components and Next.js route helpers for [SUMIT](https://sumit.co.il) (formerly **OfficeGuy**) payments. The companion to [`sumit-api`](https://github.com/Digitizers/sumit-api). +> +> SUMIT is the billing platform. The actual card clearing is performed by partner processors that SUMIT routes to — **Upay** is one such clearer, and SUMIT can integrate with others. From the perspective of this package, you talk to SUMIT; processor-level error codes (e.g. `Upay_*`) only show up inside SUMIT's response bodies. Ship a working SUMIT checkout flow in a React or Next.js app with two files: a Client Component and a route handler. diff --git a/package.json b/package.json index a2bf864..cdc4668 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "sumit-react", "version": "0.1.1", - "description": "React components and Next.js route helpers for SUMIT/OfficeGuy/Upay payments.", + "description": "React components and Next.js route helpers for SUMIT (formerly OfficeGuy) payments.", "license": "MIT", "type": "module", "sideEffects": false,