Skip to content

pau-riosa/paymongo-elixir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PaymongoElixir

Installation

def deps do
  [
    {:paymongo_elixir, "~> 1.1.0"}
  ]
end

Documentation can be found at https://hexdocs.pm/paymongo_elixir.

Development

  1. register as a developer in paymongo in paymongo developer dashboard
  2. In your dev.exs and test.exs copy your public_key as client_key and secret_key as client_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.

  1. create a module to define the paymongo-elixir.
defmodule MyApp.Paymongo do
  use PaymongoElixir, otp_app: :paymongo_elixir
end
  1. now you may use it.
iex> PaymongoElixir.list(:list_payments)

Contribution

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.

Running Test

NOTES: please make sure that you already setup your elixir dev machine.

  1. register as a developer in paymongo in paymongo developer dashboard
  2. export your public_keys on your system environment as PAYMONGO_PUBLIC_KEY
  3. export your secret_keys on your system environment as PAYMONGO_SECRET_KEY
  4. run the following
mix do deps.get, compile
mix test

About

unofficial api integration for paymongo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages