# `Stancer`

Stancer API client for Elixir.

Dynamically generates API functions from OpenAPI spec at compile time.
API paths and versions come directly from the OpenAPI specification.

Configuration:
```
config :stancer,
  api_key: System.get_env("STANCER_API_KEY"),
  api_url: "https://api.stancer.com"
```

# `capture_payment`

Capture a previously authorized payment.

# `create_payment`

Create a payment with card authorization (no capture).

Authorizes the card without capturing the funds.

# `delete_card`

Delete a card token.

# `get_card`

Get card details by token.

# `get_payment`

Get payment details by ID.

# `refund_payment`

Refund a captured payment.

# `request`

# `tokenize_card`

Tokenize a card and return a card token.

Takes a map with card details and returns a card token for future payments.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
