JafariPay
JafariPay is an open-source USDC payment stack for merchants building on Arc. Its core primitive is the Payment Intent — created server-side with an Idempotency-Key (server/api/payment-intents.ts, backed by an idempotency_keys table) and completed through a hosted checkout (server/api/checkout.ts, src/components/checkout/CheckoutPage.tsx). Payments are verified independently on-chain. server/blockchain/arc-provider.ts fetches the transaction receipt via viem, decodes the ERC-20 Transfer(address,address,uint256) event, and runs a ten-point pipeline covering network, receipt success, the USDC contract, exact recipient, exact base-unit amount and replay protection. Money is handled as exact BigInt base units at 6 decimals (server/lib/money.ts), never floats. Merchants authenticate by wallet through SIWE (server/auth/siwe.ts, nonce + viem verifyMessage) and receive HMAC-SHA256 signed webhooks with retry/backoff and SSRF guards (server/webhooks/delivery.ts, X-JafariPay-Signature). A reconciliation worker (server/workers/reconciliation.ts) resolves late, incorrect and duplicate payments, and funds settle straight to the merchant wallet (server/api/settlement-wallets.ts).
Software Developer solidity,rust,C++ Java JavaScript C# SQLserver jquery .net core Blazer Angular css