Repository navigation
[CC-4344] Deprecate the Sofort payment type - #252
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 23, 2026 09:26
sixer1182
approved these changes
Nov 23, 2026
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a class-level
@deprecateddocblock to\UnzerSDK\Resources\PaymentTypes\Sofort, mirroringGiropayandPIS.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
Sofortwas 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
IdStringsis left untouched (same as the Giropay/PIS precedent).Tests
php -lclean,php-cs-fixer0 findings, unit suiteOK (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