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

    Interface SmartPayResult

    SmartPay result

    interface SmartPayResult {
        success: boolean;
        statusCode: number;
        body: string;
        contentType?: string;
        steps: SmartPayStep[];
        payment?: {
            network: string;
            scheme: string;
            amount: string;
            payTo: string;
        };
        error?: string;
    }
    Index

    Properties

    success: boolean

    Whether the resource was successfully accessed

    statusCode: number

    HTTP status code

    body: string

    Response body (truncated if large)

    contentType?: string

    Content type of the response

    steps: SmartPayStep[]

    Steps taken during smart payment

    payment?: { network: string; scheme: string; amount: string; payTo: string }

    Payment details (if payment was made)

    error?: string

    Error message (if failed)