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_Order

Implementation of the order resource

Klarna_Checkout_Resource implements Klarna_Checkout_ResourceInterface, ArrayAccess
Extended by Klarna_Checkout_Order implements Klarna_Checkout_ResourceCreateableInterface, Klarna_Checkout_ResourceFetchableInterface, Klarna_Checkout_ResourceUpdateableInterface
Package: Klarna\Checkout
Category: Payment
Copyright: 2015 Klarna AB
License: Apache license v2.0
Author: Majid G. majid.garmaroudi@klarna.com
Author: David K. david.keijser@klarna.com
Author: Matthias Feist matthias.feist@klarna.com
Link: http://developers.klarna.com/
Located at Klarna/Checkout/Order.php

Methods summary

public
# __construct( Klarna_Checkout_ConnectorInterface $connector, string $id = null )

Create a new order.

Create a new order.

Parameters

$connector
connector to use
$id
Order id

Overrides

Klarna_Checkout_Resource::__construct
public
# create( array $data )

Create a new order

Create a new order

Parameters

$data
data to initialise order resource with

Implementation of

Klarna_Checkout_ResourceCreateableInterface::create()
public
# fetch( )

Fetch order data

Fetch order data

Implementation of

Klarna_Checkout_ResourceFetchableInterface::fetch()
public
# update( array $data )

Update order data

Update order data

Parameters

$data
data to update order resource with

Implementation of

Klarna_Checkout_ResourceUpdateableInterface::update()

Methods inherited from Klarna_Checkout_Resource

getAccept(), getContentType(), getLocation(), marshal(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), parse(), setAccept(), setContentType(), setLocation()

Magic methods summary

Properties summary

protected string $relativePath

Path that is used to create resources

Path that is used to create resources

# '/checkout/orders'
protected string $contentType

Content Type to use

Content Type to use

# "application/vnd.klarna.checkout.aggregated-order-v2+json"

Properties inherited from Klarna_Checkout_Resource

$accept, $connector, $data, $location

API documentation generated by ApiGen