A Visa Checkout library for Elixir.
Add visa_checkout_elixir
to your list of dependencies in mix.exs
:
def deps do
[
{:visa_checkout_elixir, "~> 1.0"}
]
end
To make API calls, it's necessary to configure your Visa Checkout keys.
Add to your config:
config :visa_checkout_elixir,
api_key: "YOUR_API_KEY",
secret: "YOUR_SECRET"
or add to your environment:
export VISA_CHECKOUT_API_KEY=YOUR_API_KEY
export VISA_CHECKOUT_SECRET=YOUR_SECRET
If you want to use it in sandbox mode:
config :visa_checkout_elixir, sandbox: true
VisaCheckout.get_payment_data("call_id")
VisaCheckout.update_payment_info("call_id", %{orderInfo: ...})