Skip to content

Commit

Permalink
Disputes: Update a more clear order note for dispute fund withdrawn e…
Browse files Browse the repository at this point in the history
…vent (#8371)

Co-authored-by: Nagesh Pai <nagesh.pai@automattic.com>
  • Loading branch information
2 people authored and Jinksi committed Mar 28, 2024
1 parent f583a51 commit cad8b22
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions changelog/fix-6380-edit-dispute-order-note
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: update

Make the order note for `dispute funds withdrawn` event clearly mention that the dispute amount and fee would be deducted from the next deposit.
2 changes: 1 addition & 1 deletion includes/class-wc-payments-webhook-processing-service.php
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ private function process_webhook_dispute_updated( $event_body ) {

switch ( $event_type ) {
case 'charge.dispute.funds_withdrawn':
$message = __( 'Payment dispute funds have been withdrawn', 'woocommerce-payments' );
$message = __( 'Payment dispute and fees have been deducted from your next deposit', 'woocommerce-payments' );
break;
case 'charge.dispute.funds_reinstated':
$message = __( 'Payment dispute funds have been reinstated', 'woocommerce-payments' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,7 @@ public function test_dispute_funds_withdrawn_order_note() {
->method( 'add_order_note' )
->with(
$this->matchesRegularExpression(
'/Payment dispute funds have been withdrawn/'
'/Payment dispute and fees have been deducted from your next deposit/'
)
);

Expand Down

0 comments on commit cad8b22

Please sign in to comment.