Overview
  • Namespace
  • Class

Namespaces

  • Klarna
    • XMLRPC
      • Exception

Classes

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

Class CheckoutServiceRequest

Checkout service request class.

Namespace: Klarna\XMLRPC
Example: docs/examples/checkoutService.php How to use the checkout service.
Located at Klarna/XMLRPC/CheckoutServiceRequest.php

Methods summary

public
# __construct( ArrayAccess $config, array $params )

Constructor.

Constructor.

Parameters

$config
Configuration
$params
Parameters used to build query.
public Klarna\XMLRPC\CheckoutServiceResponse
# createResponse( integer $code, string $body )

Create a checkout service response.

Create a checkout service response.

Parameters

$code
HTTP status code
$body
HTTP body

Returns

Klarna\XMLRPC\CheckoutServiceResponse
Checkout service response
public string
# getURL( )

Get the url associated to this request.

Get the url associated to this request.

Returns

string
URL with query
public array
# getHeaders( )

Get the headers associated to this request.

Get the headers associated to this request.

Returns

array
Array of headers strings

Magic methods summary

Properties summary

protected ArrayAccess $config

Configuration.

Configuration.

#
protected array $params

Request parameters.

Request parameters.

#
protected string $uri

Request URI.

Request URI.

# 'https://api.klarna.com/touchpoint/checkout/'
protected string $accept

Media type of the response.

Media type of the response.

# 'application/vnd.klarna.touchpoint-checkout.payment-methods-v1+json'
API documentation generated by ApiGen