Skip to content

TWO-24856/feat: Brand seams for checkout subtitle and API-key contact#340

Open
dgjlindsay wants to merge 2 commits into
stagingfrom
doug/TWO-24856-brand-config-seams
Open

TWO-24856/feat: Brand seams for checkout subtitle and API-key contact#340
dgjlindsay wants to merge 2 commits into
stagingfrom
doug/TWO-24856-brand-config-seams

Conversation

@dgjlindsay

Copy link
Copy Markdown

What

Two brand-overlayable surfaces on the brand-config layer, so a brand edition can match the cross-platform brand presentation without forking:

  • Checkout subtitleget_pay_subtitle() renders an optional checkout_subtitle brand key as a tagline above the about block. Default '' (Two) renders nothing, so existing Two checkout is unchanged.
  • API-key production contact — the admin API-key field help now names a production-key contact, sourced from a new production_key_contact_email brand key (default integration@two.inc). An overlay substitutes its own support address.

Also neutralises a partner-specific example slug in the tests + confirmation-URL docblock (now example-overlay-gateway) so the canonical plugin carries no partner identifiers. Illustrative only.

Why

Closes the brand-seam half of the cross-platform brand parity audit (TWO-24856). The Magento brand layer already exposes equivalents; these were the missing WooCommerce seams.

Test

tests/unit pins the new brand defaults; PHP 7.4 + 8.2 green.

Targets staging.

🤖 Generated with Claude Code

dgjlindsay and others added 2 commits June 25, 2026 14:37
Add two brand-overlayable surfaces so a brand edition can match the
cross-platform brand presentation without forking:

- get_pay_subtitle renders an optional checkout_subtitle brand key as a
  tagline above the about block; '' (the Two default) renders nothing,
  so existing Two checkout is unchanged.
- The admin API-key field help now names a production-key contact from a
  new production_key_contact_email brand key (default integration@two.inc)
  so an overlay can substitute its own support address.

Brand defaults pinned in tests/unit. PHP 7.4 + 8.2 green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The brand-seam tests and the confirmation-URL hook docblock illustrated
the overlay pattern with a partner-specific plugin slug. Swap it for a
neutral 'example-overlay-gateway' so the canonical plugin carries no
partner-brand identifiers. Illustrative only — no behaviour change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions

Copy link
Copy Markdown

🖌 Pre-commit success 🏆

Details
Downloading virtualenv (4.3MiB)
 Downloaded virtualenv
Installed 11 packages in 15ms
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@3.1.0.
[INFO] Initializing environment for https://github.com/two-inc/git-hooks.
[INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
prettier.................................................................Passed

Exit code: 0

Author ✍️@dgjlindsay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant