Skip to content

Commit

Permalink
Fix manual capture status source (#9708)
Browse files Browse the repository at this point in the history
Co-authored-by: Timur Karimov <[email protected]>
  • Loading branch information
timur27 and Timur Karimov authored Nov 14, 2024
1 parent dc35740 commit faf5ef7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog/fix-manual-capture-status
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Make sure the status of manual capture enablement is fetched from the right place.
7 changes: 6 additions & 1 deletion includes/class-wc-payments-status.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,12 @@ function ( $rule ) {
<tr>
<td data-export-label="Auth and Capture"><?php esc_html_e( 'Auth and Capture', 'woocommerce-payments' ); ?>:</td>
<td class="help"><?php echo wc_help_tip( esc_html__( 'Whether the store has the Auth & Capture feature enabled or not.', 'woocommerce-payments' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped, WordPress.Security.EscapeOutput.OutputNotEscaped */ ?></td>
<td><?php WC_Payments_Features::is_auth_and_capture_enabled() ? esc_html_e( 'Enabled', 'woocommerce-payments' ) : esc_html_e( 'Disabled', 'woocommerce-payments' ); ?></td>
<td>
<?php
$manual_capture_enabled = 'yes' === $this->gateway->get_option( 'manual_capture' );
echo $manual_capture_enabled ? esc_html_e( 'Enabled', 'woocommerce-payments' ) : esc_html_e( 'Disabled', 'woocommerce-payments' );
?>
</td>
</tr>
<tr>
<td data-export-label="Documents"><?php esc_html_e( 'Documents', 'woocommerce-payments' ); ?>:</td>
Expand Down

0 comments on commit faf5ef7

Please sign in to comment.