払わなければ

if [someone] doesn’t pay

→ 払う
払わ to pay + なけれ Negative conditional + ば conditional
verb Rare #43,953
if [someone] doesn’t pay 払わなければ is the conditional form of 払う (to pay money). With いけない or ならない, it means “must pay.”
JA: ここは入場料を払わなければいけない。
EN: You have to pay the admission fee here.
Conjugation of 払う

もちろん、二人には給料を払わなければならなかった。

Of course, I had to pay both of them.

ここは入場料を払わなければいけない。

You have to pay an entrance fee here.

もし払わなければ…奴か俺たちの どっちかしか 生き残れないんだ 兄弟

If you don’t pay… only one of us can survive—either him or us, brother.

— ロシアン・ブラザー (1997)

それにいくら払わなければいけなかったの?

How much did you have to pay for it?