Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wfgilman/dwolla-elixir
An Elixir library for Dwolla
https://github.com/wfgilman/dwolla-elixir
dwolla elixir
Last synced: 10 days ago
JSON representation
An Elixir library for Dwolla
- Host: GitHub
- URL: https://github.com/wfgilman/dwolla-elixir
- Owner: wfgilman
- License: mit
- Created: 2018-06-12T18:23:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-20T14:46:59.000Z (about 4 years ago)
- Last Synced: 2024-09-17T08:31:58.197Z (about 2 months ago)
- Topics: dwolla, elixir
- Language: Elixir
- Size: 50.8 KB
- Stars: 6
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dwolla
[![Build Status](https://travis-ci.org/wfgilman/dwolla-elixir.svg?branch=master)](https://travis-ci.org/wfgilman/dwolla-elixir)
[![Hex.pm Version](https://img.shields.io/hexpm/v/dwolla_elixir.svg)](https://hex.pm/packages/dwolla_elixir)Elixir Library for Dwolla
Supported endpoints:
- [ ] Accounts
- [x] Customers
- [x] Documents
- [x] Funding Sources
- [x] Transfers
- [ ] Mass Payments
- [x] Events
- [x] Webhook Subscriptions
- [x] Webhooks[Dwolla Documentation](https://docsv2.dwolla.com)
## Usage
Add to your dependencies in `mix.exs`.
```elixir
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.```elixir
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` - productionYou can also pass in a custom configuration for [HTTPoison](https://github.com/edgurgel/httpoison).
## Tests and Style
This library uses [bypass](https://github.com/PSPDFKit-labs/bypass) to simulate HTTP responses from Dwolla.
Run tests using `mix test`.
Before making pull requests, run the coverage and style checks.
```elixir
mix coveralls
mix credo
```