Verification Logic
When a Payment-Proof is sent, the verification layer ensures:
The transaction exists on Solana.
The correct recipient and amount are paid.
The memo matches the
requestId.The payment hasn’t been reused or expired.
Verification uses Solana RPC nodes or indexers (Helius / Triton).
import { verifyPayment } from "@402gate/sdk/utils";
const isValid = await verifyPayment(txHash, requestId, {
recipient: "MERCHANT_PUBKEY",
amount: 0.002,
mint: "402G"
});Last updated
