{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/woocommerce/json-schema/woocommerce-payment-gateway-schema.json",
  "title": "PaymentGateway",
  "description": "A payment gateway installed in the WooCommerce store.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/woocommerce-payment-gateways-api-openapi.yml#/components/schemas/PaymentGateway",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Payment gateway unique string identifier (e.g. stripe, paypal)."
    },
    "title": {
      "type": "string",
      "description": "Gateway display name shown to customers at checkout."
    },
    "description": {
      "type": "string",
      "description": "Gateway description shown at checkout."
    },
    "order": {
      "type": "integer",
      "description": "Gateway display order at checkout."
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the gateway is active and available at checkout."
    },
    "method_title": {
      "type": "string",
      "description": "Admin label for the gateway."
    },
    "method_description": {
      "type": "string",
      "description": "Admin description of the gateway."
    },
    "method_supports": {
      "type": "array",
      "description": "Features supported by this gateway (e.g. products, refunds, subscriptions).",
      "items": {
        "type": "string"
      }
    },
    "settings": {
      "type": "object",
      "description": "Gateway settings as a key-value map. Each setting has id, label, description, type, value, and tip properties.",
      "additionalProperties": true
    }
  }
}