HitPay (hit_pay v0.2.0)
An Elixir client for HitPay payment gateway (https://hit-pay.com/docs.html)
Link to this section Summary
Link to this section Functions
Link to this function
create_payment_request(params)
Create a payment request
Examples
iex> params = %{
email: "tan@thekirinlab.com",
redirect_url: "https://packargo.thekirinlab.com/hitpay/success",
webhook: "https://packargo.thekirinlab.com/hitpay/webhook",
amount: "599",
currency: "SGD"
}
iex> HitPay.create_payment_request(params)
Link to this function
delete_payment_request(request_id)
Delete a payment request
Examples
iex> HitPay.delete_payment_request("93e61239-4334-42fc-be25-6c221b982699")
Link to this function
get_payment_status(request_id)
Get payment status
Examples
iex> HitPay.get_payment_status("93e61239-4334-42fc-be25-6c221b982699")