Module: Klarna::Checkout::Resources::Authentication

Included in:
Order, Order
Defined in:
lib/klarna/checkout/resources/authentication.rb

Instance Method Summary collapse

Instance Method Details

#authorizationObject



7
8
9
10
11
12
# File 'lib/klarna/checkout/resources/authentication.rb', line 7

def authorization
  uid  = Klarna::Checkout.configuration.user_id
  pass = Klarna::Checkout.configuration.passcode

  encode_base64(uid, pass)
end