T402 API Reference - v2.8.0
    Preparing search index...

    Interface A2APaymentClientOptions

    Options for A2APaymentClient

    interface A2APaymentClientOptions {
        onPaymentRequired?: (requirements: PaymentRequired) => void;
        onPaymentSubmitted?: (payload: PaymentPayload) => void;
        onPaymentCompleted?: (task: A2ATask) => void;
        onPaymentFailed?: (error: string, task: A2ATask) => void;
    }
    Index

    Properties

    onPaymentRequired?: (requirements: PaymentRequired) => void

    Optional callback when payment is required

    onPaymentSubmitted?: (payload: PaymentPayload) => void

    Optional callback when payment is submitted

    onPaymentCompleted?: (task: A2ATask) => void

    Optional callback when payment is completed

    onPaymentFailed?: (error: string, task: A2ATask) => void

    Optional callback when payment fails