diff --git a/client/payment-details/dispute-details/dispute-notice.tsx b/client/payment-details/dispute-details/dispute-notice.tsx index 2246903de14..8263119b4f5 100644 --- a/client/payment-details/dispute-details/dispute-notice.tsx +++ b/client/payment-details/dispute-details/dispute-notice.tsx @@ -25,26 +25,30 @@ const DisputeNotice: React.FC< DisputeNoticeProps > = ( { dispute, isUrgent, } ) => { - const clientClaim = + const shopperDisputeReason = reasons[ dispute.reason ]?.claim ?? __( 'The cardholder claims this is an unrecognized charge.', 'woocommerce-payments' ); - const noticeText = isInquiry( dispute ) - ? /* translators: link to dispute inquiry documentation. %s is the clients claim for the dispute, eg "The cardholder claims this is an unrecognized charge." */ - __( - // eslint-disable-next-line max-len - '%s You can challenge their claim if you believe it’s invalid. Not responding will result in an automatic loss. Learn more', - 'woocommerce-payments' - ) - : /* translators: link to dispute documentation. %s is the clients claim for the dispute, eg "The cardholder claims this is an unrecognized charge." */ - __( - // eslint-disable-next-line max-len - '%s Challenge the dispute if you believe the claim is invalid, or accept to forfeit the funds and pay the dispute fee. Non-response will result in an automatic loss. Learn more about responding to disputes', - 'woocommerce-payments' - ); + /* translators: link to dispute documentation. %s is the clients claim for the dispute, eg "The cardholder claims this is an unrecognized charge." */ + let noticeText = __( + '%s Challenge the dispute if you believe the claim is invalid, ' + + 'or accept to forfeit the funds and pay the dispute fee. ' + + 'Non-response will result in an automatic loss. Learn more about responding to disputes', + 'woocommerce-payments' + ); + let learnMoreDocsUrl = 'https://woocommerce.com/document/woopayments/fraud-and-disputes/managing-disputes/#section-3'; + + if ( isInquiry( dispute ) ) { + /* translators: link to dispute inquiry documentation. %s is the clients claim for the dispute, eg "The cardholder claims this is an unrecognized charge." */ + noticeText = __( + '%s You can challenge their claim if you believe it’s invalid. ' + + 'Not responding will result in an automatic loss. Learn more', + 'woocommerce-payments' + ) + } return ( = ( { className="dispute-notice" isDismissible={ false } > - { createInterpolateElement( sprintf( noticeText, clientClaim ), { + { createInterpolateElement( sprintf( noticeText, shopperDisputeReason ), { a: ( // eslint-disable-next-line jsx-a11y/anchor-has-content ), strong: ,