In many historical societies, religious prohibitions on usury meant the charging of interest of any kind.

Jump in a time machine to 1515 and ask Martin Luther, or to 1260 and ask Thomas Aquinas, they'd tell you it's sinful.

And in the present age, a fair number of Islamic folk consider interest against their religion's rules. So there's a Halal finance industry where, for example, you can get a "murabahah contract" where the bank buys a house, then sells the house to you at a higher price, while allowing you to pay them in monthly instalments.

Older than any of those:

"Thou shalt not lend upon interest to thy brother: interest of money, interest of victuals, interest of any thing that is lent upon interest" (Deut 23.20 JPS Tanakh).

the letter but not the spirit, like Amish workers using batteries

I love when religions have rule lawyers like this. It readily discredits the religion. As if their all powerful god can be fooled by fancy paperwork or legal loopholes.

They’re not trying to fool God, they’re trying to fool you into going along with it. They don’t care what God thinks and may not even believe in Him at all, but unless they can convince you of the loophole they’re stuck with the rules themselves.