Builds a truncated memo string from the first MEMO_MAX_LINES receipt lines. Lines are joined with " | " and the result is capped at MEMO_MAX_CHARS characters.
Trimmed, non-empty receipt lines.
A " | "-joined, character-capped memo string.
Builds a truncated memo string from the first MEMO_MAX_LINES receipt lines. Lines are joined with " | " and the result is capped at MEMO_MAX_CHARS characters.