# `Payzum`
[🔗](https://github.com/payzum-dev/payzum-elixir/blob/main/lib/payzum.ex#L1)

Official Elixir SDK for the Payzum crypto payment API.

    {:ok, client} = Payzum.new(System.fetch_env!("PAYZUM_API_KEY"))

    {:ok, invoice} =
      Payzum.Payments.create(client, %{
        price_amount: "49.99",
        price_currency: "usd",
        pay_currency: "all",
        order_id: "ORDER-12345"
      })

    # Redirect the buyer to invoice["invoice_url"].

And in the webhook endpoint, against the RAW body:

    {:ok, verifier} = Payzum.Webhooks.new(System.fetch_env!("PAYZUM_WEBHOOK_SECRET"))
    {:ok, payload} = Payzum.Webhooks.verify_payment_ipn(verifier, raw_body, headers)

The dangerous parts — signature verification, exact decimals, the retry policy —
are owned here so integrators do not implement them differently.

# `health`

# `new`

# `sandbox`

# `version`

The SDK version, mirrored in the User-Agent.

# `webhooks`

---

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