Two

Configuration

Installation

Access to the Two account through the Ormuz connector only.

Required elements

  • Two merchant accountAn approved Two merchant account for the target countries and products.
  • API keyA Two sandbox or production API key.
  • Merchant IDThe merchant identifier assigned by Two.
  • Webhook subscriptionA webhook subscription configured in the Two Merchant Portal.

Ormuz connector configuration

Connector settings

environmentRequiredenum
Two environment used by the connector. Use sandbox for testing and production for real operations.
Possible valuessandboxproduction
Default valuesandbox
merchant_idRequiredstring
Merchant identifier assigned by Two to the connected account.
default_country_codeOptionalstring
ISO 3166-1 alpha-2 country code used when the process does not provide a country.
Default valueFR
ExampleFR
default_currencyOptionalstring
ISO 4217 currency used when the process does not provide one.
Default valueEUR
ExampleEUR
default_invoice_typeOptionalenum
Default Two invoice type used for new operations.
Possible valuesFUNDED_INVOICEDIRECT_INVOICECARD
Default valueFUNDED_INVOICE
default_payment_termsOptionalenum
Default Two payment term used when the process does not specify one.
Possible values142130456090
Example30
settlements_enabledOptionalboolean
Enable retrieval and reconciliation of Two settlements for this configuration.
Default valuetrue
api_keyRequiredstring Secret
API key provided by Two for the selected merchant and environment.
webhook_secretOptionalstring Secret
Secret used to verify webhooks sent by Two.

Advanced settings

Change these values only when required by your environment or provider contract.

request_timeout_msOptionalnumber
Maximum time to wait for a Two response before considering the call failed.
Default value10000
Example10000
retry_max_attemptsOptionalnumber
Maximum number of attempts after a temporary Two API failure.
Default value3
Example3
webhook_tolerance_secondsOptionalnumber
Accepted time window for replay-protection verification of Two webhooks.
Default value300
Example300