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

    Interface DeclarePaymentIdOptions

    Options for declaring a payment ID extension.

    interface DeclarePaymentIdOptions {
        id?: string;
        idempotencyKey?: string;
        groupId?: string;
        metadata?: Record<string, string>;
    }
    Index

    Properties

    id?: string

    Custom payment ID (defaults to crypto.randomUUID())

    idempotencyKey?: string

    Optional idempotency key for replay protection

    groupId?: string

    Optional payment group for batching

    metadata?: Record<string, string>

    Optional metadata