ExCashfreeSDK.PaymentGateway.Payments (ex_cashfree_sdk v0.1.0)
Payments APIs implementation for Cashfree SDK
Summary
Functions
If you accept OTP on your own page, you can use the below API to send OTP to Cashfree.
Types
Link to this type
otp_action()
@type otp_action() :: :SUBMIT_OTP | :RESEND_OTP
Link to this type
preauth_action()
@type preauth_action() :: :CAPTURE | :VOID
Functions
Link to this function
order_pay(payment_session_id, payment_method, offer_id \\ "")
Link to this function
payment(order_id, cf_payment_id)
Link to this function
payment_for_order(order_id)
Link to this function
preauthorization(order_id, action, amount)
@spec preauthorization(String.t(), preauth_action(), float()) :: {:ok, any()} | {:error, any()}
Link to this function
submit_or_resend_otp(cf_payment_id, action, otp \\ "")
If you accept OTP on your own page, you can use the below API to send OTP to Cashfree.
Examples
iex> ExCashfreeSDK.PaymentGateway.submit_or_resend_otp("cf_payment_id", :submit, "123456") {:ok, %{}}