docs(payments): document connector object in payment-method responses (#156527)#128
Conversation
Documents the additive `connector: {identifier, processor}` object added to
every payment-method entry in core PR #218 (ticket #156527).
- payment-methods.md: new "Connector" concept section explaining
identifier vs processor, with the KNET/KPay and CyberSource/CSUC
shared-processor examples and a "match on connector, not code" tip.
- wallet/index.mdx: connector added to the hand-written payment_methods
example, plus a cross-link to the concept.
- checkout-sdk/index.md: cross-reference for custom selection UIs.
- Ottu_API.yaml: add the Connector schema component and reference it from
PGPaymentMethods and PaymentMethodsForRedirect (bridge until #156526
lands and the spec is re-fetched); regenerated the affected API
reference pages via gen-api (connector-only diff).
The four platform SDK guides are intentionally unchanged: they document the
payment-result callback and pass setupPreload opaquely, so they carry no
hand-written payment-method object. SDK consumers see connector through the
Checkout response schema in the regenerated reference.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SJjww6AtJZPYDm6xvym3oU
|
@claude review |
|
Claude finished @jab3z's task in 3m 52s —— View job Review complete ✅
Solid, well-scoped PR. The core mechanics all check out: Verified correct:
Two things worth a look, neither blocking:
Bridge-to-core-PR approach (hand-adding |
What
Documents the additive
connector: { identifier, processor }object added to every payment-method entry in core PR #218 — Redmine #156527 (child of #156526).{ "code": "kpay-prod", "connector": { "identifier": "kpay", "processor": "knet" } }Changes
docs/developers/payments/payment-methods.mdidentifiervsprocessor, the KNET/KPay & CyberSource/CSUC shared-processor examples, and a "match onconnector, notcode" tip.docs/developers/payments/wallet/index.mdxconnectoradded to thepayment_methodsexample + cross-link to the concept.docs/developers/payments/checkout-sdk/index.mdstatic/Ottu_API.yamlConnectorschema component referenced fromPGPaymentMethodsandPaymentMethodsForRedirect.docs/developers/apis/*(16 files)npm run gen-api— connector-only diff (get-payment-methods + the 4 checkout-transaction endpoints + StatusCodes;create-invoicealso embedspayment_methods).Notes / decisions
connectorhad to go into the rawOttu_API.yaml. A baselinegen-apion the unmodified spec produced a zero-line diff, so the regenerated output is a clean, minimal, connector-only diff.Ottu_API.yamlwill be overwritten cleanly on the nextnpm run fetch-apionce the backend export includesconnector.setupPreloadopaquely, so they contain no hand-written payment-method object. SDK consumers seeconnectorvia the Checkout response schema in the regenerated reference. (Corrects an over-specification in the ticket.)pgfield not introduced — it isn't part of these response schemas, so documenting it here would invent a field readers can't find.Verification
npm run typecheck✅npm run build✅ — no new broken links/anchors (the#connectoranchor and all new cross-links resolve).🤖 Generated with Claude Code
https://claude.ai/code/session_01SJjww6AtJZPYDm6xvym3oU