Class: OmniAuth::Strategies::Gocardless
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Gocardless
- Defined in:
- lib/omniauth/strategies/gocardless.rb
Instance Method Summary collapse
Instance Method Details
#callback_url ⇒ Object
29 30 31 |
# File 'lib/omniauth/strategies/gocardless.rb', line 29 def callback_url ([:callback_host] || full_host) + script_name + callback_path end |
#raw_info ⇒ Object
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 |