Add evidence matrix for fraudulent × physical product disputes#11351
Open
Add evidence matrix for fraudulent × physical product disputes#11351
Conversation
… been issued) Implements Scenario A for credit_not_processed + booking_reservation disputes. When "Refund has been issued" is selected, shows 3 fields: Refund receipt, Cancellation logs, and Other documents — matching the Figma specs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ot-processed-purchase-info-page
…ot-processed-purchase-info-page
Adds the physical_product product type to the fraudulent dispute reason matrix, enabling tailored document fields (receipt, prior undisputed transaction history, customer signature, refund policy) when merchants challenge fraudulent disputes on physical products. Previously this combination fell back to legacy fields which omitted the most relevant "Prior undisputed transaction history" field. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Contributor
|
Size Change: +32 B (0%) Total Size: 956 kB
ℹ️ View Unchanged
|
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an evidence-matrix entry for the fraudulent × physical_product dispute combination so the “new evidence” flow shows tailored document fields (not the legacy fallback), including Prior undisputed transaction history (access_activity_log) under the feature flag isDisputeAdditionalEvidenceTypesEnabled.
Changes:
- Added
fraudulent.physical_productevidence-matrix fields (receipt, prior history, signature, refund policy, other docs; plus auto-merged customer communication). - Updated recommended-document-fields tests to expect matrix output for this combination when the feature flag is enabled.
- Extended spec-validation and cover-letter generator tests to include/validate this new combination and attachment ordering.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| client/disputes/new-evidence/evidence-matrix.ts | Adds the fraudulent × physical_product matrix entry with explicit ordered fields. |
| client/disputes/new-evidence/tests/recommended-document-fields.test.ts | Updates expectations so flagged fraudulent × physical_product uses matrix + merged base field (6 fields). |
| client/disputes/new-evidence/tests/evidence-matrix-spec-validation.test.ts | Adds a spec entry for the new implemented combination and removes it from “not implemented”. |
| client/disputes/new-evidence/tests/cover-letter-generator.test.ts | Adds an attachment ordering test covering the new combination with full evidence (including shipping). |
| changelog/woopmnt-5399-physical-product-fraudulent-purchase-info-page-update-copy | Changelog entry for the new evidence-matrix combination. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
client/disputes/new-evidence/__tests__/evidence-matrix-spec-validation.test.ts
Show resolved
Hide resolved
Base automatically changed from
woopmnt-5433-booking-reservation-credit-not-processed-purchase-info-page
to
develop
February 18, 2026 11:12
…purchase-info-page-update-copy
…_product Address Copilot review feedback: the header comment now lists fraudulent × physical_product as implemented and changes "All" to "Remaining" for the physical_product backlog entry. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
6 tasks
…purchase-info-page-update-copy
…purchase-info-page-update-copy
…purchase-info-page-update-copy
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.
Fixes WOOPMNT-5399
Changes proposed in this Pull Request
physical_productentry togetFraudulentMatrix()in the evidence matrix with 5 explicit fields (receipt, prior undisputed transaction history, customer signature, refund policy, other documents) + the auto-merged base field (customer communication) for a total of 6 UI fieldsTesting instructions
Setup:
wp option update _wcpay_feature_dispute_additional_evidence_types 1fraudulent(WP Admin → WCPay Dev → Check "Enable dispute reason override" → Selectfraudulent→ Save)Verify:
npm run changelogto add a changelog file, choosepatchto leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge
🤖 Generated with Claude Code