But the rule is not loaded. I suppose that my item structure is wrong, as the html structure is different for street and other fields. What is the correct way to do this?
Obviously, if a custom payment gateway forbids some characters, you should remove these characters internally and automatically in the payment module instead on punish your shop’s customers with some odd restrictions.