Connector Implementation: How the Connection with the External System Is Established

When a user specifies the connection settings of a store on the Configuration Settings tab of the configuration form, the system saves the settings in the custom table (such as the BCBindingWooCommerce database table, which is shown in an example in Connector Implementation: DAC for the Connector's Configuration Settings).

When the user clicks the Test Connection button on the form toolbar of the configuration form, the system retrieves the data for the connection with the store from this custom table. The system calls the GetRestClient() static method of the implementation of the IConnector interface, which creates the REST client of the external system. The REST client establishes the connection with the external system through the REST API.

Attention:
The external system determines which classes you need to implement and how the connector communicates with the external system.
Figure 1. Connection with the external system