Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Releases: klarna/kco_rest_php

[4.2.3] - 2020-2-14

14 Feb 09:38
6c092bd
Compare
Choose a tag to compare

Added

  • HTTP Transport: Oceania Base URLs (playground and production)

## [4.2.2] - 2019-11-05

05 Nov 10:56
Compare
Choose a tag to compare

Changed

  • Remove "src" folder from a PSR4 autoload definition as fallback directory.

[4.2.1] - 2019-10-15

15 Oct 13:08
Compare
Choose a tag to compare

Added

  • Test against php 7.3

Fixed

[4.2.0] - 2019-06-12 (Enhancements Release)

12 Jun 11:17
bbf5ec1
Compare
Choose a tag to compare

This release has a number of [no-backward-compatibility] flags. But these incompatible changes related
only to the "under the hood" files. It means, if you operate only with high-level instances, like
Connector and Rest\/Checkout/Payments/OrderManagement/etc resources (you have the code,
like in the example files) - you are safe for upgrade.

If you have your own implementation of REST API Services, HTTP Transport or Base Resource instance,
you need to check the code before go live.

Changed

  • Decouple the HTTP Transport Connector interface. Remove Guzzle hardcoded dependency [no-backward-compatibility]
  • Decouple ConnectorException. Remove Guzzle hardcoded dependency [partial-backward-compatibility]
    • Change the constructor signature. Replace RequestException exception with int $code
    • getResponse method is not longer return Guzzle ResponseInterface.
      This method marked as deprecated and return null
  • Rename Klarna/Rest/Transport/Connector.php to Klarna/Rest/Transport/GuzzleConnector.php to
    make the name explicit. [backward-compatible]
    The Klarna/Rest/Transport/Connector.php still exists, but marked as deprecated
  • Change the structure and return values for all the methods in GuzzleConnector (ex Connector)
    to follow the new Connector interface. [no-backward-compatibility]
  • The exception throwing behavior: [partial-backward-compatibility]
    • GuzzleConnector (ex Connector) not longer throws Guzzle related RuntimeException exceptions.
      The Connector throws only RuntimeException
    • The only two types of exceptions can be thrown by SDK now:
      • RuntimeException
      • ConnectorException

Added

  • Add new HTTP Transport CURLTransport. This transport does not require any package dependencies
  • Add PHP SDK SPL Autoloader
  • Add ApiResponse class to unify an HTTP Transport reponse
  • Extend ResponseValidator with expectSuccessfull and isSuccessfull methods. The methods allows
    to validate the reponse code and parse the Klarna Error Message if possible

[4.1.5] - 2019-05-21 (Enhancements / BugFix Release)

21 May 12:42
f9141df
Compare
Choose a tag to compare
  • Debug mode: Request body and headers were not displayed when getting 400 HTTP response code. Fixed;
  • Remove unused phpunit/phpcov package;
  • Add .gitattributes file to remove needless load from composer imports;
  • Examples: Checkout API: Fix typo in the attachments file;
  • Examples: Checkout API: Add more callback URLs;
  • Examples: Add "How to set a discount" example.

v4.1.4 - 2019-03-15

15 Mar 14:41
0895bcc
Compare
Choose a tag to compare
  • Add full support of Instant Shopping API;
  • Repo now has an Apache 2.0 LICENSE file on its root;
  • HTTP Transport: Add support of PUT method;
  • HTTP Transport: Stop throwing an exception when an API service return a bad structured Error;
  • Examples: Add Instant Shopping examples.

HPP and Customer Token API updates

23 Jan 14:23
Compare
Choose a tag to compare
  • HPP API: Add support for disabling an HPP session;
  • Customer Token API: Add ability to use Klarna-Idempotency-Key when creating order;
  • Customer Token API: Add new feature: Update token status;
  • Examples: Update all example files. Add more information about getting credentials;
  • Examples: Add example of changing the User-Agent.

Order Management API: Refund ID fix

22 Nov 09:51
Compare
Choose a tag to compare
  • Fix: Order management API threw Error Notice when fetching an order with refunds.

HPP fixes; Merchant Card Service support

31 Oct 10:57
Compare
Choose a tag to compare

v4.1.1 - 2018-10-31

  • HPP: HPP service changed API completely without backward compatibility. Adopt SDK to the new changes.
    Mark getSessionStatus as @deprecated. Replaced by fetch function.
    Return data was changed by HPP API service.
    [partial-backward-compatibility]
  • Add support of Merchant Card Service API

Major v4.0.0 version

27 Aug 13:56
510ffc7
Compare
Choose a tag to compare
Merge pull request #17 from alexions/v4.0.0

v4.0.0 Released.