Development of custom Payment gateway

I want to Develop any third party payment gateway ,so that customer can choose that payment gateway while checkout on Front and redirect to that Third party Payment gateway URL
and after making payment return to Shopware front after being transaction successful or failed.
Please provide Proper documents or guide us to develop custom payment gateway in Shopware.