How to ask a customer for his bank card data on the checkout page?

See how the standard Magento_BraintreeTwo module does it:

Credit Card Number

Expiration Date

Card Verification Number

How is the form loaded?

Preliminary reading: How to specify a checkout’s renderer for a payment menthod?