View Source ExCashfreeSDK.PaymentGateway.Orders (ex_cashfree_sdk v0.1.1)

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

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

terminate_order(order_id)

View Source