@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -7,40 +7,40 @@ discard block |
||
| 7 | 7 | 'wc_stripe_bancontact_settings', |
| 8 | 8 | array( |
| 9 | 9 | 'geo_target' => array( |
| 10 | - 'description' => __( 'Relevant Payer Geography: Belgium', 'woocommerce-gateway-stripe' ), |
|
| 10 | + 'description' => __('Relevant Payer Geography: Belgium', 'woocommerce-gateway-stripe'), |
|
| 11 | 11 | 'type' => 'title', |
| 12 | 12 | ), |
| 13 | 13 | 'guide' => array( |
| 14 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#bancontact" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
| 14 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#bancontact" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
| 15 | 15 | 'type' => 'title', |
| 16 | 16 | ), |
| 17 | 17 | 'activation' => array( |
| 18 | - 'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ), |
|
| 18 | + 'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'), |
|
| 19 | 19 | 'type' => 'title', |
| 20 | 20 | ), |
| 21 | 21 | 'enabled' => array( |
| 22 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 23 | - 'label' => __( 'Enable Stripe Bancontact', 'woocommerce-gateway-stripe' ), |
|
| 22 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 23 | + 'label' => __('Enable Stripe Bancontact', 'woocommerce-gateway-stripe'), |
|
| 24 | 24 | 'type' => 'checkbox', |
| 25 | 25 | 'description' => '', |
| 26 | 26 | 'default' => 'no', |
| 27 | 27 | ), |
| 28 | 28 | 'title' => array( |
| 29 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 29 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 30 | 30 | 'type' => 'text', |
| 31 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 32 | - 'default' => __( 'Bancontact', 'woocommerce-gateway-stripe' ), |
|
| 31 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 32 | + 'default' => __('Bancontact', 'woocommerce-gateway-stripe'), |
|
| 33 | 33 | 'desc_tip' => true, |
| 34 | 34 | ), |
| 35 | 35 | 'description' => array( |
| 36 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 36 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 37 | 37 | 'type' => 'text', |
| 38 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 39 | - 'default' => __( 'You will be redirected to Bancontact.', 'woocommerce-gateway-stripe' ), |
|
| 38 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 39 | + 'default' => __('You will be redirected to Bancontact.', 'woocommerce-gateway-stripe'), |
|
| 40 | 40 | 'desc_tip' => true, |
| 41 | 41 | ), |
| 42 | 42 | 'webhook' => array( |
| 43 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
| 43 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
| 44 | 44 | 'type' => 'title', |
| 45 | 45 | /* translators: webhook URL */ |
| 46 | 46 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -7,36 +7,36 @@ discard block |
||
| 7 | 7 | 'wc_stripe_multibanco_settings', |
| 8 | 8 | array( |
| 9 | 9 | 'geo_target' => array( |
| 10 | - 'description' => __( 'Relevant Payer Geography: Portugal', 'woocommerce-gateway-stripe' ), |
|
| 10 | + 'description' => __('Relevant Payer Geography: Portugal', 'woocommerce-gateway-stripe'), |
|
| 11 | 11 | 'type' => 'title', |
| 12 | 12 | ), |
| 13 | 13 | 'activation' => array( |
| 14 | - 'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ), |
|
| 14 | + 'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'), |
|
| 15 | 15 | 'type' => 'title', |
| 16 | 16 | ), |
| 17 | 17 | 'enabled' => array( |
| 18 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 19 | - 'label' => __( 'Enable Stripe Multibanco', 'woocommerce-gateway-stripe' ), |
|
| 18 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 19 | + 'label' => __('Enable Stripe Multibanco', 'woocommerce-gateway-stripe'), |
|
| 20 | 20 | 'type' => 'checkbox', |
| 21 | 21 | 'description' => '', |
| 22 | 22 | 'default' => 'no', |
| 23 | 23 | ), |
| 24 | 24 | 'title' => array( |
| 25 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 25 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 26 | 26 | 'type' => 'text', |
| 27 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 28 | - 'default' => __( 'Multibanco', 'woocommerce-gateway-stripe' ), |
|
| 27 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 28 | + 'default' => __('Multibanco', 'woocommerce-gateway-stripe'), |
|
| 29 | 29 | 'desc_tip' => true, |
| 30 | 30 | ), |
| 31 | 31 | 'description' => array( |
| 32 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 32 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 33 | 33 | 'type' => 'text', |
| 34 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 35 | - 'default' => __( 'You will be redirected to Multibanco.', 'woocommerce-gateway-stripe' ), |
|
| 34 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 35 | + 'default' => __('You will be redirected to Multibanco.', 'woocommerce-gateway-stripe'), |
|
| 36 | 36 | 'desc_tip' => true, |
| 37 | 37 | ), |
| 38 | 38 | 'webhook' => array( |
| 39 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
| 39 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
| 40 | 40 | 'type' => 'title', |
| 41 | 41 | /* translators: webhook URL */ |
| 42 | 42 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -7,40 +7,40 @@ discard block |
||
| 7 | 7 | 'wc_stripe_ideal_settings', |
| 8 | 8 | array( |
| 9 | 9 | 'geo_target' => array( |
| 10 | - 'description' => __( 'Relevant Payer Geography: The Netherlands', 'woocommerce-gateway-stripe' ), |
|
| 10 | + 'description' => __('Relevant Payer Geography: The Netherlands', 'woocommerce-gateway-stripe'), |
|
| 11 | 11 | 'type' => 'title', |
| 12 | 12 | ), |
| 13 | 13 | 'guide' => array( |
| 14 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#ideal" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
| 14 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#ideal" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
| 15 | 15 | 'type' => 'title', |
| 16 | 16 | ), |
| 17 | 17 | 'activation' => array( |
| 18 | - 'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ), |
|
| 18 | + 'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'), |
|
| 19 | 19 | 'type' => 'title', |
| 20 | 20 | ), |
| 21 | 21 | 'enabled' => array( |
| 22 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 23 | - 'label' => __( 'Enable Stripe iDeal', 'woocommerce-gateway-stripe' ), |
|
| 22 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 23 | + 'label' => __('Enable Stripe iDeal', 'woocommerce-gateway-stripe'), |
|
| 24 | 24 | 'type' => 'checkbox', |
| 25 | 25 | 'description' => '', |
| 26 | 26 | 'default' => 'no', |
| 27 | 27 | ), |
| 28 | 28 | 'title' => array( |
| 29 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 29 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 30 | 30 | 'type' => 'text', |
| 31 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 32 | - 'default' => __( 'iDeal', 'woocommerce-gateway-stripe' ), |
|
| 31 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 32 | + 'default' => __('iDeal', 'woocommerce-gateway-stripe'), |
|
| 33 | 33 | 'desc_tip' => true, |
| 34 | 34 | ), |
| 35 | 35 | 'description' => array( |
| 36 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 36 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 37 | 37 | 'type' => 'text', |
| 38 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 39 | - 'default' => __( 'You will be redirected to iDeal.', 'woocommerce-gateway-stripe' ), |
|
| 38 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 39 | + 'default' => __('You will be redirected to iDeal.', 'woocommerce-gateway-stripe'), |
|
| 40 | 40 | 'desc_tip' => true, |
| 41 | 41 | ), |
| 42 | 42 | 'webhook' => array( |
| 43 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
| 43 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
| 44 | 44 | 'type' => 'title', |
| 45 | 45 | /* translators: webhook URL */ |
| 46 | 46 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -7,40 +7,40 @@ discard block |
||
| 7 | 7 | 'wc_stripe_sepa_settings', |
| 8 | 8 | array( |
| 9 | 9 | 'geo_target' => array( |
| 10 | - 'description' => __( 'Relevant Payer Geography: France, Germany, Spain, Belgium, Netherlands, Luxembourg, Italy, Portugal, Austria, Ireland', 'woocommerce-gateway-stripe' ), |
|
| 10 | + 'description' => __('Relevant Payer Geography: France, Germany, Spain, Belgium, Netherlands, Luxembourg, Italy, Portugal, Austria, Ireland', 'woocommerce-gateway-stripe'), |
|
| 11 | 11 | 'type' => 'title', |
| 12 | 12 | ), |
| 13 | 13 | 'guide' => array( |
| 14 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#sepa-direct-debit" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
| 14 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#sepa-direct-debit" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
| 15 | 15 | 'type' => 'title', |
| 16 | 16 | ), |
| 17 | 17 | 'activation' => array( |
| 18 | - 'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ), |
|
| 18 | + 'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'), |
|
| 19 | 19 | 'type' => 'title', |
| 20 | 20 | ), |
| 21 | 21 | 'enabled' => array( |
| 22 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 23 | - 'label' => __( 'Enable Stripe SEPA Direct Debit', 'woocommerce-gateway-stripe' ), |
|
| 22 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 23 | + 'label' => __('Enable Stripe SEPA Direct Debit', 'woocommerce-gateway-stripe'), |
|
| 24 | 24 | 'type' => 'checkbox', |
| 25 | 25 | 'description' => '', |
| 26 | 26 | 'default' => 'no', |
| 27 | 27 | ), |
| 28 | 28 | 'title' => array( |
| 29 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 29 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 30 | 30 | 'type' => 'text', |
| 31 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 32 | - 'default' => __( 'SEPA Direct Debit', 'woocommerce-gateway-stripe' ), |
|
| 31 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 32 | + 'default' => __('SEPA Direct Debit', 'woocommerce-gateway-stripe'), |
|
| 33 | 33 | 'desc_tip' => true, |
| 34 | 34 | ), |
| 35 | 35 | 'description' => array( |
| 36 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 36 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 37 | 37 | 'type' => 'text', |
| 38 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 39 | - 'default' => __( 'Mandate Information.', 'woocommerce-gateway-stripe' ), |
|
| 38 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 39 | + 'default' => __('Mandate Information.', 'woocommerce-gateway-stripe'), |
|
| 40 | 40 | 'desc_tip' => true, |
| 41 | 41 | ), |
| 42 | 42 | 'webhook' => array( |
| 43 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
| 43 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
| 44 | 44 | 'type' => 'title', |
| 45 | 45 | /* translators: webhook URL */ |
| 46 | 46 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -7,40 +7,40 @@ discard block |
||
| 7 | 7 | 'wc_stripe_sofort_settings', |
| 8 | 8 | array( |
| 9 | 9 | 'geo_target' => array( |
| 10 | - 'description' => __( 'Relevant Payer Geography: Germany, Austria', 'woocommerce-gateway-stripe' ), |
|
| 10 | + 'description' => __('Relevant Payer Geography: Germany, Austria', 'woocommerce-gateway-stripe'), |
|
| 11 | 11 | 'type' => 'title', |
| 12 | 12 | ), |
| 13 | 13 | 'guide' => array( |
| 14 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#sofort" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
| 14 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#sofort" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
| 15 | 15 | 'type' => 'title', |
| 16 | 16 | ), |
| 17 | 17 | 'activation' => array( |
| 18 | - 'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ), |
|
| 18 | + 'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'), |
|
| 19 | 19 | 'type' => 'title', |
| 20 | 20 | ), |
| 21 | 21 | 'enabled' => array( |
| 22 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 23 | - 'label' => __( 'Enable Stripe SOFORT', 'woocommerce-gateway-stripe' ), |
|
| 22 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 23 | + 'label' => __('Enable Stripe SOFORT', 'woocommerce-gateway-stripe'), |
|
| 24 | 24 | 'type' => 'checkbox', |
| 25 | 25 | 'description' => '', |
| 26 | 26 | 'default' => 'no', |
| 27 | 27 | ), |
| 28 | 28 | 'title' => array( |
| 29 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 29 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 30 | 30 | 'type' => 'text', |
| 31 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 32 | - 'default' => __( 'SOFORT', 'woocommerce-gateway-stripe' ), |
|
| 31 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 32 | + 'default' => __('SOFORT', 'woocommerce-gateway-stripe'), |
|
| 33 | 33 | 'desc_tip' => true, |
| 34 | 34 | ), |
| 35 | 35 | 'description' => array( |
| 36 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 36 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 37 | 37 | 'type' => 'text', |
| 38 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 39 | - 'default' => __( 'You will be redirected to SOFORT.', 'woocommerce-gateway-stripe' ), |
|
| 38 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 39 | + 'default' => __('You will be redirected to SOFORT.', 'woocommerce-gateway-stripe'), |
|
| 40 | 40 | 'desc_tip' => true, |
| 41 | 41 | ), |
| 42 | 42 | 'webhook' => array( |
| 43 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
| 43 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
| 44 | 44 | 'type' => 'title', |
| 45 | 45 | /* translators: webhook URL */ |
| 46 | 46 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -7,36 +7,36 @@ discard block |
||
| 7 | 7 | 'wc_stripe_p24_settings', |
| 8 | 8 | array( |
| 9 | 9 | 'geo_target' => array( |
| 10 | - 'description' => __( 'Relevant Payer Geography: Poland', 'woocommerce-gateway-stripe' ), |
|
| 10 | + 'description' => __('Relevant Payer Geography: Poland', 'woocommerce-gateway-stripe'), |
|
| 11 | 11 | 'type' => 'title', |
| 12 | 12 | ), |
| 13 | 13 | 'activation' => array( |
| 14 | - 'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ), |
|
| 14 | + 'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'), |
|
| 15 | 15 | 'type' => 'title', |
| 16 | 16 | ), |
| 17 | 17 | 'enabled' => array( |
| 18 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 19 | - 'label' => __( 'Enable Stripe P24', 'woocommerce-gateway-stripe' ), |
|
| 18 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 19 | + 'label' => __('Enable Stripe P24', 'woocommerce-gateway-stripe'), |
|
| 20 | 20 | 'type' => 'checkbox', |
| 21 | 21 | 'description' => '', |
| 22 | 22 | 'default' => 'no', |
| 23 | 23 | ), |
| 24 | 24 | 'title' => array( |
| 25 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 25 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 26 | 26 | 'type' => 'text', |
| 27 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 28 | - 'default' => __( 'Przelewy24 (P24)', 'woocommerce-gateway-stripe' ), |
|
| 27 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 28 | + 'default' => __('Przelewy24 (P24)', 'woocommerce-gateway-stripe'), |
|
| 29 | 29 | 'desc_tip' => true, |
| 30 | 30 | ), |
| 31 | 31 | 'description' => array( |
| 32 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 32 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 33 | 33 | 'type' => 'text', |
| 34 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 35 | - 'default' => __( 'You will be redirected to P24.', 'woocommerce-gateway-stripe' ), |
|
| 34 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 35 | + 'default' => __('You will be redirected to P24.', 'woocommerce-gateway-stripe'), |
|
| 36 | 36 | 'desc_tip' => true, |
| 37 | 37 | ), |
| 38 | 38 | 'webhook' => array( |
| 39 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
| 39 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
| 40 | 40 | 'type' => 'title', |
| 41 | 41 | /* translators: webhook URL */ |
| 42 | 42 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -7,36 +7,36 @@ discard block |
||
| 7 | 7 | 'wc_stripe_eps_settings', |
| 8 | 8 | array( |
| 9 | 9 | 'geo_target' => array( |
| 10 | - 'description' => __( 'Relevant Payer Geography: Austria', 'woocommerce-gateway-stripe' ), |
|
| 10 | + 'description' => __('Relevant Payer Geography: Austria', 'woocommerce-gateway-stripe'), |
|
| 11 | 11 | 'type' => 'title', |
| 12 | 12 | ), |
| 13 | 13 | 'activation' => array( |
| 14 | - 'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ), |
|
| 14 | + 'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'), |
|
| 15 | 15 | 'type' => 'title', |
| 16 | 16 | ), |
| 17 | 17 | 'enabled' => array( |
| 18 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 19 | - 'label' => __( 'Enable Stripe EPS', 'woocommerce-gateway-stripe' ), |
|
| 18 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 19 | + 'label' => __('Enable Stripe EPS', 'woocommerce-gateway-stripe'), |
|
| 20 | 20 | 'type' => 'checkbox', |
| 21 | 21 | 'description' => '', |
| 22 | 22 | 'default' => 'no', |
| 23 | 23 | ), |
| 24 | 24 | 'title' => array( |
| 25 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 25 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 26 | 26 | 'type' => 'text', |
| 27 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 28 | - 'default' => __( 'EPS', 'woocommerce-gateway-stripe' ), |
|
| 27 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 28 | + 'default' => __('EPS', 'woocommerce-gateway-stripe'), |
|
| 29 | 29 | 'desc_tip' => true, |
| 30 | 30 | ), |
| 31 | 31 | 'description' => array( |
| 32 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 32 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 33 | 33 | 'type' => 'text', |
| 34 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 35 | - 'default' => __( 'You will be redirected to EPS.', 'woocommerce-gateway-stripe' ), |
|
| 34 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 35 | + 'default' => __('You will be redirected to EPS.', 'woocommerce-gateway-stripe'), |
|
| 36 | 36 | 'desc_tip' => true, |
| 37 | 37 | ), |
| 38 | 38 | 'webhook' => array( |
| 39 | - 'title' => __( 'Webhook Enpoints', 'woocommerce-gateway-stripe' ), |
|
| 39 | + 'title' => __('Webhook Enpoints', 'woocommerce-gateway-stripe'), |
|
| 40 | 40 | 'type' => 'title', |
| 41 | 41 | /* translators: webhook URL */ |
| 42 | 42 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -7,40 +7,40 @@ discard block |
||
| 7 | 7 | 'wc_stripe_alipay_settings', |
| 8 | 8 | array( |
| 9 | 9 | 'geo_target' => array( |
| 10 | - 'description' => __( 'Relevant Payer Geography: China', 'woocommerce-gateway-stripe' ), |
|
| 10 | + 'description' => __('Relevant Payer Geography: China', 'woocommerce-gateway-stripe'), |
|
| 11 | 11 | 'type' => 'title', |
| 12 | 12 | ), |
| 13 | 13 | 'guide' => array( |
| 14 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#alipay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
| 14 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#alipay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
| 15 | 15 | 'type' => 'title', |
| 16 | 16 | ), |
| 17 | 17 | 'activation' => array( |
| 18 | - 'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ), |
|
| 18 | + 'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'), |
|
| 19 | 19 | 'type' => 'title', |
| 20 | 20 | ), |
| 21 | 21 | 'enabled' => array( |
| 22 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 23 | - 'label' => __( 'Enable Stripe Alipay', 'woocommerce-gateway-stripe' ), |
|
| 22 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 23 | + 'label' => __('Enable Stripe Alipay', 'woocommerce-gateway-stripe'), |
|
| 24 | 24 | 'type' => 'checkbox', |
| 25 | 25 | 'description' => '', |
| 26 | 26 | 'default' => 'no', |
| 27 | 27 | ), |
| 28 | 28 | 'title' => array( |
| 29 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 29 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 30 | 30 | 'type' => 'text', |
| 31 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 32 | - 'default' => __( 'Alipay', 'woocommerce-gateway-stripe' ), |
|
| 31 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 32 | + 'default' => __('Alipay', 'woocommerce-gateway-stripe'), |
|
| 33 | 33 | 'desc_tip' => true, |
| 34 | 34 | ), |
| 35 | 35 | 'description' => array( |
| 36 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 36 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 37 | 37 | 'type' => 'text', |
| 38 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 39 | - 'default' => __( 'You will be redirected to Alipay.', 'woocommerce-gateway-stripe' ), |
|
| 38 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 39 | + 'default' => __('You will be redirected to Alipay.', 'woocommerce-gateway-stripe'), |
|
| 40 | 40 | 'desc_tip' => true, |
| 41 | 41 | ), |
| 42 | 42 | 'webhook' => array( |
| 43 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
| 43 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
| 44 | 44 | 'type' => 'title', |
| 45 | 45 | /* translators: webhook URL */ |
| 46 | 46 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | * @since 4.0.6 |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 8 | +if ( ! defined('ABSPATH')) { |
|
| 9 | 9 | exit; |
| 10 | 10 | } |
| 11 | 11 | |
@@ -60,21 +60,21 @@ discard block |
||
| 60 | 60 | public $apple_pay_verify_notice; |
| 61 | 61 | |
| 62 | 62 | public function __construct() { |
| 63 | - $this->stripe_settings = get_option( 'woocommerce_stripe_settings', array() ); |
|
| 64 | - $this->stripe_enabled = $this->get_option( 'enabled' ); |
|
| 65 | - $this->payment_request = 'yes' === $this->get_option( 'payment_request', 'yes' ); |
|
| 66 | - $this->apple_pay_domain_set = 'yes' === $this->get_option( 'apple_pay_domain_set', 'no' ); |
|
| 63 | + $this->stripe_settings = get_option('woocommerce_stripe_settings', array()); |
|
| 64 | + $this->stripe_enabled = $this->get_option('enabled'); |
|
| 65 | + $this->payment_request = 'yes' === $this->get_option('payment_request', 'yes'); |
|
| 66 | + $this->apple_pay_domain_set = 'yes' === $this->get_option('apple_pay_domain_set', 'no'); |
|
| 67 | 67 | $this->apple_pay_verify_notice = ''; |
| 68 | - $this->testmode = 'yes' === $this->get_option( 'testmode', 'no' ); |
|
| 69 | - $this->secret_key = $this->testmode ? $this->get_option( 'test_secret_key' ) : $this->get_option( 'secret_key' ); |
|
| 68 | + $this->testmode = 'yes' === $this->get_option('testmode', 'no'); |
|
| 69 | + $this->secret_key = $this->testmode ? $this->get_option('test_secret_key') : $this->get_option('secret_key'); |
|
| 70 | 70 | |
| 71 | - if ( empty( $this->stripe_settings ) ) { |
|
| 71 | + if (empty($this->stripe_settings)) { |
|
| 72 | 72 | return; |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | $this->init_apple_pay(); |
| 76 | 76 | |
| 77 | - add_action( 'admin_notices', array( $this, 'admin_notices' ) ); |
|
| 77 | + add_action('admin_notices', array($this, 'admin_notices')); |
|
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | /** |
@@ -85,13 +85,13 @@ discard block |
||
| 85 | 85 | * @param string default |
| 86 | 86 | * @return string $setting_value |
| 87 | 87 | */ |
| 88 | - public function get_option( $setting = '', $default = '' ) { |
|
| 89 | - if ( empty( $this->stripe_settings ) ) { |
|
| 88 | + public function get_option($setting = '', $default = '') { |
|
| 89 | + if (empty($this->stripe_settings)) { |
|
| 90 | 90 | return $default; |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | - if ( ! empty( $this->stripe_settings[ $setting ] ) ) { |
|
| 94 | - return $this->stripe_settings[ $setting ]; |
|
| 93 | + if ( ! empty($this->stripe_settings[$setting])) { |
|
| 94 | + return $this->stripe_settings[$setting]; |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | return $default; |
@@ -106,9 +106,9 @@ discard block |
||
| 106 | 106 | public function init_apple_pay() { |
| 107 | 107 | if ( |
| 108 | 108 | is_admin() && |
| 109 | - isset( $_GET['page'] ) && 'wc-settings' === $_GET['page'] && |
|
| 110 | - isset( $_GET['tab'] ) && 'checkout' === $_GET['tab'] && |
|
| 111 | - isset( $_GET['section'] ) && 'stripe' === $_GET['section'] && |
|
| 109 | + isset($_GET['page']) && 'wc-settings' === $_GET['page'] && |
|
| 110 | + isset($_GET['tab']) && 'checkout' === $_GET['tab'] && |
|
| 111 | + isset($_GET['section']) && 'stripe' === $_GET['section'] && |
|
| 112 | 112 | $this->payment_request |
| 113 | 113 | ) { |
| 114 | 114 | $this->process_apple_pay_verification(); |
@@ -122,9 +122,9 @@ discard block |
||
| 122 | 122 | * @version 3.1.0 |
| 123 | 123 | * @param string $secret_key |
| 124 | 124 | */ |
| 125 | - private function register_apple_pay_domain( $secret_key = '' ) { |
|
| 126 | - if ( empty( $secret_key ) ) { |
|
| 127 | - throw new Exception( __( 'Unable to verify domain - missing secret key.', 'woocommerce-gateway-stripe' ) ); |
|
| 125 | + private function register_apple_pay_domain($secret_key = '') { |
|
| 126 | + if (empty($secret_key)) { |
|
| 127 | + throw new Exception(__('Unable to verify domain - missing secret key.', 'woocommerce-gateway-stripe')); |
|
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | $endpoint = 'https://api.stripe.com/v1/apple_pay/domains'; |
@@ -142,22 +142,22 @@ discard block |
||
| 142 | 142 | $endpoint, |
| 143 | 143 | array( |
| 144 | 144 | 'headers' => $headers, |
| 145 | - 'body' => http_build_query( $data ), |
|
| 145 | + 'body' => http_build_query($data), |
|
| 146 | 146 | ) |
| 147 | 147 | ); |
| 148 | 148 | |
| 149 | - if ( is_wp_error( $response ) ) { |
|
| 149 | + if (is_wp_error($response)) { |
|
| 150 | 150 | /* translators: error message */ |
| 151 | - throw new Exception( sprintf( __( 'Unable to verify domain - %s', 'woocommerce-gateway-stripe' ), $response->get_error_message() ) ); |
|
| 151 | + throw new Exception(sprintf(__('Unable to verify domain - %s', 'woocommerce-gateway-stripe'), $response->get_error_message())); |
|
| 152 | 152 | } |
| 153 | 153 | |
| 154 | - if ( 200 !== $response['response']['code'] ) { |
|
| 155 | - $parsed_response = json_decode( $response['body'] ); |
|
| 154 | + if (200 !== $response['response']['code']) { |
|
| 155 | + $parsed_response = json_decode($response['body']); |
|
| 156 | 156 | |
| 157 | 157 | $this->apple_pay_verify_notice = $parsed_response->error->message; |
| 158 | 158 | |
| 159 | 159 | /* translators: error message */ |
| 160 | - throw new Exception( sprintf( __( 'Unable to verify domain - %s', 'woocommerce-gateway-stripe' ), $parsed_response->error->message ) ); |
|
| 160 | + throw new Exception(sprintf(__('Unable to verify domain - %s', 'woocommerce-gateway-stripe'), $parsed_response->error->message)); |
|
| 161 | 161 | } |
| 162 | 162 | } |
| 163 | 163 | |
@@ -169,45 +169,45 @@ discard block |
||
| 169 | 169 | */ |
| 170 | 170 | public function process_apple_pay_verification() { |
| 171 | 171 | try { |
| 172 | - $path = untrailingslashit( $_SERVER['DOCUMENT_ROOT'] ); |
|
| 172 | + $path = untrailingslashit($_SERVER['DOCUMENT_ROOT']); |
|
| 173 | 173 | $dir = '.well-known'; |
| 174 | 174 | $file = 'apple-developer-merchantid-domain-association'; |
| 175 | 175 | $fullpath = $path . '/' . $dir . '/' . $file; |
| 176 | 176 | |
| 177 | - if ( $this->apple_pay_domain_set && file_exists( $fullpath ) ) { |
|
| 177 | + if ($this->apple_pay_domain_set && file_exists($fullpath)) { |
|
| 178 | 178 | return; |
| 179 | 179 | } |
| 180 | 180 | |
| 181 | - if ( ! file_exists( $path . '/' . $dir ) ) { |
|
| 182 | - if ( ! @mkdir( $path . '/' . $dir, 0755 ) ) { // @codingStandardsIgnoreLine |
|
| 183 | - throw new Exception( __( 'Unable to create domain association folder to domain root.', 'woocommerce-gateway-stripe' ) ); |
|
| 181 | + if ( ! file_exists($path . '/' . $dir)) { |
|
| 182 | + if ( ! @mkdir($path . '/' . $dir, 0755)) { // @codingStandardsIgnoreLine |
|
| 183 | + throw new Exception(__('Unable to create domain association folder to domain root.', 'woocommerce-gateway-stripe')); |
|
| 184 | 184 | } |
| 185 | 185 | } |
| 186 | 186 | |
| 187 | - if ( ! file_exists( $fullpath ) ) { |
|
| 188 | - if ( ! @copy( WC_STRIPE_PLUGIN_PATH . '/' . $file, $fullpath ) ) { // @codingStandardsIgnoreLine |
|
| 189 | - throw new Exception( __( 'Unable to copy domain association file to domain root.', 'woocommerce-gateway-stripe' ) ); |
|
| 187 | + if ( ! file_exists($fullpath)) { |
|
| 188 | + if ( ! @copy(WC_STRIPE_PLUGIN_PATH . '/' . $file, $fullpath)) { // @codingStandardsIgnoreLine |
|
| 189 | + throw new Exception(__('Unable to copy domain association file to domain root.', 'woocommerce-gateway-stripe')); |
|
| 190 | 190 | } |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | 193 | // At this point then the domain association folder and file should be available. |
| 194 | 194 | // Proceed to verify/and or verify again. |
| 195 | - $this->register_apple_pay_domain( $this->secret_key ); |
|
| 195 | + $this->register_apple_pay_domain($this->secret_key); |
|
| 196 | 196 | |
| 197 | 197 | // No errors to this point, verification success! |
| 198 | 198 | $this->stripe_settings['apple_pay_domain_set'] = 'yes'; |
| 199 | 199 | $this->apple_pay_domain_set = true; |
| 200 | 200 | |
| 201 | - update_option( 'woocommerce_stripe_settings', $this->stripe_settings ); |
|
| 201 | + update_option('woocommerce_stripe_settings', $this->stripe_settings); |
|
| 202 | 202 | |
| 203 | - WC_Stripe_Logger::log( 'Your domain has been verified with Apple Pay!' ); |
|
| 203 | + WC_Stripe_Logger::log('Your domain has been verified with Apple Pay!'); |
|
| 204 | 204 | |
| 205 | - } catch ( Exception $e ) { |
|
| 205 | + } catch (Exception $e) { |
|
| 206 | 206 | $this->stripe_settings['apple_pay_domain_set'] = 'no'; |
| 207 | 207 | |
| 208 | - update_option( 'woocommerce_stripe_settings', $this->stripe_settings ); |
|
| 208 | + update_option('woocommerce_stripe_settings', $this->stripe_settings); |
|
| 209 | 209 | |
| 210 | - WC_Stripe_Logger::log( 'Error: ' . $e->getMessage() ); |
|
| 210 | + WC_Stripe_Logger::log('Error: ' . $e->getMessage()); |
|
| 211 | 211 | } |
| 212 | 212 | } |
| 213 | 213 | |
@@ -217,15 +217,15 @@ discard block |
||
| 217 | 217 | * @since 4.0.6 |
| 218 | 218 | */ |
| 219 | 219 | public function admin_notices() { |
| 220 | - if ( ! $this->stripe_enabled ) { |
|
| 220 | + if ( ! $this->stripe_enabled) { |
|
| 221 | 221 | return; |
| 222 | 222 | } |
| 223 | 223 | |
| 224 | - if ( ! current_user_can( 'manage_woocommerce' ) ) { |
|
| 224 | + if ( ! current_user_can('manage_woocommerce')) { |
|
| 225 | 225 | return; |
| 226 | 226 | } |
| 227 | 227 | |
| 228 | - if ( $this->payment_request && ! empty( $this->apple_pay_verify_notice ) ) { |
|
| 228 | + if ($this->payment_request && ! empty($this->apple_pay_verify_notice)) { |
|
| 229 | 229 | $allowed_html = array( |
| 230 | 230 | 'a' => array( |
| 231 | 231 | 'href' => array(), |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | ), |
| 234 | 234 | ); |
| 235 | 235 | |
| 236 | - echo '<div class="error stripe-apple-pay-message"><p>' . wp_kses( make_clickable( $this->apple_pay_verify_notice ), $allowed_html ) . '</p></div>'; |
|
| 236 | + echo '<div class="error stripe-apple-pay-message"><p>' . wp_kses(make_clickable($this->apple_pay_verify_notice), $allowed_html) . '</p></div>'; |
|
| 237 | 237 | } |
| 238 | 238 | |
| 239 | 239 | /** |
@@ -241,9 +241,9 @@ discard block |
||
| 241 | 241 | * when setting screen is displayed. So if domain verification is not set, |
| 242 | 242 | * something went wrong so lets notify user. |
| 243 | 243 | */ |
| 244 | - if ( ! empty( $this->secret_key ) && $this->payment_request && ! $this->apple_pay_domain_set ) { |
|
| 244 | + if ( ! empty($this->secret_key) && $this->payment_request && ! $this->apple_pay_domain_set) { |
|
| 245 | 245 | /* translators: 1) HTML anchor open tag 2) HTML anchor closing tag */ |
| 246 | - echo '<div class="error stripe-apple-pay-message"><p>' . sprintf( __( 'Apple Pay domain verification failed. Please check the %1$slog%2$s to see the issue. (Logging must be enabled to see recorded logs)', 'woocommerce-gateway-stripe' ), '<a href="' . admin_url( 'admin.php?page=wc-status&tab=logs' ) . '">', '</a>' ) . '</p></div>'; |
|
| 246 | + echo '<div class="error stripe-apple-pay-message"><p>' . sprintf(__('Apple Pay domain verification failed. Please check the %1$slog%2$s to see the issue. (Logging must be enabled to see recorded logs)', 'woocommerce-gateway-stripe'), '<a href="' . admin_url('admin.php?page=wc-status&tab=logs') . '">', '</a>') . '</p></div>'; |
|
| 247 | 247 | } |
| 248 | 248 | } |
| 249 | 249 | } |