Render A4A payment notice CTAs#111851
Open
cleacos wants to merge 1 commit into
Open
Conversation
Use backend-provided primary and secondary action labels and URLs in the A4A payment-risk banner while preserving legacy action fields as primary CTA fallbacks. Avoid rendering the update-payment-method fallback for notices where the current user cannot manage the payment method. Validation: focused payment-risk banner Jest test, targeted ESLint, git diff --check, typecheck-client, and Playwright smoke check with mocked referral notice data.
Jetpack Cloud Live (direct link)
Automattic for Agencies Live (direct link)
Dashboard Live (dotcom) (direct link)
|
Contributor
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
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.
Part of A4A-2583
Proposed Changes
This PR updates the A4A payment-risk banner to render CTA labels and URLs from the backend
payment_noticepayload.action_labelandaction_urlas primary CTA fallbacks.Why are these changes being made?
The WPCOM agency endpoint now returns contextual payment-risk notices for agency-owned purchases and referred client purchases. Calypso needs to display the matching CTA copy and destination so agencies know whether to update their own payment method or send instructions to a client.
Testing Instructions
a4a-payment-risk-notice-bannerflag enabled and a payment notice payload.Pre-merge Checklist