paytm v0.5.2 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: String.t() | nil, callback_url: String.t() | nil]) ::
  {: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: String.t() | nil, app_ip: String.t() | nil]) ::
  {: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}
Link to this function refund(transaction, reference, amount \\ nil)
refund(transaction :: Paytm.API.Wallet.Transaction.t(), reference :: String.t(), refund_money :: Money.t() | nil) ::
  {:ok, refund_id :: String.t()} |
  {:error, message :: String.t(), code :: String.t()}