insumer_confirm_payment
Verifies on-chain USDC/USDT payment for a discount code by checking the transaction receipt using the verification code from insumer_verify, txHash, chainId, and amount.
Instructions
Confirm stablecoin payment for a discount code. After calling insumer_verify, confirm that the USDC/USDT payment was made on-chain. The server verifies the transaction receipt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Verification code from insumer_verify (e.g. INSR-A7K3M) | |
| txHash | Yes | On-chain transaction hash or Solana signature | |
| chainId | Yes | Payment chain: EVM chain ID (1, 8453, 137, 42161, 10, 56, 43114) or 'solana' | |
| amount | Yes | Stablecoin amount sent |