From 0200e7db1e90cba4320923c932d25666f5d2836c Mon Sep 17 00:00:00 2001 From: "david.owusu" Date: Mon, 17 Aug 2026 10:51:51 +0200 Subject: [PATCH] [CC-3789] Release 4.0.2 Co-Authored-By: Claude Sonnet 5 --- CHANGELOG.md | 7 +++++++ src/Unzer.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e63b313..31118328 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [4.0.2](https://github.com/unzerdev/php-sdk/compare/4.0.1..4.0.2) + +### Changed + +* Change `\UnzerSDK\Resources\Keypair` properties from `private` to `protected`, fixing them being silently omitted when the resource is serialized into a request payload. +* Add a null check for the payment type in `performCharge()` and `performSca()` in `\UnzerSDK\Unzer` to avoid a null pointer error. + ## [4.0.1](https://github.com/unzerdev/php-sdk/compare/4.0.0..4.0.1) ### Changed diff --git a/src/Unzer.php b/src/Unzer.php index b34caf17..d13259b5 100644 --- a/src/Unzer.php +++ b/src/Unzer.php @@ -60,7 +60,7 @@ class Unzer implements public const BASE_URL = 'api.unzer.com'; public const API_VERSION = ApiVersions::V1; public const SDK_TYPE = 'UnzerPHP'; - public const SDK_VERSION = '4.0.1'; + public const SDK_VERSION = '4.0.2'; /** @var string $key */ private $key;