OpenNodex
A (very) simple interface to opennode.co - more to come if this gets wings.
Installation
The package can be installed by adding opennodex
to your list of dependencies in mix.exs
:
def deps do
[
{:opennodex, "~> 0.3.0"}
]
end
API Documentation is also available at https://hexdocs.pm/opennodex.
Usage
Create a $99 charge, with callback and success URLs:
OpenNodex.Client.new("[your api_key here]")
|> OpenNodex.create_charge(99, "USD", "https://example.com/callback", "https://example.com/success")
Will return an {:ok, %Charge{id: ...}}
upon success or {:error, ...}
on failure.
TODO
- Phoenix integration for the callback events.