Sha256: 6ecd40d56009680c930dccdc539706f91f9e969bd9eee13805a5e1b3b8af724f

Contents?: true

Size: 559 Bytes

Versions: 1

Compression:

Stored size: 559 Bytes

Contents

require 'omniauth-oauth2'

module OmniAuth
  module Strategies
    class Paymill < OmniAuth::Strategies::OAuth2
      option :name, 'paymill'

      option :client_options, {
        :site => 'https://connect.paymill.com',
        :token_url => "/token",
        :authorize_url => "/authorize",
        :proxy => ENV['http_proxy'] ? URI(ENV['http_proxy']) : nil
      }

      uid { raw_info['merchant_id'] }

      extra do
        { :raw_info => raw_info }
      end

      def raw_info
        @raw_info ||= access_token.params
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
omniauth-paymill-0.0.1 lib/omniauth/strategies/paymill.rb