← all projects

JafariPay

Arc mainnet
@shuaibwasifkhan·Shuaib Wasif khan·4 followers·added 2026-09-26·updated 2026-10-29
3
stars
39k
lines
163
files
1
forks
4
followers
languages
TypeScript 99%JavaScript 1%HTML 0%Solidity 0%Shell 0%

JafariPay is an open-source, non-custodial USDC checkout stack for merchants 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). Payments are verified independently on-chain: server/blockchain/arc-provider.ts fetches the receipt via viem, decodes the ERC-20 Transfer event, and runs a ten-point pipeline over network, recipient, exact base-unit amount, and replay protection, with money as exact BigInt base units (server/lib/money.ts). It also runs a real-funds Base→Arc CCTP v2 forwarding route: registry-first CCTP config, dynamic Circle fee quoting, strict amount and fee gates, destination-mint re-verification, and idempotent replay protection settle a cross-chain payment server-side through attestation. Merchants authenticate by wallet over SIWE and receive HMAC-SHA256 signed webhooks with SSRF guards (server/webhooks/delivery.ts); a reconciliation worker (server/workers/reconciliation.ts) resolves late, incorrect, and duplicate payments, settling funds to the merchant wallet.

deployed on Arc mainnet · chain 5042
Evidence (1 verified on-chain): Verified mainnet settlement tx
ContractAddressProof
Production USDC checkout settlement (1.00 USDC → native USDC)0x9d82a3b3d2cf47192d179febf7f44bbc850ac5dc53912a57a6279f196fae74efsettlement tx ✓ · block 22331070
tags
circle components
builder bio

Software Developer solidity,rust,C++ Java JavaScript C# SQLserver jquery .net core Blazer Angular css

last pushed 2026-10-08