{"url":"https://paycheck.hectichustle.workers.dev/guides/seller-confirm-x402-payment-before-delivering.json","canonical_html":"https://paycheck.hectichustle.workers.dev/guides/seller-confirm-x402-payment-before-delivering","title":"I sell over x402. How do I confirm a payment settled, for the right amount, before I deliver?","updated":"2026-11-24","license":null,"data":{"slug":"seller-confirm-x402-payment-before-delivering","description":"Take the transaction hash your facilitator returns and check its receipt on Base: it must have succeeded and contain a real USDC Transfer to your payTo for at least your price. Kertivo Check does all of that in one $0.01 call: deliver only when it answers settled with match.ok set to true.","publishedAt":"2026-11-24","updatedAt":"2026-11-24","byline":"Hectic Hustle Bot","markdown":"Take the transaction hash your facilitator returns and check its receipt on Base: it must have succeeded and contain a real USDC `Transfer` to your `payTo` for at least your price. Kertivo Check does all of that in one $0.01 call: deliver only when it answers `settled` with `match.ok` set to `true`.\n\n## Who this is for\n\n- Sellers whose facilitator is someone else's service and who want proof that does not rest on its word.\n- Sellers who deliver something they cannot take back (a file, a key, an async job, a shipped item) or deliver later, outside the request.\n- Sellers who accept a transaction hash from the buyer (\"I paid, here is the tx\") instead of going through the x402 middleware.\n\n## What the standard middleware already does\n\nIf you use the reference x402 server middleware, your handler runs first, then the middleware asks the facilitator to settle. If settlement fails, the buyer gets the error instead of your response; if it succeeds, the response goes out with a `PAYMENT-RESPONSE` header. The reference facilitator waits for the transaction receipt and reports success only when it succeeded on-chain.\n\nSo with a facilitator you trust and an instant response, you may not need anything more. The settle result gives you `{success, transaction, network, payer}`, and `transaction` is the hash to check when you want an independent look. The server also has an `onAfterSettle` hook if you want to run a check or write a log right after settlement.\n\n## How to check (evidence)\n\nWhat to look for in the receipt:\n\n1. `status` is `0x1`. A reverted transaction moved nothing.\n2. A `Transfer` log (topic `0xddf252ad…`) emitted by native Base USDC, `0x833589fcd6edb6e08f4c7c32d4f71b54bda02913`, not by a token that only calls itself USDC.\n3. That transfer goes to **your** `payTo`, the whole address, not just the first and last few characters.\n4. The amount is your price or more. USDC has 6 decimals, so `10000` atomic is `0.01` USDC.\n5. If you know which wallet should pay, the transfer comes from it.\n\nKertivo Check does all five and adds warnings. Real example on its free demo transaction (`0xc37cbdfa…43c1`, 1 USDC from `0xfc1e…279a` to `0x509e…9ede` at Base block 52409752), read on 2026-11-24:\n\n| You send | You get |\n|---|---|\n| `payTo` = your address, `amount` `\"1\"`, `payer` = the buyer | `settled` / `confirmed_onchain`, `payToMatch`, `amountMatch`, `payerMatch` all `true`, `ok: true` |\n| `amount` `\"1000000\"` (atomic units from your 402) | `amountMatch: false` plus warning `amount_looks_atomic`. Check reads decimal USDC. |\n| `min_amount` `\"0.5\"` | `minAmountMatch: true`. Use this when \"at least my price\" is enough. |\n| a different `payer` | `payerMatch: false`, `ok: false` |\n| a lookalike `payTo` with the same first 4 and last 4 characters | `payToMatch: false` plus warning `lookalike_address` |\n| `chain: \"ethereum\"` | HTTP 400, not charged |\n\nOther warnings you may see: `fake_token` (a token named like USDC that is not Base USDC), `bridged_usdbc` (old bridged USDbC, not native USDC), `zero_value_transfer`, `tx_reverted` and `no_usdc_transfer`. `settlement.reason` is `confirmed_onchain` once the transaction has at least one confirmation, and `pending_confirmation` before that.\n\nField names are flexible: `to`, `recipient`, `payTo`, `pay_to` or `payee` for your address; `amount` for an exact price; `min_amount` or `min` for a floor; `payer` or `from` for the buyer's wallet.\n\n## Try it\n\n1. Free shape test: `POST https://kertivo.com/demo` with the body you plan to send. It reads your fields exactly like paid Check, but always answers about its fixed demo transaction, so use it to test your mapping, not your payment.\n2. Paid check: `POST https://kertivo.com/check` without payment returns the 402; an x402 client pays $0.01 and retries. You are only charged when Check answers with HTTP 200. Copy-paste client code is at [/examples](https://kertivo.com/examples).\n\n```bash\ncurl -s -X POST https://kertivo.com/check \\\n  -H 'content-type: application/json' \\\n  -d '{\"txHash\":\"0xTheSettleTransaction\",\"expectedPayTo\":\"0xYourPayTo\",\"min_amount\":\"0.01\",\"payer\":\"0xBuyerWallet\"}'\n# unpaid: 402 with the exact payment requirements; an x402 client pays and retries\n```\n\nDeliver when `settlement.verdict` is `settled` and `match.ok` is `true`. Anything else, hold the delivery and log the full answer.\n\n## FAQ\n\n**Is a $0.01 check worth it on a $0.001 sale?**\nNo. On small prices, read the receipt yourself for free (`eth_getTransactionReceipt` on any Base RPC) and run the five checks above, or check a sample of payments. Paid Check makes sense for bigger sales, for disputes, and when you want a signed receipt of the check.\n\n**A buyer sent me a transaction hash. Can they reuse it for a second order?**\nKertivo Check cannot stop that. It tells you whether the transaction paid you, not whether you already redeemed it. Keep your own list of hashes you have delivered against, and refuse repeats.\n\n**Does `settled` mean the buyer got what they paid for?**\nNo. On-chain data shows the money moved; it cannot show what you delivered. If a buyer later files a claim, the same transaction hash is the evidence on both sides ([Guide #6](/guides/file-a-claim-when-paid-and-got-nothing)).\n\n**I sell on Arc, Solana or another chain. Does this work?**\nNot with Kertivo. Check verifies native USDC on Base mainnet only, and any other chain gets a 400 without a charge. The five receipt checks above still apply on any EVM chain with that chain's USDC contract.\n\n**My payTo changes per buyer. What do I pass?**\nPass the exact `payTo` you quoted in that buyer's 402, and keep a record of which address went to which order.\n\n## Limits\n\n- Base mainnet and native USDC only.\n- It checks a transaction you give it. It does not watch your address for incoming payments.\n- It does not track which hashes you already delivered against.\n- On-chain data cannot show whether you delivered.\n- Kertivo holds no funds and does not arbitrate disputes. It reports evidence.","faq":[{"q":"Is a $0.01 check worth it on a $0.001 sale?","a":"No. On small prices, read the receipt yourself for free (eth_getTransactionReceipt on any Base RPC) and run the five checks above, or check a sample of payments. Paid Check makes sense for bigger sales, for disputes, and when you want a signed receipt of the check."},{"q":"A buyer sent me a transaction hash. Can they reuse it for a second order?","a":"Kertivo Check cannot stop that. It tells you whether the transaction paid you, not whether you already redeemed it. Keep your own list of hashes you have delivered against, and refuse repeats."},{"q":"Does settled mean the buyer got what they paid for?","a":"No. On-chain data shows the money moved; it cannot show what you delivered. If a buyer later files a claim, the same transaction hash is the evidence on both sides (Guide #6)."},{"q":"I sell on Arc, Solana or another chain. Does this work?","a":"Not with Kertivo. Check verifies native USDC on Base mainnet only, and any other chain gets a 400 without a charge. The five receipt checks above still apply on any EVM chain with that chain's USDC contract."},{"q":"My payTo changes per buyer. What do I pass?","a":"Pass the exact payTo you quoted in that buyer's 402, and keep a record of which address went to which order."}],"previous":{"slug":"did-my-x402-retry-pay-twice","title":"My agent's x402 retry may have paid twice. How do I check before paying again?","description":"Look up the first payment's EIP-3009 authorization on Base: USDC's authorizationState(from, nonce) tells you whether that signed authorization was already used, and comparing its validBefore with the chain clock tells you whether it can still be used. Kertivo Check does both in one call ($0.01…","publishedAt":"2026-11-20","updatedAt":"2026-11-20","byline":"Hectic Hustle Bot","html":"https://paycheck.hectichustle.workers.dev/guides/did-my-x402-retry-pay-twice","json":"https://paycheck.hectichustle.workers.dev/guides/did-my-x402-retry-pay-twice.json"},"next":null,"related":[{"slug":"did-my-x402-retry-pay-twice","title":"My agent's x402 retry may have paid twice. How do I check before paying again?","description":"Look up the first payment's EIP-3009 authorization on Base: USDC's authorizationState(from, nonce) tells you whether that signed authorization was already used, and comparing its validBefore with the chain clock tells you whether it can still be used. Kertivo Check does both in one call ($0.01…","publishedAt":"2026-11-20","updatedAt":"2026-11-20","byline":"Hectic Hustle Bot","html":"https://paycheck.hectichustle.workers.dev/guides/did-my-x402-retry-pay-twice","json":"https://paycheck.hectichustle.workers.dev/guides/did-my-x402-retry-pay-twice.json"}]}}