def deps do
[
{:paymongo_elixir, "~> 1.1.0"}
]
end
Documentation can be found at https://hexdocs.pm/paymongo_elixir.
- register as a developer in paymongo in paymongo developer dashboard
- In your
dev.exs
andtest.exs
copy your public_key asclient_key
and secret_key asclient_secret
config :paymongo_elixir
client_key: <--client-key-->,
client_secret: <--client-secret-->
Notes: Implementing in production requires you to activate your account that will give live public_key
& secret_key
. Copy the setup that is in your dev.exs or test.exs.
- create a module to define the paymongo-elixir.
defmodule MyApp.Paymongo do
use PaymongoElixir, otp_app: :paymongo_elixir
end
- now you may use it.
iex> PaymongoElixir.list(:list_payments)
Bug reports and pull requests are welcome on GitHub at https://github.com/pau-riosa/paymongo-elixir. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
NOTES: please make sure that you already setup your elixir dev machine.
- register as a developer in paymongo in paymongo developer dashboard
- export your
public_keys
on your system environment asPAYMONGO_PUBLIC_KEY
- export your
secret_keys
on your system environment asPAYMONGO_SECRET_KEY
- run the following
mix do deps.get, compile
mix test