[step:Extend $\operatorname{ord}_p$ to $\mathcal{O}_C(\eta)^\times$ and verify the homomorphism property]
The function field $\mathcal{O}_C(\eta)$ is the field of fractions of the integral domain $\mathcal{O}_{C,p}$ (alternatively, of $A(C)$ — the two fields of fractions agree, see [Function Field is Finitely Generated](/theorems/2142)). For $f \in \mathcal{O}_C(\eta)^\times$, write $f = a/b$ with $a, b \in \mathcal{O}_{C,p} \setminus \{0\}$, and define
\begin{align*}
\operatorname{ord}_p: \mathcal{O}_C(\eta)^\times &\to \mathbb{Z}, \\
f = a/b &\mapsto \operatorname{ord}_p(a) - \operatorname{ord}_p(b).
\end{align*}
**Well-definedness.** If $a/b = a'/b'$ in $\mathcal{O}_C(\eta)$, then $ab' = a'b$ in $\mathcal{O}_{C,p}$. Writing $a = t^{\alpha} u$, $b = t^{\beta} v$, $a' = t^{\alpha'} u'$, $b' = t^{\beta'} v'$ with $u, v, u', v' \in \mathcal{O}_{C,p}^\times$, the equation $ab' = a'b$ becomes $t^{\alpha + \beta'} (uv') = t^{\alpha' + \beta}(u'v)$. By uniqueness of the factorisation $f = t^n u$ from Step 3 (applied to the nonzero element $ab' \in \mathcal{O}_{C,p}$), $\alpha + \beta' = \alpha' + \beta$, i.e. $\alpha - \beta = \alpha' - \beta'$. So $\operatorname{ord}_p(a) - \operatorname{ord}_p(b) = \operatorname{ord}_p(a') - \operatorname{ord}_p(b')$.
**Homomorphism property.** For $f, g \in \mathcal{O}_C(\eta)^\times$, write $f = a_1/b_1$, $g = a_2/b_2$ as above. Then $fg = (a_1 a_2)/(b_1 b_2)$. Using the unique factorisations $a_i = t^{\alpha_i} u_i$, $b_i = t^{\beta_i} v_i$:
\begin{align*}
a_1 a_2 = t^{\alpha_1 + \alpha_2}(u_1 u_2), \qquad b_1 b_2 = t^{\beta_1 + \beta_2}(v_1 v_2),
\end{align*}
and $u_1 u_2, v_1 v_2 \in \mathcal{O}_{C,p}^\times$ since units form a multiplicative group. By Step 3, $\operatorname{ord}_p(a_1 a_2) = \alpha_1 + \alpha_2$ and $\operatorname{ord}_p(b_1 b_2) = \beta_1 + \beta_2$. Hence
\begin{align*}
\operatorname{ord}_p(fg) = (\alpha_1 + \alpha_2) - (\beta_1 + \beta_2) = (\alpha_1 - \beta_1) + (\alpha_2 - \beta_2) = \operatorname{ord}_p(f) + \operatorname{ord}_p(g),
\end{align*}
proving $\operatorname{ord}_p$ is a group homomorphism $(\mathcal{O}_C(\eta)^\times, \cdot) \to (\mathbb{Z}, +)$.
[/step]