Overview
  • Namespace
  • Class

Namespaces

  • Klarna
    • XMLRPC
      • Exception

Classes

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

Class Encoding

Encoding class.

Namespace: Klarna\XMLRPC
Located at Klarna/XMLRPC/Encoding.php

Methods summary

public static integer
# get( string $country )

Returns the constant for the wanted country.

Returns the constant for the wanted country.

Parameters

$country
country

Returns

integer
public static boolean
# checkPNO( string $pno, integer $enc = null )

Checks if the specified PNO is correct according to specified encoding constant.

Checks if the specified PNO is correct according to specified encoding constant.

Parameters

$pno
PNO/SSN string.
$enc
Encoding PNO/SSN encoding constant.

Returns

boolean
True if correct.

Magic methods summary

Constants summary

integer PNO_SE

PNO/SSN encoding for Sweden.

PNO/SSN encoding for Sweden.

# 2
integer PNO_NO

PNO/SSN encoding for Norway.

PNO/SSN encoding for Norway.

# 3
integer PNO_FI

PNO/SSN encoding for Finland.

PNO/SSN encoding for Finland.

# 4
integer PNO_DK

PNO/SSN encoding for Denmark.

PNO/SSN encoding for Denmark.

# 5
integer PNO_DE

PNO/SSN encoding for Germany.

PNO/SSN encoding for Germany.

# 6
integer PNO_NL

PNO/SSN encoding for Netherlands.

PNO/SSN encoding for Netherlands.

# 7
integer PNO_AT

PNO/SSN encoding for Austria.

PNO/SSN encoding for Austria.

# 8
integer CUSTNO

Encoding constant for customer numbers.

Encoding constant for customer numbers.

See

Klarna::setCustomerNo()
# 1000
integer EMAIL

Encoding constant for email address.

Encoding constant for email address.

# 1001
integer CELLNO

Encoding constant for cell numbers.

Encoding constant for cell numbers.

# 1002
integer BANK_BIC_ACC_NO

Encoding constant for bank bic + account number.

Encoding constant for bank bic + account number.

# 1003
API documentation generated by ApiGen