Mark up a payment result status
Create a semantic payment-result region whose success or failure state is announced once and whose transaction facts remain readable without color.Description
Requirements
Expose exactly one main landmark containing the complete result.
Name the challenge-item section with its visible Payment result heading.
Use one status or alert region containing explicit success or failure text.
Represent reference, amount, and date as paired terms and values in one description list.
Provide a receipt link for success or a native challenge-control retry button for failure.
Communicate the result with visible text rather than color, icon, or ARIA label alone.
Success
A completed payment has reference P-42
Success text, transaction facts, and a receipt link are available
Expose exactly one main landmark containing the complete result.
Failure
The payment is declined
An alert explains failure and a Retry payment button is operable
Name the challenge-item section with its visible Payment result heading.
Constraints
Use native semantic HTML before adding ARIAKeep every required label and state available as visible textDo not use scripts, images of text, or layout tables
Hints
Hint 1
Start with the single-main-landmark behavior and make its observable result deterministic.
Hint 2
Model labelled-result-section independently before combining it with the remaining states.
Hint 3
Verify the boundary described by textual-state without changing caller-owned input.