How can I create a custom payment method / gateway in magento 2?

As a junior developer, I have to make a custom payment method that gets credit card information from user and sends to api (also custom credit card form with its own html/css). This is my first time working with magento 2. Im using 2.4.1 version. I have been struggling for a month.

Magento docs really dont help and it is difficult to find any useful source. Do you have any recommendation?

submitted by /u/irembbt
[link] [comments]