# CheckoutMethod

An eligible local payment method.

[Definition in OpenAPI](https://api.cadmospay.com/static/api/gateway-machine-api.json#/components/schemas/CheckoutMethod)

## JSON schema

```json
{
  "type": "object",
  "description": "An eligible local payment method.",
  "required": [
    "code",
    "title",
    "currency",
    "minUsd",
    "maxUsd",
    "countries",
    "iconUrl",
    "whatsappNumber",
    "chatUrl",
    "payUsd"
  ],
  "properties": {
    "code": {
      "type": "string",
      "description": "Method code, for example whish."
    },
    "title": {
      "type": "string",
      "description": "Method display name."
    },
    "iconUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "Public icon URL, if available."
    },
    "countries": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "currency": {
      "type": "string",
      "description": "Payment currency."
    },
    "minUsd": {
      "type": [
        "string",
        "null"
      ],
      "description": "Minimum payable amount in dollars."
    },
    "maxUsd": {
      "type": [
        "string",
        "null"
      ],
      "description": "Maximum payable amount in dollars."
    },
    "whatsappNumber": {
      "type": "string",
      "description": "Public Cadmos WhatsApp contact including country code, digits only. The chat supplies the receiving agent’s Whish number.",
      "pattern": "^[0-9]+$"
    },
    "chatUrl": {
      "type": "string",
      "description": "Open this WhatsApp chat with the payment reference prefilled.",
      "format": "uri"
    },
    "payUsd": {
      "type": [
        "string",
        "null"
      ],
      "description": "Amount to send in USD for a fixed-price order. Null for an open amount."
    },
    "sponsoredFeeUsd": {
      "type": "string",
      "description": "Amount of the method fee covered by the merchant."
    },
    "quoteExpiresAt": {
      "type": "string",
      "description": "Refresh the method quote at this time.",
      "format": "date-time"
    }
  }
}
```
