Repository navigation
[CC-4346] Document fetchPaylaterPlans() SECCI plans API via example (UDOCS-1670) - #257
Closed
Ryouzanpaku wants to merge 2 commits into
Closed
Ryouzanpaku wants to merge 2 commits into
Ryouzanpaku wants to merge 2 commits into
Conversation
…DOCS-1670) Documents the generalized Paylater plans API (php-sdk 4.1.0) as a runnable example, per UDOCS-1670. examples/PaylaterPlans/FetchPlans.php shows: - fetchPaylaterPlans(BasePaymentType, PaylaterPlansQuery) for Paylater Invoice, Direct Debit and Installment, - reading secciUrl (the CCD2 SECCI PDF link) from each plan, - controlling the SECCI PDF language via Unzer::setLocale() (Accept-Language), - a migration note from the deprecated fetchPaylaterInstallmentPlans(). The repo documents features via examples/ (README links to docs.unzer.com); this follows that convention. All referenced classes/methods verified against main. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Superseded by unzercorp/connectivity-docs#782, which documents |
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.
Implements the docs follow-up UDOCS-1670 (CC-4346 follow-up) — documents the generalized Paylater plans API shipped in php-sdk 4.1.0.
The repo documents features through runnable
examples/(the README links out to docs.unzer.com), so this addsexamples/PaylaterPlans/FetchPlans.phpcovering the acceptance criteria:fetchPaylaterPlans(BasePaymentType, PaylaterPlansQuery)usage for Paylater Invoice, Direct Debit and Installment.secciUrl(the CCD2 SECCI PDF link) from each returned plan.Unzer::setLocale()(sent asAccept-Language).fetchPaylaterInstallmentPlans()/PaylaterInstallmentPlans/InstallmentPlansQueryto the generalizedfetchPaylaterPlans()/PaylaterPlans/PaylaterPlansQuery(legacy classes keep working).Verified:
php -lclean; every class/method the example references exists onmain(fetchPaylaterPlans,PaylaterPlansQuery,getPlans(), andgetSecciUrl()/getNumberOfRates()/getTotalAmount()on the returned plan items).Note: the hosted prose docs on docs.unzer.com (if a separate update is wanted there) are the docs team's surface and out of scope for this repo PR.
🤖 Generated with Claude Code