Skip to content

Commit c8c8972

Browse files
committed
Check the configuration link removed from actual page
1 parent 3ec17a4 commit c8c8972

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/admin/class-wc-amazon-payments-advanced-admin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,13 @@ protected function get_admin_notices() {
180180
);
181181
}
182182

183-
if ( ! WC_Amazon_Payments_Advanced_API::get_amazon_keys_set() && 'yes' === $this->settings['enabled'] ) {
183+
if ( ! WC_Amazon_Payments_Advanced_API::get_amazon_keys_set() && 'yes' === $this->settings['enabled'] && $current_section !== 'amazon_payments_advanced' ) {
184184
$notices[] = array(
185185
'dismiss_action' => 'amazon_pay_dismiss_enable_notice',
186186
'class' => 'amazon-pay-enable-notice',
187187
'text' => sprintf(
188188
// translators: 1) The URL to the Amazon Pay settings screen.
189-
__( 'Amazon Pay is now enabled for WooCommerce and ready to accept live payments. Please check the <a href="%1$s">configuration</a>. to make sure everything is set correctly.', 'woocommerce-gateway-amazon-payments-advanced' ),
189+
__( 'Amazon Pay is now enabled for WooCommerce. Please check the <a href="%1$s">configuration</a>. to make sure everything is set correctly to accept live payments.', 'woocommerce-gateway-amazon-payments-advanced' ),
190190
esc_url( $this->get_settings_url() )
191191
),
192192
'is_dismissable' => true,

0 commit comments

Comments
 (0)