To create a custom integration with a invoice payment gateway, you perform the following steps:
Create the gateway extension. See Invoice payment extension details for information specific to this extension.
Upload the extension to the administration interface.
Enable the gateway.
Configure the Generic Payment webhook by specifying the gateway URL and the username and password. (This step is optional. See Validate the purchase order number.)