Skip to content

[CC-4346] Document fetchPaylaterPlans() SECCI plans API via example (UDOCS-1670) - #257

Closed
Ryouzanpaku wants to merge 2 commits into
mainfrom
CC-4346/document-paylater-plans-example
Closed

Ryouzanpaku wants to merge 2 commits into
mainfrom
CC-4346/document-paylater-plans-example

Conversation

@Ryouzanpaku

@Ryouzanpaku Ryouzanpaku commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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 adds examples/PaylaterPlans/FetchPlans.php covering the acceptance criteria:

  • fetchPaylaterPlans(BasePaymentType, PaylaterPlansQuery) usage for Paylater Invoice, Direct Debit and Installment.
  • Reading secciUrl (the CCD2 SECCI PDF link) from each returned plan.
  • Locale behaviour — the SECCI PDF language follows Unzer::setLocale() (sent as Accept-Language).
  • Migration note from the deprecated fetchPaylaterInstallmentPlans() / PaylaterInstallmentPlans / InstallmentPlansQuery to the generalized fetchPaylaterPlans() / PaylaterPlans / PaylaterPlansQuery (legacy classes keep working).

Verified: php -l clean; every class/method the example references exists on main (fetchPaylaterPlans, PaylaterPlansQuery, getPlans(), and getSecciUrl()/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

Ryouzanpaku and others added 2 commits November 26, 2026 12:37
…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>
@Ryouzanpaku

Copy link
Copy Markdown
Contributor Author

Superseded by unzercorp/connectivity-docs#782, which documents fetchPaylaterPlans() (SECCI plan retrieval) directly in the Invoice and Direct Debit server-side-only integration guides — the correct home for it, per the UDOCS-1670 reviewer. This repo-example approach is not the right surface, so leaving #257 closed.

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.

1 participant