paytm v0.3.1 Paytm.API.Wallet

Link to this section Summary

Link to this section Functions

Link to this function add_money(money, order_id, customer_id, token, options \\ [])
add_money(money :: Money.t(), order_id :: String.t(), customer_id :: String.t(), token :: Paytm.API.OAuth.Token.t() | String.t(), options :: [{:channel_id, String.t()}]) ::
  {:ok, params :: map()} |
  {:error, message :: String.t(), code :: nil}
Link to this function charge(money, order_id, customer_id, token, options \\ [])
charge(money :: Money.t(), order_id :: String.t(), customer_id :: String.t(), token :: Paytm.API.OAuth.Token.t() | String.t(), options :: [channel_id: String.t(), app_ip: String.t()]) ::
  {:ok, transaction :: Paytm.API.Wallet.Transaction.t()} |
  {:error, message :: String.t(), code :: String.t() | atom() | nil, transaction :: Paytm.API.Wallet.Transaction.t() | nil}
Link to this function fetch_balance(token)
fetch_balance(token :: Paytm.API.OAuth.Token.t() | String.t()) ::
  {:ok, balance :: Paytm.API.Wallet.Balance.t()} |
  {:error, message :: String.t() | atom(), code :: atom() | nil}