Take a look at the node
AdditionalTemplateFile in info.xml and the methods
handleAdditional() and
validateAdditional() in the PaymentMethod-class.
Our (german) documentation with additional information for payment-plugin developers are currently under construction. Send me a
PM if you want to take a look at the documentation preview.