TypeScript SDK

VerifyPaymentResult

The result of a payment verification operation.

type VerifyPaymentResult =
| {
paymentReceipt: FacilitatorSettleResponse;
responseHeaders: Record<string, string>;
status: 200;
}
| {
responseBody: {
accepts: Array<RequestedPaymentRequirements>;
error: string;
payer?: string;
x402Version: number;
};
responseHeaders: Record<string, string>;
status: 402;
};