The Payment Provider Gateway documentation uses the Magento 2.3.x version of the Braintree module as a reference application. The Braintree module was removed in Magento 2.4.0. The concepts described in this guide are still applicable to Magento 2.4.0, but the code samples are not supported.
This is a beta release of documentation for Magento 2.4, published for previewing soon-to-be-released functionality. Content in this version is subject to change. Links to the v2.4 code base may not properly resolve until the code is officially released.

Payment provider gateway structure

The following diagram shows the basic components of the Magento payment provider gateway:

Payment Gateway Structure

The interaction between the payment gateway components looks like following:

Payment Gateway Structure

Each component from this scheme is described in the corresponding topic: