Once you create the extension, you need to install it and configure the payment gateway.
Install the extension
To install the extension:
In the administration interface, select the Settings tab and then select Extensions.
In the Developer tab, click Generate ID. In the dialog, fill in the extension name and click Save. A new extension ID is created.
Set the
extensionID
property in theext.json
file to the value of the ID.Package the extension in a ZIP file. (See Create a credit card extension.)
In the Installed tab, click Upload Extension. Select the ZIP file.
Once the extension is uploaded, it appears in the list of installed extensions.
Enable the gateway
To enable the new payment gateway:
In the administration interface, select the Settings tab and then select Payment Processing.
In the Payment Gateways tab, select the payment gateway integration you installed from the Service Type drop-down list.
Select the Payment Gateway Enabled checkbox.
Configure any other settings required by the integration. For example, in the extension shown in Create a credit card extension, there are checkboxes for enabling credit card support under Preview Configuration, Agent Configuration, and Storefront Configuration.
When you enable a custom credit card payment gateway, make sure that the other credit card gateways (for example, CyberSource and Chase Paymentech Credit Cards) are disabled. Only one credit card gateway integration should be enabled.
Configure the Credit Card Payment webhook
When you create an integration for a credit card gateway, the integration uses the Credit Card Payment webhook to send authorization requests to the gateway. To configure the webhook:
In the administration interface, select the Settings tab, and then select Web APIs.
Select the Credit Card Payment webhook that you want to configure. Note that there are separate Preview and Production versions of the webhook.
In the URL field, enter the URL for accessing the payment gateway. The URL must use HTTPS.
Under Basic Authorization, fill in the username and password for accessing your gateway account.
If your gateway requires any additional HTTP request headers, click Add New Header Property and fill in the property name and value.
Click Save.