Overview
  • Package
  • Class

Packages

  • Klarna
    • Checkout
  • Payment
    • Klarna
      • HTTP
      • Interfaces
      • Unit
        • Tests

Classes

  • Klarna_Checkout_BasicConnector
  • Klarna_Checkout_Connector
  • Klarna_Checkout_Digest
  • Klarna_Checkout_Order
  • Klarna_Checkout_RecurringOrder
  • Klarna_Checkout_RecurringStatus
  • Klarna_Checkout_Resource
  • Klarna_Checkout_UserAgent

Interfaces

  • Klarna_Checkout_ApiErrorException
  • Klarna_Checkout_ConnectionErrorException
  • Klarna_Checkout_ConnectorException
  • Klarna_Checkout_ConnectorInterface
  • Klarna_Checkout_Exception
  • Klarna_Checkout_ResourceCreateableInterface
  • Klarna_Checkout_ResourceFetchableInterface
  • Klarna_Checkout_ResourceInterface
  • Klarna_Checkout_ResourceUpdateableInterface

Class Klarna_Checkout_UserAgent

UserAgent string builder

Package: Klarna\Checkout
Category: Payment
Copyright: 2015 Klarna AB
License: Apache license v2.0
Author: David K. david.keijser@klarna.com
Link: http://developers.klarna.com/
Located at Klarna/Checkout/UserAgent.php

Methods summary

public
# __construct( )

Initialise user-agent with default fields

Initialise user-agent with default fields

public
# addField( string $field, array $data )

Add a new field to the user agent

Add a new field to the user agent

Parameters

$field
Name of field
$data
data array with name, version and possibly options

Throws

Klarna_Checkout_Exception
public string
# __toString( )

Serialise fields to a user agent string

Serialise fields to a user agent string

Returns

string

Magic methods summary

API documentation generated by ApiGen