AtEx v0.20.21 AtEx.Gateway.Payments.Query.WalletBalance View Source

Fetch your wallet balance by sending a HTTP GET request to the following endpoint

Link to this section Summary

Functions

Find a particular payment transaction by sending a HTTP GET request to the following endpoint

Process results from calling the gateway

Link to this section Types

Link to this type

option()

View Source
option() ::
  {:method, Tesla.Env.method()}
  | {:url, Tesla.Env.url()}
  | {:query, Tesla.Env.query()}
  | {:headers, Tesla.Env.headers()}
  | {:body, Tesla.Env.body()}
  | {:opts, Tesla.Env.opts()}

Link to this section Functions

Link to this function

balance()

View Source
balance() :: {:ok, term()} | {:error, term()}

Find a particular payment transaction by sending a HTTP GET request to the following endpoint

Example

  iex>AtEx.Gateway.Payments.Query.WalletBalance.balance()
  {:ok, %{"balance" => "KES 90.0000", "status" => "Success"}}

Process results from calling the gateway