Skip to content

Latest commit

 

History

History
65 lines (46 loc) · 1.49 KB

File metadata and controls

65 lines (46 loc) · 1.49 KB

Dwolla

Build Status Hex.pm Version

Elixir Library for Dwolla

Supported endpoints:

  • Accounts
  • Customers
  • Documents
  • Funding Sources
  • Transfers
  • Mass Payments
  • Events
  • Webhook Subscriptions
  • Webhooks

Dwolla Documentation

Usage

Add to your dependencies in mix.exs.

def deps do
  [{:dwolla, "~> 1.0"}]
end

Configuration

All calls to Dwolla require a valid access token. To fetch/refresh the access token you need to add your Dwolla client_id and client_secret to your config.

config :dwolla,
  root_uri: "https://api.dwolla.com/",
  client_id: "your_client_id",
  client_secret: "your_client_secret",
  access_token: nil,
  httpoison_options: [timeout: 10_000, recv_timeout: 10_000],

The root_uri is configured by mix environment by default. You can override them in your configuration.

  • dev - sandbox
  • prod - production

You can also pass in a custom configuration for HTTPoison.

Tests and Style

This library uses bypass to simulate HTTP responses from Dwolla.

Run tests using mix test.

Before making pull requests, run the coverage and style checks.

mix coveralls
mix credo