Overview
  • Namespace
  • Class

Namespaces

  • Klarna
    • XMLRPC
      • Exception

Classes

  • Address
  • Calc
  • CheckoutServiceRequest
  • CheckoutServiceResponse
  • Config
  • Country
  • CurlHandle
  • CurlTransport
  • Currency
  • Encoding
  • Flags
  • Klarna
  • Language

Class Config

Configuration class for the Klarna instance.

You add settings using the ArrayAccess:
$arr['field'] = $val or $arr->offsetSet('field', $val);

Available settings are:
eid - Merchant ID (int) secret - Shared secret (string) country - Country constant or code (int|string) language - Language constant or code (int|string) currency - Currency constant or code (int|string) mode - Klarna::BETA or Klarna::LIVE xmlrpcDebug - XMLRPC debugging (bool) debug - Normal debugging (bool) timeout - XMLRPC timeout in seconds (int)

Klarna\XMLRPC\Config implements ArrayAccess
Namespace: Klarna\XMLRPC
Located at Klarna/XMLRPC/Config.php

Methods summary

public
# clear( )

Clears the config.

Clears the config.

public boolean
# offsetExists( mixed $offset )

Returns true whether the field exists.

Returns true whether the field exists.

Parameters

$offset
field

Returns

boolean

Implementation of

ArrayAccess::offsetExists()
public mixed
# offsetGet( mixed $offset )

Used to get the value of a field.

Used to get the value of a field.

Parameters

$offset
field

Returns

mixed

Implementation of

ArrayAccess::offsetGet()
public
# offsetSet( mixed $offset, mixed $value )

Used to set a value to a field.

Used to set a value to a field.

Parameters

$offset
field
$value
value

Implementation of

ArrayAccess::offsetSet()
public
# offsetUnset( mixed $offset )

Removes the specified field.

Removes the specified field.

Parameters

$offset
field

Implementation of

ArrayAccess::offsetUnset()

Magic methods summary

API documentation generated by ApiGen