From b83052f7b51a6fc5193388c15a15c65703a53f21 Mon Sep 17 00:00:00 2001 From: David Owusu Date: Thu, 5 Nov 2026 15:03:10 +0100 Subject: [PATCH 1/5] [CC-4078] Rename unreleased changelog section to planned 4.1.0 The PHP SDK release is planned as 4.1.0, not 5.0.0. Rename the top unreleased CHANGELOG section header (and its compare URL) accordingly. Co-Authored-By: Claude Opus 4.8 (1M context) --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e8b23eb..8fccc466 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ 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). -## [5.0.0](https://github.com/unzerdev/php-sdk/compare/4.0.2..5.0.0) +## [4.1.0](https://github.com/unzerdev/php-sdk/compare/4.0.2..4.1.0) ### Removed From 7f8c0f14cad23bd3ceef676ad40d4c70204494ae Mon Sep 17 00:00:00 2001 From: David Owusu Date: Thu, 5 Nov 2026 15:49:55 +0100 Subject: [PATCH 2/5] [CC-4078] Add recurring entry to 4.1.0 changelog Scope the SepaDirectDebit recurring changelog entry under the release ticket (CC-4078) alongside the version rename, so the feature PR #247 (CC-4239) stays code-only and the two don't conflict. --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fccc466..faea1833 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [4.1.0](https://github.com/unzerdev/php-sdk/compare/4.0.2..4.1.0) +### Added + +* `recurring` flag on `\UnzerSDK\Resources\PaymentTypes\SepaDirectDebit` for registering a payment type for recurring (mandate-based) collection. + ### Removed * Support for PHP 8.1. The minimum supported PHP version is now 8.2 (`composer.json` requires `~8.2.0|~8.3.0|~8.4.0|~8.5.0`). PHP 8.1 is end of life and has no official fix for the PHP2Shell vulnerabilities (CVE-2026-109618, CVE-2026-109619). From 58edb9933339e6a778ab751b205870543a68f952 Mon Sep 17 00:00:00 2001 From: David Owusu Date: Wed, 18 Nov 2026 16:33:49 +0100 Subject: [PATCH 3/5] [CC-4078] Complete the 4.1.0 changelog with all released changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add the Keypair getRawResponse() addition (CC-4151) and the PIS payment-type deprecation (CC-4064) to the 4.1.0 section, alongside the recurring flag (CC-4239) and the PHP 8.1 removal (CC-4228) — the full set of merged changes for the release. --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index faea1833..bd0b5dbd 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,11 @@ to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ### Added * `recurring` flag on `\UnzerSDK\Resources\PaymentTypes\SepaDirectDebit` for registering a payment type for recurring (mandate-based) collection. +* `getRawResponse()` on `\UnzerSDK\Resources\Keypair`, exposing the exact raw API response string from a Keypair fetch. + +### Deprecated + +* `\UnzerSDK\Resources\PaymentTypes\PIS` (Unzer Bank Transfer / FlexiPay Direct) payment type. It is no longer supported and will be removed in a future major version. ### Removed From 409c45828d2c09cf967a39b87a75eefcaf58dd88 Mon Sep 17 00:00:00 2001 From: David Owusu Date: Mon, 23 Nov 2026 09:58:09 +0100 Subject: [PATCH 4/5] [CC-4078] Add CC-4256 Keypair boolean-parsing fix to 4.1.0 changelog Document the merged fix (#251): Keypair boolean flags sent as strings (validateBasket, cof) were coerced so "false" became true; now parsed correctly. CC-4255 (payment-type duplication, #250) will be added once merged. --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd0b5dbd..735cf3b9 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,10 @@ to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). * Support for PHP 8.1. The minimum supported PHP version is now 8.2 (`composer.json` requires `~8.2.0|~8.3.0|~8.4.0|~8.5.0`). PHP 8.1 is end of life and has no official fix for the PHP2Shell vulnerabilities (CVE-2026-109618, CVE-2026-109619). +### Fixed + +* `\UnzerSDK\Resources\Keypair`: boolean flags (`validateBasket`, `cof`) that the API sends as the strings `"true"`/`"false"` were coerced so `"false"` evaluated to `true`. They are now parsed correctly, so `isValidateBasket()` and `expose()` reflect the real value; a missing field stays `null`. + ## [4.0.2](https://github.com/unzerdev/php-sdk/compare/4.0.1..4.0.2) ### Changed From c5222453ae3fe1dc1c6fffe1133541e535d64667 Mon Sep 17 00:00:00 2001 From: David Owusu Date: Mon, 23 Nov 2026 10:39:29 +0100 Subject: [PATCH 5/5] [CC-4078] Prepare 4.1.0 release: bump SDK version and complete changelog Bump Unzer::SDK_VERSION to 4.1.0 and stage the remaining 4.1.0 changelog entries: deprecate Sofort (CC-4344, #252) and the Keypair plain-fetch payment-type de-duplication fix (CC-4255, #250). Those two feature PRs must merge before this release-preparation PR. --- CHANGELOG.md | 2 ++ src/Unzer.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 735cf3b9..2d38e3b7 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ### Deprecated * `\UnzerSDK\Resources\PaymentTypes\PIS` (Unzer Bank Transfer / FlexiPay Direct) payment type. It is no longer supported and will be removed in a future major version. +* `\UnzerSDK\Resources\PaymentTypes\Sofort` payment type. It is no longer supported and will be removed in a future major version. ### Removed @@ -23,6 +24,7 @@ to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ### Fixed * `\UnzerSDK\Resources\Keypair`: boolean flags (`validateBasket`, `cof`) that the API sends as the strings `"true"`/`"false"` were coerced so `"false"` evaluated to `true`. They are now parsed correctly, so `isValidateBasket()` and `expose()` reflect the real value; a missing field stays `null`. +* `\UnzerSDK\Resources\Keypair`: a plain `fetchKeypair()` listed every payment type twice in `getPaymentTypes()` / `getAvailablePaymentTypes()`; the list is now de-duplicated (detailed keypair unchanged). ## [4.0.2](https://github.com/unzerdev/php-sdk/compare/4.0.1..4.0.2) diff --git a/src/Unzer.php b/src/Unzer.php index d13259b5..f616b68d 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.2'; + public const SDK_VERSION = '4.1.0'; /** @var string $key */ private $key;