• Namespace
  • Class

Namespaces

  • Klarna
    • Exceptions
    • Rest
      • Checkout
      • CustomerToken
      • HostedPaymentPage
      • InstantShopping
      • MerchantCardService
      • OrderManagement
      • Payments
      • Settlements
      • Transport
        • Exception

Classes

  • Payouts
  • Reports
  • Transactions

Class Transactions

Transactions resource.

ArrayObject implements IteratorAggregate, Traversable, ArrayAccess, Serializable, Countable
Extended by Klarna\Rest\Resource
Extended by Klarna\Rest\Settlements\Transactions
Namespace: Klarna\Rest\Settlements
Example: docs/examples/SettlementsAPI/Transactions/get_transactions.php Returns a collection of transactions
Located at Klarna/Rest/Settlements/Transactions.php

Methods summary

public
# __construct( Klarna\Rest\Transport\ConnectorInterface $connector )

Constructs a Transactions instance.

Constructs a Transactions instance.

Parameters

$connector
HTTP transport connector

Overrides

Klarna\Rest\Resource::__construct
public Klarna\Rest\Settlements\Transactions
# fetch( )

Not applicable.

Not applicable.

Returns

Klarna\Rest\Settlements\Transactions

Throws

Klarna\Exceptions\NotApplicableException

Overrides

Klarna\Rest\Resource::fetch
public array
# getTransactions( array $params = [] )

Returns a collection of transactions.

Returns a collection of transactions.

Parameters

$params
Additional query params to filter transactions.

Returns

array
Transactions data

Throws

Klarna\Rest\Transport\Exception\ConnectorException
When the API replies with an error response
GuzzleHttp\Exception\RequestException
When an error is encountered
RuntimeException
On an unexpected API response
RuntimeException
If the response content type is not JSON
InvalidArgumentException
If the JSON cannot be parsed
LogicException
When Guzzle cannot populate the response

See

https://developers.klarna.com/api/#settlements-api-get-transactions

Methods inherited from Klarna\Rest\Resource

delete(), exchangeArray(), get(), getId(), getLocation(), patch(), post(), put(), request(), setId(), setLocation()

Methods inherited from ArrayObject

append(), asort(), count(), getArrayCopy(), getFlags(), getIterator(), getIteratorClass(), ksort(), natcasesort(), natsort(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), serialize(), setFlags(), setIteratorClass(), uasort(), uksort(), unserialize()

Magic methods summary

Constants summary

Constants inherited from Klarna\Rest\Resource

ID_FIELD

Constants inherited from ArrayObject

ARRAY_AS_PROPS, STD_PROP_LIST

Properties summary

public static string $path

Path to the resource endpoint.

Path to the resource endpoint.

# '/settlements/v1/transactions'

Properties inherited from Klarna\Rest\Resource

$connector, $url

API documentation generated by ApiGen