Created
March 15, 2016 20:23
-
-
Save gpolyn/148ca150ea1bd19db282 to your computer and use it in GitHub Desktop.
github.com/Dwolla/dwolla-v2-ruby/tree/44bea580123ad914b184e54c65f80d05600d3d3d#usage doesn't give correct scopes in uat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'dwolla_v2' | |
$dwolla = DwollaV2::Client.new(id: ENV["DWOLLA_KEY"], secret: ENV["DWOLLA_SECRET"]) do |optional_config| | |
optional_config.environment = :sandbox | |
end | |
p "scope should be " + ( scope = "ManageCustomers|Funding" ) | |
@token = $dwolla.auths.client scope: scope | |
p "...but scope is " + @token.scope |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://rubygems.org" | |
ruby '2.1.2' | |
gem 'dwolla_v2', '~> 0.4' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment