Establishment of the Connection with the External System
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 (the BCBindingWooCommerce
database table in the WooCommerce example).
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.
Note: The classes and the communication with the external
system depend on the external system.