K Khay logo
K Khay
Get Started
Hex.pm: kkhayv1.0.4Phoenix & OTP Ready

Elixir & Phoenix SDK

The official Elixir SDK for Phoenix web applications and distributed OTP nodes. Built purely using Erlang's standard library (:httpc and :crypto) with zero native dependencies.

1. Installation

mix.exs
def deps do
[
{:kkhay, "~> 1.0.4"}
]
end

2. Invoice Creation Example

payment.ex
defmodule MyApp.Payment do
def create_checkout do
client = Kkhay.Client.new(System.get_env("KKHAY_API_KEY"))
{:ok, invoice} = Kkhay.create_invoice(client, %{
amount: 60.00,
currency: "USD",
pay_network: "bsc",
pay_token: "USDT",
order_id: "ELIXIR-9912",
title: "Distributed Cluster Access"
})
IO.puts("Checkout URL: #{invoice.hosted_url}")
end
end