Skip to content

[CC-4344] Deprecate the Sofort payment type - #252

Merged
Ryouzanpaku merged 1 commit into
mainfrom
CC-4344/deprecate-sofort
Nov 23, 2026
Merged

Ryouzanpaku merged 1 commit into
mainfrom
CC-4344/deprecate-sofort

Conversation

@Ryouzanpaku

Copy link
Copy Markdown
Contributor

What

Adds a class-level @deprecated docblock to \UnzerSDK\Resources\PaymentTypes\Sofort, mirroring Giropay and PIS.

Why

Sofort is no longer supported by docs.unzer.com / the PAPI reference. This completes PHP parity with the Java deprecation audit in CC-4253 — an audit of the PHP SDK found Sofort was the only class on that list still missing the annotation (Giropay, Invoice, InvoiceSecured, InstallmentSecured, SepaDirectDebitSecured, PIS are already deprecated; InvoiceGuaranteed/Factoring, SepaDirectDebitGuaranteed and HirePurchaseDirectDebit have no PHP class).

Deprecation only — nothing is removed, and IdStrings is left untouched (same as the Giropay/PIS precedent).

Tests

php -l clean, php-cs-fixer 0 findings, unit suite OK (765 tests, 2656 assertions).

CHANGELOG

Scoped to the release ticket CC-4078 (PR #248), consistent with the other 4.1.0 changes.

🤖 Generated with Claude Code

Sofort is no longer supported by docs.unzer.com / the PAPI reference. Add a
class-level @deprecated docblock, mirroring Giropay and PIS. Deprecation only —
nothing is removed and IdStrings is left untouched (Giropay/PIS precedent).
Completes PHP parity with the CC-4253 deprecated-types list.
@Ryouzanpaku
Ryouzanpaku marked this pull request as ready for review November 23, 2026 09:26
@Ryouzanpaku
Ryouzanpaku requested a review from a team as a code owner November 23, 2026 09:26
Ryouzanpaku added a commit that referenced this pull request Nov 23, 2026
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.
@Ryouzanpaku
Ryouzanpaku merged commit a4d43c0 into main Nov 23, 2026
7 checks passed
@Ryouzanpaku
Ryouzanpaku deleted the CC-4344/deprecate-sofort branch November 23, 2026 15:38
Ryouzanpaku added a commit that referenced this pull request Nov 23, 2026
…G) (#248)

* [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) <noreply@anthropic.com>

* [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.

* [CC-4078] Complete the 4.1.0 changelog with all released changes

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.

* [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.

* [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.

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants