X402 Settlement Response Header (model/SettlementResponseHeader.java)

x402 · java/src/main/java/org/x402/model/SettlementResponseHeader.java · java · Apache-2.0
payments, lang:java, tag:jackson, tag:model

Data model representing payment settlement responses, serialized into the X-PAYMENT-RESPONSE HTTP header across multiple languages.

// Source: https://github.com/x402-foundation/x402 | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package org.x402.model;

import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * Settlement response header that gets base64-encoded into X-PAYMENT-RESPONSE.
 * Matches the structure of Go SettleResponse and TypeScript SettleResponse.
 */
@JsonInclude(JsonInclude.Include.ALWAYS) // Always include all fields, even nulls
public class SettlementResponseHeader {
    /** Whether the settlement was successful. */
    public boolean success;
    
    /** Transaction hash of the settled payment. */
    public String transaction;
    
    /** Network ID where the settlement occurred. */


... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key