IPay88 (ipay88 v0.1.2)
Documentation for Ipay88.
Link to this section Summary
Functions
Create Payment
Link to this section Types
Link to this type
create_payment_params()
Specs
create_payment_params() :: %{
ref_no: String.t(),
amount: String.t(),
prod_desc: String.t(),
user_name: String.t(),
user_email: String.t(),
user_contact: String.t(),
payment_id: Integer.t() | nil,
currency: String.t() | nil,
response_url: String.t() | nil,
backend_url: String.t() | nil,
remark: String.t() | nil
}
Link to this section Functions
Link to this function
create_payment(params)
Specs
create_payment(create_payment_params()) :: {:ok, map()} | {:error, any()}
Create Payment
Examples
iex> %{
ref_no: "Order-1023",
amount: "1.00",
prod_desc: "A box of chocolate",
user_name: "John Doe",
user_email: "john.doe@example.com",
user_contact: "+123456789",
currency: "MYR",
response_url: "https://example.com/ipay88_response",
backend_url: "https://example.com/ipay88_webhook",
remark: "This is a test request"
} |> IPay88.create_payment()