Better Payment 0.11.1 API
    Preparing search index...

    Function serializeResponse

    • Serializes a handler response: text bodies (PayTR's OK) as is, redirects without a body (keeping Location), everything else as JSON.

      Parameters

      Returns { body: string | null; headers: Record<string, string>; status: number }