Elixir wrapper of Webpay
If available in Hex, the package can be installed as:
- Add webpay to your list of dependencies in
mix.exs
:
def deps do
[{:webpay, "~> 0.0.4"}]
end
- Ensure webpay is started before your application:
def application do
[applications: [:webpay]]
end
- Puts config your
config.exs
config :webpay, Webpay,
api_key: "your api key"
Webpay.Charges.create [
amount: 400,
currency: :jpy,
card: "card token",
description: ""
]