ExCashfreeSDK.PaymentGateway.Orders (ex_cashfree_sdk v0.1.0)

Orders APIs implementation for Cashfree SDK

Summary

Types

@type customer() :: %{
  optional(:customer_name) => String.t(),
  optional(:customer_email) => String.t(),
  optional(:customer_bank_ifsc) => String.t(),
  optional(:customer_bank_account_number) => String.t(),
  optional(:customer_bank_code) => number(),
  customer_id: String.t(),
  customer_phone: String.t()
}
@type order() :: %{
  customer_details: customer(),
  order_id: String.t() | nil,
  order_currency: String.t(),
  order_amount: float(),
  order_meta: %{optional(:return_url) => String.t()}
}

Functions

Link to this function

create_order(order)

@spec create_order(order()) :: {:ok, any()}
Link to this function

get_order(order_id)

Link to this function

terminate_order(order_id)