Class: OnlinePayments::SDK::Authentication::AuthorizationType

Inherits:
Object
  • Object
show all
Defined in:
lib/onlinepayments/sdk/authentication/authorization_type.rb

Overview

Contains all authentication schemes supported by the Online Payments platform.

Constant Summary collapse

V1HMAC =
"v1HMAC".freeze

Class Method Summary collapse

Class Method Details

.get_authorization(authorization) ⇒ String

Returns the authorization string that belongs to the parameter authorization, or nil if not found.

Returns:

  • (String)

    the authorization string that belongs to the parameter authorization, or nil if not found.



9
10
11
# File 'lib/onlinepayments/sdk/authentication/authorization_type.rb', line 9

def self.get_authorization(authorization)
  authorization if authorization == 'v1HMAC'
end