class Ingenico::Direct::SDK::DefaultImpl::AuthorizationType

Contains all authentication schemes supported by the GlobabCollect platform.

Constants

V1HMAC

Public Class Methods

get_authorization(authorization) click to toggle source

@return [String] the authorization string that belongs to the parameter authorization, or nil if not found.

# File lib/ingenico/direct/sdk/defaultimpl/authorization_type.rb, line 9
def self.get_authorization(authorization)
  case authorization.downcase
  when V1HMAC.downcase
    return V1HMAC
  else
    raise ArgumentError "Unknown authorization type '#{authorization}'"
  end
end
get_signature_string() click to toggle source

@return [String]

# File lib/ingenico/direct/sdk/defaultimpl/authorization_type.rb, line 19
def self.get_signature_string
  V1HMAC
end