How to add additional checkout form fields for custom gateway

Hi all, I am developing a payment plugin for Shopware 5 and I need to display additional payment fields like prepayment displays its own fields when you change payment method. How can I do that? Can you point me manual chapter? Many thanks