Webpay
Elixir wrapper of Webpay
Installation
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 :your_application, :webpay,
api_key: "your api key"Usage
Webpay.Charges.create [
amount: 400,
currency: :jpy,
card: "card token",
description: ""
]