paytm v0.8.1 Paytm.API.Gratification

Link to this section Summary

Link to this section Functions

Link to this function check_status(reference_type, reference)
check_status(
  reference_type :: :order_id | :transaction_id | :refund_id,
  reference :: String.t()
) ::
  {:ok, transactions :: [Paytm.API.Gratification.Transaction.t()]}
  | {:error, message :: String.t(), code :: atom() | String.t()}
Link to this function credit(money, order_id, phone, email, options \\ [])
credit(
  money :: Money.t(),
  order_id :: String.t(),
  phone :: String.t(),
  email :: String.t(),
  options :: [
    sales_wallet_name: String.t() | nil,
    sales_wallet_guid: String.t() | nil,
    apply_to_new_users: boolean() | nil,
    metadata: String.t() | nil,
    ip_address: String.t() | nil
  ]
) ::
  {:ok, response :: map(), status :: :success | :pending}
  | {:error, message :: String.t(), code :: atom() | String.t()}