/webpay

Elixir webpay wrapper

Primary LanguageElixir

Webpay

Elixir wrapper of Webpay

Installation

If available in Hex, the package can be installed as:

  1. Add webpay to your list of dependencies in mix.exs:
  def deps do
  [{:webpay, "~> 0.0.4"}]
  end
  1. Ensure webpay is started before your application:
  def application do
  [applications: [:webpay]]
  end
  1. Puts config your config.exs
  config :webpay, Webpay,
  api_key: "your api key"

Usage

Webpay.Charges.create [
  amount: 400,
  currency: :jpy,
  card: "card token",
  description: ""
]