paytm v0.3.0 Paytm.API.OAuth

Link to this section Summary

Link to this section Functions

Link to this function send_otp(params)
send_otp(%{email: String.t(), phone: String.t()}) ::
  {:ok, state :: String.t(), :login} |
  {:ok, state :: String.t(), :register} |
  {:error, message :: String.t() | atom(), code :: atom()}
Link to this function validate_otp(otp, state)
validate_otp(otp :: String.t(), state :: String.t()) ::
  {:ok, token :: Paytm.API.OAuth.Token.t()} |
  {:error, message :: String.t() | atom(), code :: atom()}
Link to this function validate_token(token)
validate_token(token :: Paytm.API.OAuth.Token.t() | String.t()) ::
  {:ok, token :: Paytm.API.OAuth.Token.t()} |
  {:error, message :: String.t() | atom(), code :: atom()}