docs: sync from frontend 2a3e5c9 — BSC Testnet checkout UI

This commit is contained in:
Siavash Sameni
2026-06-06 09:04:33 +04:00
parent f4fad02e1c
commit b3eea176d5
2 changed files with 13 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ created: 2026-05-30
# Payment Flow — AMN Pay Scanner (In-House) # Payment Flow — AMN Pay Scanner (In-House)
> **Last updated:** 2026-06-06 — documented backend/frontend `2.8.116` and scanner BSC Testnet tUSDT rail correction. > **Last updated:** 2026-06-06 — documented frontend/backend `2.8.118` BSC Testnet checkout UI support.
End-to-end payment flow using the in-house AMN Pay Scanner, replacing the Request Network integration. The scanner is a separate microservice; the backend talks to it over an internal HTTP API. End-to-end payment flow using the in-house AMN Pay Scanner, replacing the Request Network integration. The scanner is a separate microservice; the backend talks to it over an internal HTTP API.
@@ -103,6 +103,8 @@ The `checkoutBlock` contains everything the frontend needs to build the `ERC20Fe
For Tron/TON the buyer sends a plain TRC20/Jetton transfer to `destination`; there is no proxy contract. For Tron/TON the buyer sends a plain TRC20/Jetton transfer to `destination`; there is no proxy contract.
Frontend `2.8.118+` includes BSC Testnet (`97`) in the Wagmi chain config, so wallet switching can target the same chain id returned in the scanner checkout block. The checkout summary renders `BSC Testnet (97)`, shows the exact `tokenAddress` supplied by the backend (for dev tUSDT this is `0x109F54Dab34426D5477986b0460aE5dFBA65f022`), and sends chain 97 address/tx links to `testnet.bscscan.com` instead of mainnet BscScan.
### Step 3 — Buyer submits transaction ### Step 3 — Buyer submits transaction
The buyer signs and broadcasts the transaction using their wallet. The scanner independently monitors the chain and does not require the transaction hash. The buyer signs and broadcasts the transaction using their wallet. The scanner independently monitors the chain and does not require the transaction hash.

View File

@@ -11,6 +11,16 @@ entries on top. Maintained by agents per the rule in `../AGENTS.md`.
--- ---
### 2026-06-06 — backend@31b285f, frontend@2a3e5c9 — BSC Testnet checkout UI support
**Commits:** `31b285f` `2a3e5c9`
**Touched:** frontend `src/web3/config.ts`, `src/web3/types.ts`, `src/sections/payment/checkout/rn-in-house-checkout-view.tsx`, `Dockerfile`, `package.json`; backend version files.
**Why:** After the scanner/backend tUSDT rail was corrected, the active in-house checkout still needed UI-side chain support for BSC Testnet. Wagmi now includes chain `97`, checkout labels render `BSC Testnet (97)` instead of a raw chain id, token contract rows show the exact ERC-20 address the backend supplied, and chain 97 tx/address links point at `testnet.bscscan.com`.
**Verification:** frontend `npx tsc --noEmit --ignoreDeprecations 6.0`, focused `npx eslint src/web3/config.ts src/web3/types.ts src/sections/payment/checkout/rn-in-house-checkout-view.tsx`, `npm run build`, `git diff --check`; backend `npm run typecheck`, `git diff --check`. Woodpecker frontend #45 and backend #43 succeeded; live `/api/version` returns `2.8.118`; frontend root returns 200 with the Next bundle; backend/frontend/scanner containers are healthy.
**Linked docs updated:** [[04 - Flows/Payment Flow - Scanner]]
---
### 2026-06-06 — backend@99ae2db, frontend@94a99a1 — buyer delivery confirmation id-seam fix ### 2026-06-06 — backend@99ae2db, frontend@94a99a1 — buyer delivery confirmation id-seam fix
**Commits:** `99ae2db` `94a99a1` **Commits:** `99ae2db` `94a99a1`