# WOMPI

Wompi is a Colombian payment gateway that supports multiple payment methods including PSE, Nequi, credit/debit cards, and cash. The user is redirected to Wompi's hosted checkout to complete the payment.

**Country:** Colombia | **Currency:** COP | **Direction:** Pay-in

## Required fields

| Field                      | Type     | Description                   |
| -------------------------- | -------- | ----------------------------- |
| `type`                     | `string` | Must be `"WOMPI"`             |
| `currency`                 | `string` | Must be `"COP"`               |
| `wompi.redirectUrl`        | `string` | URL to redirect after payment |
| `wompi.customer.firstName` | `string` | Payer's first name            |
| `wompi.customer.email`     | `string` | Payer's email                 |

## Example

```json
{
  "type": "WOMPI",
  "currency": "COP",
  "wompi": {
    "redirectUrl": "https://yourapp.com/return",
    "customer": {
      "firstName": "Luis",
      "email": "luis@example.com"
    }
  }
}
```

## Response fields

| Field       | Description                  |
| ----------- | ---------------------------- |
| `url`       | Wompi-hosted checkout URL    |
| `token`     | Payment session token        |
| `expiresAt` | Session expiration timestamp |

Redirect the user to `wompi.url` to complete their payment.

## OpenAPI reference

* Spec: `conomyhq-api`
* Component: `wompi`
* Source: [Payment API.yaml](https://raw.githubusercontent.com/conomyapp/gitbook-docs/main/.gitbook/assets/Payment%20API.yaml)
