Skip to content

Commit 5064222

Browse files
authored
Adding OC information to the system status report (#4551)
* Adding OC information to the system status report * Readme and changelog entries
1 parent 2786425 commit 5064222

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*** Changelog ***
22

33
= 9.8.0 - xxxx-xx-xx =
4+
* Add - Adds the current setting value for the Optimized Checkout to the Stripe System Status Report data
45
* Add - A new pill to the payment methods page to indicate the credit card requirement when the Optimized Checkout feature is enabled
56
* Add - Tracks the toggle of the Optimized Checkout feature in the promotional banner
67
* Fix - Force the card payment method to be enabled when the Optimized Checkout is enabled in the merchant's Payment Method Configuration

includes/class-wc-stripe-status.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,20 @@ public function render_status_report_section() {
150150
</mark>
151151
</td>
152152
</tr>
153+
<tr>
154+
<td data-export-label="Optimized Checkout Enabled"><?php esc_html_e( 'Optimized Checkout Enabled', 'woocommerce-gateway-stripe' ); ?>:</td>
155+
<td class="help"><?php echo wc_help_tip( esc_html__( 'Whether the Optimized Checkout Suite is enabled.', 'woocommerce-gateway-stripe' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped, WordPress.Security.EscapeOutput.OutputNotEscaped */ ?></td>
156+
<td>
157+
<?php
158+
$is_oc_enabled = 'yes' === $this->gateway->get_option( 'optimized_checkout_element', 'no' );
159+
$class = $is_oc_enabled ? 'yes' : 'no';
160+
$icon = $is_oc_enabled ? 'yes' : 'no';
161+
?>
162+
<mark class="<?php echo esc_attr( $class ); ?>"><span class="dashicons dashicons-<?php echo esc_attr( $icon ); ?>"></span>
163+
<?php $is_oc_enabled ? esc_html_e( 'Yes', 'woocommerce-gateway-stripe' ) : esc_html_e( 'No', 'woocommerce-gateway-stripe' ); ?>
164+
</mark>
165+
</td>
166+
</tr>
153167
<tr>
154168
<td data-export-label="Enabled Payment Methods"><?php esc_html_e( 'Enabled Payment Methods', 'woocommerce-gateway-stripe' ); ?>:</td>
155169
<td class="help"><?php echo wc_help_tip( esc_html__( 'What payment methods are enabled for the store.', 'woocommerce-gateway-stripe' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped, WordPress.Security.EscapeOutput.OutputNotEscaped */ ?></td>

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
111111
== Changelog ==
112112

113113
= 9.8.0 - xxxx-xx-xx =
114+
* Add - Adds the current setting value for the Optimized Checkout to the Stripe System Status Report data
114115
* Add - A new pill to the payment methods page to indicate the credit card requirement when the Optimized Checkout feature is enabled
115116
* Add - Tracks the toggle of the Optimized Checkout feature in the promotional banner
116117
* Fix - Force the card payment method to be enabled when the Optimized Checkout is enabled in the merchant's Payment Method Configuration

0 commit comments

Comments
 (0)