I want to integrate my own payment gateway in Magento 2. I've read many topics, studied the sample code from the Magento 2 repository and the braintree module.
However I've not found great posts about the used patterns and how they works. I would like to understand what's the process and the functional flow behind this. Actually I can implement the payment gateway but it's completely useless if I can't understand how it works.. So what I need is some technical logic explanation and what are the different process.