Class: OmniAuth::Strategies::Gocardless

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/omniauth/strategies/gocardless.rb

Instance Method Summary collapse

Instance Method Details

#callback_urlObject



29
30
31
# File 'lib/omniauth/strategies/gocardless.rb', line 29

def callback_url
  (options[:callback_host] || full_host) + script_name + callback_path
end

#raw_infoObject



33
34
35
36
# File 'lib/omniauth/strategies/gocardless.rb', line 33

def raw_info
  merchant_id = access_token.params['scope'].split(':').last
  @raw_info ||= access_token.get("/api/v1/merchants/#{merchant_id}.json").parsed
end