View Source
AtEx.Gateway.Payments.Query.WalletBalance
(AtEx v0.20.23)
Fetch your wallet balance by sending a HTTP GET request to the following endpoint
Summary
Find a particular payment transaction by sending a HTTP GET request to the following endpoint
Process results from calling the gateway
Functions
@spec 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