woocommerce-square
/
includes
/
Framework
/
PaymentGateway
/
Admin
/
views
/
html-admin-gateway-status.php
html-admin-gateway-status.php
1 month ago
html-order-partial-capture.php
1 month ago
html-user-payment-token-editor-token.php
1 month ago
html-user-payment-token-editor.php
1 month ago
html-user-profile-field-customer-id.php
1 month ago
html-user-profile-section.php
1 month ago
html-admin-gateway-status.php
103 lines
| 1 | <?php |
| 2 | /** |
| 3 | * WooCommerce Plugin Framework |
| 4 | * |
| 5 | * This source file is subject to the GNU General Public License v3.0 |
| 6 | * that is bundled with this package in the file license.txt. |
| 7 | * It is also available through the world-wide-web at this URL: |
| 8 | * http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0 or later |
| 9 | * If you did not receive a copy of the license and are unable to |
| 10 | * obtain it through the world-wide-web, please send an email |
| 11 | * to license@skyverge.com so we can send you a copy immediately. |
| 12 | * |
| 13 | * @since 3.0.0 |
| 14 | * @author WooCommerce / SkyVerge |
| 15 | * @copyright Copyright (c) 2013-2019, SkyVerge, Inc. |
| 16 | * @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0 or later |
| 17 | * |
| 18 | * Modified by WooCommerce on 03 January 2022. |
| 19 | */ |
| 20 | |
| 21 | defined( 'ABSPATH' ) || exit; |
| 22 | ?> |
| 23 | |
| 24 | <table class="wc_status_table widefat" cellspacing="0"> |
| 25 | |
| 26 | <thead> |
| 27 | <tr> |
| 28 | <th colspan="3" data-export-label=""> |
| 29 | <?php echo esc_html( $gateway->get_method_title() ); ?> |
| 30 | <?php echo wc_help_tip( esc_html__( 'This section contains configuration settings for this gateway.', 'woocommerce-square' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 31 | </th> |
| 32 | </tr> |
| 33 | </thead> |
| 34 | |
| 35 | <tbody> |
| 36 | |
| 37 | <?php |
| 38 | /** |
| 39 | * Payment Gateway System Status Start Action. |
| 40 | * |
| 41 | * Allow actors to add info the start of the gateway system status section. |
| 42 | * |
| 43 | * @since 3.0.0 |
| 44 | * |
| 45 | * @param Payment_Gateway $gateway |
| 46 | */ |
| 47 | do_action( 'wc_payment_gateway_' . $gateway->get_id() . '_system_status_start', $gateway ); |
| 48 | ?> |
| 49 | |
| 50 | <tr> |
| 51 | <td data-export-label="Environment"><?php esc_html_e( 'Environment', 'woocommerce-square' ); ?>:</td> |
| 52 | <td class="help"><?php echo wc_help_tip( esc_html__( 'The transaction environment for this gateway.', 'woocommerce-square' ) ); /* phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped */ ?></td> |
| 53 | <td><?php echo esc_html( $environment ); ?></td> |
| 54 | </tr> |
| 55 | |
| 56 | <?php if ( $gateway->supports_tokenization() ) : ?> |
| 57 | |
| 58 | <tr> |
| 59 | <td data-export-label="Tokenization Enabled"><?php esc_html_e( 'Tokenization Enabled', 'woocommerce-square' ); ?>:</td> |
| 60 | <td class="help"><?php echo wc_help_tip( esc_html__( 'Displays whether or not tokenization is enabled for this gateway.', 'woocommerce-square' ) ); /* phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped */ ?></td> |
| 61 | <td> |
| 62 | <?php if ( $gateway->tokenization_enabled() ) : ?> |
| 63 | <mark class="yes">✔</mark> |
| 64 | <?php else : ?> |
| 65 | <mark class="no">–</mark> |
| 66 | <?php endif; ?> |
| 67 | </td> |
| 68 | </tr> |
| 69 | |
| 70 | <?php endif; ?> |
| 71 | |
| 72 | <tr> |
| 73 | <td data-export-label="Debug Mode"><?php esc_html_e( 'Debug Mode', 'woocommerce-square' ); ?>:</td> |
| 74 | <td class="help"><?php echo wc_help_tip( esc_html__( 'Displays whether or not debug logging is enabled for this gateway.', 'woocommerce-square' ) ); /* phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped */ ?></td> |
| 75 | <td> |
| 76 | <?php if ( $gateway->debug_log() && $gateway->debug_checkout() ) : ?> |
| 77 | <?php echo esc_html__( 'Display at Checkout & Log', 'woocommerce-square' ); ?> |
| 78 | <?php elseif ( $gateway->debug_checkout() ) : ?> |
| 79 | <?php echo esc_html__( 'Display at Checkout', 'woocommerce-square' ); ?> |
| 80 | <?php elseif ( $gateway->debug_log() ) : ?> |
| 81 | <?php echo esc_html__( 'Save to Log', 'woocommerce-square' ); ?> |
| 82 | <?php else : ?> |
| 83 | <?php echo esc_html__( 'Off', 'woocommerce-square' ); ?> |
| 84 | <?php endif; ?> |
| 85 | </td> |
| 86 | </tr> |
| 87 | |
| 88 | <?php |
| 89 | /** |
| 90 | * Payment Gateway System Status End Action. |
| 91 | * |
| 92 | * Allow actors to add info the end of the gateway system status section. |
| 93 | * |
| 94 | * @since 3.0.0 |
| 95 | * @param \Payment_Gateway $gateway |
| 96 | */ |
| 97 | do_action( 'wc_payment_gateway_' . $gateway->get_id() . '_system_status_end', $gateway ); |
| 98 | ?> |
| 99 | |
| 100 | </tbody> |
| 101 | |
| 102 | </table> |
| 103 |