lib/helpers/controller_helpers.rb in wepay-rails-0.1.27 vs lib/helpers/controller_helpers.rb in wepay-rails-0.1.28

- old
+ new

@@ -28,14 +28,18 @@ "#{@base_uri}/v2/oauth2/authorize?#{query}" end def config_params(redirect_uri) { - :client_id => @config[:client_id], + :client_id => wepay_config[:client_id], :redirect_uri => redirect_uri, - :client_secret => @config[:client_secret], + :client_secret => wepay_config[:client_secret], } + end + + def wepay_config + gateway.config end def redirect_to_wepay_for_auth(redirect_uri, scope) redirect_to gateway.auth_code_url(redirect_uri, scope) end \ No newline at end of file