This repository has been archived by the owner on Jun 2, 2020. It is now read-only.
Releases: klarna/kco_rest_php
Releases · klarna/kco_rest_php
[4.2.3] - 2020-2-14
## [4.2.2] - 2019-11-05
Changed
- Remove "src" folder from a PSR4 autoload definition as fallback directory.
[4.2.1] - 2019-10-15
Added
- Test against php 7.3
Fixed
- CURL Transport: Add processing of multiple HTTP headers in response.Caught exception: Response is missing a Content-Type header #44;
- Fix exception namespace and PHPDoc
- Stores the KEY ID field in order to restore the ID after fetching data without the KEY field. Payments Session ID is reset after fetch() #37
[4.2.0] - 2019-06-12 (Enhancements Release)
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 withint $code
getResponse
method is not longer return GuzzleResponseInterface
.
This method marked as deprecated and returnnull
- Change the constructor signature. Replace
- Rename
Klarna/Rest/Transport/Connector.php
toKlarna/Rest/Transport/GuzzleConnector.php
to
make the name explicit. [backward-compatible]
TheKlarna/Rest/Transport/Connector.php
still exists, but marked as deprecated - Change the structure and return values for all the methods in
GuzzleConnector
(exConnector
)
to follow the new Connector interface. [no-backward-compatibility] - The exception throwing behavior: [partial-backward-compatibility]
GuzzleConnector
(exConnector
) not longer throws Guzzle relatedRuntimeException
exceptions.
The Connector throws onlyRuntimeException
- 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
withexpectSuccessfull
andisSuccessfull
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)
- 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
- 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
- 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
- Fix: Order management API threw Error Notice when fetching an order with refunds.
HPP fixes; Merchant Card Service support
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
Merge pull request #17 from alexions/v4.0.0 v4.0.0 Released.