Creating a payment gateway connector
The Payment Gateway Connectors section is available to the root reseller only.
To create a payment gateway connector:
- Sign in to the Operator Control Panel on the root reseller level.
- Go to Payment Gateway Connectors (see Navigation). The list of payment gateway connectors is displayed (see Viewing the list of payment gateway connectors).
- Click Create. The New Payment Gateway Connector page is displayed.
- In the Name field, enter the payment gateway connector name displayed in a payment method configuration (see Creating a payment method).
- In the Connector URL field, enter the URL to which ActivePlatform will send requests working with the payment gateway. Example: https://gateway.example.com
If necessary, in the Period for payment processing field, enter the number of minutes after which a payment in the Processing status must return in the Waiting for payment status if no answer from a payment gateway is received.
A payment in any status, except for Processing, does not change its status after the Period for payment processing timer expiration.
If an answer from a payment gateway is received after the Period for payment processing timer expiration, a payment in the Waiting for payment status does the following:
- If an answer from the payment gateway is success, the payment gets the Completed status. If a customer already started another attempt to pay before the payment got the Completed status:
- If an answer from the payment gateway for this attempt is success, the payment remains in the Completed status. The amount of this attempt is returned to the account balance.
- If an answer from the payment gateway for this attempt is not success, the payment remains in the Completed status. For the payment in the Customer Control Panel, the error message from the payment gateway is not displayed.
- If an answer from the payment gateway is not success, the payment remains in the Waiting for payment status. For the payment in the Customer Control Panel, the error message from the payment gateway is displayed.
- If an answer from the payment gateway is success, the payment gets the Completed status. If a customer already started another attempt to pay before the payment got the Completed status:
In the JSON Schema field, enter the data specification in the JSON format of the payment gateway connector settings to be specified later in a payment method configuration (see Creating a payment method).
- If necessary, in the Static JSON field, enter the static JSON schema of the payment gateway connector settings. It defines shared settings for all payment methods to work with the payment gateway (for example, the auth parameters).
- Click Create. The platform validates the JSON schemas:
- If a JSON schema is valid, the list of payment gateway connectors is displayed, including the created payment gateway connector.
- If a JSON schema is not valid, the error message is displayed, including the description of the problem items.
After creating the payment gateway connector, the platform automatically generates the hash function key (see Secret Shared Key in Viewing and updating payment gateway connector's details).