paytm v0.8.0 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 \\ [])
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
check_status(order_id)
check_status(order_id :: String.t()) :: {:ok, transaction :: Paytm.API.Wallet.Transaction.t()} | {:error, message :: String.t(), code :: String.t()}
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)