Packages

An Elixir library for interacting with the Bold API, providing seamless integration to manage payments efficiently.

Current section

Files

Jump to
bold lib bold.ex
Raw

lib/bold.ex

defmodule Bold do
@moduledoc """
Bold API client.
"""
alias Bold.Adapters.PaymentGateway
@adapter Application.compile_env(:bold, :adapter, PaymentGateway)
defdelegate create_link(params), to: @adapter
defdelegate get_link(id), to: @adapter
defdelegate list_methods(), to: @adapter
end