Overview
  • Package
  • Class

Packages

  • Klarna
    • Checkout
  • Payment
    • Klarna
      • HTTP
      • Interfaces
      • Unit
        • Tests

Interfaces

  • Klarna_Checkout_HTTP_TransportInterface

Interface Klarna_Checkout_HTTP_TransportInterface

Interface for a Klarna HTTP Transport object

Direct known implementers

Klarna_Checkout_HTTP_CURLTransport

Package: Payment\Klarna\Interfaces
Category: Payment
Copyright: 2015 Klarna AB
License: Apache license v2.0
Author: Klarna support@klarna.com
Link: http://developers.klarna.com/
Located at Klarna/Checkout/HTTP/TransportInterface.php

Methods summary

public
# setTimeout( integer $timeout )

Specifies the number of seconds before the connection times out.

Specifies the number of seconds before the connection times out.

Parameters

$timeout
number of seconds

Throws

InvalidArgumentException

If the specified argument is not of type integer.

public integer
# getTimeout( )

Gets the number of seconds before the connection times out.

Gets the number of seconds before the connection times out.

Returns

integer
timeout in number of seconds
public Klarna_Checkout_HTTP_Response
# send( Klarna_Checkout_HTTP_Request $request )

Performs a HTTP request.

Performs a HTTP request.

Parameters

$request
the HTTP request to send.

Returns

Klarna_Checkout_HTTP_Response

Throws

Klarna_Checkout_ConnectionErrorException

Thrown for unspecified network or hardware issues.

public Klarna_Checkout_HTTP_Request
# createRequest( string $url )

Creates a HTTP request object.

Creates a HTTP request object.

Parameters

$url
the request URL.

Returns

Klarna_Checkout_HTTP_Request

Throws

InvalidArgumentException

If the specified argument is not of type string.

Magic methods summary

API documentation generated by ApiGen