How to create payment extension for a payment gateway

I want to create custom payment extension for shopify merchants on tech stack JAVA SPRING BOOT
can you suggest how to proceed ?

Hi - there are specific requirements for creating payment extensions which are described here: Requirements for payments extensions