Skip to main content

Configuration

All settings are managed under:

  • WooCommerce -> Settings -> Payments -> Suma Test Gateway

Available Settings

Enable/Disable

  • Option key: enabled
  • Type: checkbox
  • Default: yes

Enables or disables gateway availability at checkout.

Title

  • Option key: title
  • Type: text
  • Default: Suma Test Gateway

Displayed as the payment method title on checkout.

Description

  • Option key: description
  • Type: textarea
  • Default: Choose whether this test transaction is accepted or declined.

Shown in the payment method details area.

Checkout Field Behavior

When selected, gateway renders:

  • Required outcome selector (suma_test_gateway_outcome)
  • approve (default)
  • decline

Invalid outcomes are rejected by validate_fields() and checkout returns an error notice.

Operational Guidance

  • Keep description explicit that this is test-only.
  • Do not localize title/description to resemble real payment processors.
  • Use explicit QA naming conventions when multiple test gateways exist.