@@ -1,45 +1,45 @@ |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
2 | +if ( ! defined('ABSPATH')) { |
|
3 | 3 | exit; |
4 | 4 | } |
5 | 5 | |
6 | -return apply_filters( 'wc_stripe_ideal_settings', |
|
6 | +return apply_filters('wc_stripe_ideal_settings', |
|
7 | 7 | array( |
8 | 8 | 'geo_target' => array( |
9 | - 'description' => __( 'Relevant Payer Geography: The Netherlands', 'woocommerce-gateway-stripe' ), |
|
9 | + 'description' => __('Relevant Payer Geography: The Netherlands', 'woocommerce-gateway-stripe'), |
|
10 | 10 | 'type' => 'title', |
11 | 11 | ), |
12 | 12 | 'guide' => array( |
13 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#ideal" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
13 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#ideal" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
14 | 14 | 'type' => 'title', |
15 | 15 | ), |
16 | 16 | 'activation' => array( |
17 | - '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' ), |
|
17 | + '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 | 18 | 'type' => 'title', |
19 | 19 | ), |
20 | 20 | 'enabled' => array( |
21 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
22 | - 'label' => __( 'Enable Stripe iDeal', 'woocommerce-gateway-stripe' ), |
|
21 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
22 | + 'label' => __('Enable Stripe iDeal', 'woocommerce-gateway-stripe'), |
|
23 | 23 | 'type' => 'checkbox', |
24 | 24 | 'description' => '', |
25 | 25 | 'default' => 'no', |
26 | 26 | ), |
27 | 27 | 'title' => array( |
28 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
28 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
29 | 29 | 'type' => 'text', |
30 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
31 | - 'default' => __( 'iDeal', 'woocommerce-gateway-stripe' ), |
|
30 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
31 | + 'default' => __('iDeal', 'woocommerce-gateway-stripe'), |
|
32 | 32 | 'desc_tip' => true, |
33 | 33 | ), |
34 | 34 | 'description' => array( |
35 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
35 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
36 | 36 | 'type' => 'text', |
37 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
38 | - 'default' => __( 'You will be redirected to iDeal.', 'woocommerce-gateway-stripe' ), |
|
37 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
38 | + 'default' => __('You will be redirected to iDeal.', 'woocommerce-gateway-stripe'), |
|
39 | 39 | 'desc_tip' => true, |
40 | 40 | ), |
41 | 41 | 'webhook' => array( |
42 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
42 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
43 | 43 | 'type' => 'title', |
44 | 44 | /* translators: webhook URL */ |
45 | 45 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,45 +1,45 @@ |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
2 | +if ( ! defined('ABSPATH')) { |
|
3 | 3 | exit; |
4 | 4 | } |
5 | 5 | |
6 | -return apply_filters( 'wc_stripe_alipay_settings', |
|
6 | +return apply_filters('wc_stripe_alipay_settings', |
|
7 | 7 | array( |
8 | 8 | 'geo_target' => array( |
9 | - 'description' => __( 'Relevant Payer Geography: China', 'woocommerce-gateway-stripe' ), |
|
9 | + 'description' => __('Relevant Payer Geography: China', 'woocommerce-gateway-stripe'), |
|
10 | 10 | 'type' => 'title', |
11 | 11 | ), |
12 | 12 | 'guide' => array( |
13 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#alipay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
13 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#alipay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
14 | 14 | 'type' => 'title', |
15 | 15 | ), |
16 | 16 | 'activation' => array( |
17 | - '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' ), |
|
17 | + '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 | 18 | 'type' => 'title', |
19 | 19 | ), |
20 | 20 | 'enabled' => array( |
21 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
22 | - 'label' => __( 'Enable Stripe Alipay', 'woocommerce-gateway-stripe' ), |
|
21 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
22 | + 'label' => __('Enable Stripe Alipay', 'woocommerce-gateway-stripe'), |
|
23 | 23 | 'type' => 'checkbox', |
24 | 24 | 'description' => '', |
25 | 25 | 'default' => 'no', |
26 | 26 | ), |
27 | 27 | 'title' => array( |
28 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
28 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
29 | 29 | 'type' => 'text', |
30 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
31 | - 'default' => __( 'Alipay', 'woocommerce-gateway-stripe' ), |
|
30 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
31 | + 'default' => __('Alipay', 'woocommerce-gateway-stripe'), |
|
32 | 32 | 'desc_tip' => true, |
33 | 33 | ), |
34 | 34 | 'description' => array( |
35 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
35 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
36 | 36 | 'type' => 'text', |
37 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
38 | - 'default' => __( 'You will be redirected to Alipay.', 'woocommerce-gateway-stripe' ), |
|
37 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
38 | + 'default' => __('You will be redirected to Alipay.', 'woocommerce-gateway-stripe'), |
|
39 | 39 | 'desc_tip' => true, |
40 | 40 | ), |
41 | 41 | 'webhook' => array( |
42 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
42 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
43 | 43 | 'type' => 'title', |
44 | 44 | /* translators: webhook URL */ |
45 | 45 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,45 +1,45 @@ |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
2 | +if ( ! defined('ABSPATH')) { |
|
3 | 3 | exit; |
4 | 4 | } |
5 | 5 | |
6 | -return apply_filters( 'wc_stripe_bancontact_settings', |
|
6 | +return apply_filters('wc_stripe_bancontact_settings', |
|
7 | 7 | array( |
8 | 8 | 'geo_target' => array( |
9 | - 'description' => __( 'Relevant Payer Geography: Belgium', 'woocommerce-gateway-stripe' ), |
|
9 | + 'description' => __('Relevant Payer Geography: Belgium', 'woocommerce-gateway-stripe'), |
|
10 | 10 | 'type' => 'title', |
11 | 11 | ), |
12 | 12 | 'guide' => array( |
13 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#bancontact" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
13 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#bancontact" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
14 | 14 | 'type' => 'title', |
15 | 15 | ), |
16 | 16 | 'activation' => array( |
17 | - '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' ), |
|
17 | + '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 | 18 | 'type' => 'title', |
19 | 19 | ), |
20 | 20 | 'enabled' => array( |
21 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
22 | - 'label' => __( 'Enable Stripe Bancontact', 'woocommerce-gateway-stripe' ), |
|
21 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
22 | + 'label' => __('Enable Stripe Bancontact', 'woocommerce-gateway-stripe'), |
|
23 | 23 | 'type' => 'checkbox', |
24 | 24 | 'description' => '', |
25 | 25 | 'default' => 'no', |
26 | 26 | ), |
27 | 27 | 'title' => array( |
28 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
28 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
29 | 29 | 'type' => 'text', |
30 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
31 | - 'default' => __( 'Bancontact', 'woocommerce-gateway-stripe' ), |
|
30 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
31 | + 'default' => __('Bancontact', 'woocommerce-gateway-stripe'), |
|
32 | 32 | 'desc_tip' => true, |
33 | 33 | ), |
34 | 34 | 'description' => array( |
35 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
35 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
36 | 36 | 'type' => 'text', |
37 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
38 | - 'default' => __( 'You will be redirected to Bancontact.', 'woocommerce-gateway-stripe' ), |
|
37 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
38 | + 'default' => __('You will be redirected to Bancontact.', 'woocommerce-gateway-stripe'), |
|
39 | 39 | 'desc_tip' => true, |
40 | 40 | ), |
41 | 41 | 'webhook' => array( |
42 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
42 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
43 | 43 | 'type' => 'title', |
44 | 44 | /* translators: webhook URL */ |
45 | 45 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,41 +1,41 @@ |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
2 | +if ( ! defined('ABSPATH')) { |
|
3 | 3 | exit; |
4 | 4 | } |
5 | 5 | |
6 | -return apply_filters( 'wc_stripe_p24_settings', |
|
6 | +return apply_filters('wc_stripe_p24_settings', |
|
7 | 7 | array( |
8 | 8 | 'geo_target' => array( |
9 | - 'description' => __( 'Relevant Payer Geography: Poland', 'woocommerce-gateway-stripe' ), |
|
9 | + 'description' => __('Relevant Payer Geography: Poland', 'woocommerce-gateway-stripe'), |
|
10 | 10 | 'type' => 'title', |
11 | 11 | ), |
12 | 12 | 'activation' => array( |
13 | - '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' ), |
|
13 | + '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 | 14 | 'type' => 'title', |
15 | 15 | ), |
16 | 16 | 'enabled' => array( |
17 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
18 | - 'label' => __( 'Enable Stripe P24', 'woocommerce-gateway-stripe' ), |
|
17 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
18 | + 'label' => __('Enable Stripe P24', 'woocommerce-gateway-stripe'), |
|
19 | 19 | 'type' => 'checkbox', |
20 | 20 | 'description' => '', |
21 | 21 | 'default' => 'no', |
22 | 22 | ), |
23 | 23 | 'title' => array( |
24 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
24 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
25 | 25 | 'type' => 'text', |
26 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
27 | - 'default' => __( 'Przelewy24 (P24)', 'woocommerce-gateway-stripe' ), |
|
26 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
27 | + 'default' => __('Przelewy24 (P24)', 'woocommerce-gateway-stripe'), |
|
28 | 28 | 'desc_tip' => true, |
29 | 29 | ), |
30 | 30 | 'description' => array( |
31 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
31 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
32 | 32 | 'type' => 'text', |
33 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
34 | - 'default' => __( 'You will be redirected to P24.', 'woocommerce-gateway-stripe' ), |
|
33 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
34 | + 'default' => __('You will be redirected to P24.', 'woocommerce-gateway-stripe'), |
|
35 | 35 | 'desc_tip' => true, |
36 | 36 | ), |
37 | 37 | 'webhook' => array( |
38 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
38 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
39 | 39 | 'type' => 'title', |
40 | 40 | /* translators: webhook URL */ |
41 | 41 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,45 +1,45 @@ |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
2 | +if ( ! defined('ABSPATH')) { |
|
3 | 3 | exit; |
4 | 4 | } |
5 | 5 | |
6 | -return apply_filters( 'wc_stripe_giropay_settings', |
|
6 | +return apply_filters('wc_stripe_giropay_settings', |
|
7 | 7 | array( |
8 | 8 | 'geo_target' => array( |
9 | - 'description' => __( 'Relevant Payer Geography: Germany', 'woocommerce-gateway-stripe' ), |
|
9 | + 'description' => __('Relevant Payer Geography: Germany', 'woocommerce-gateway-stripe'), |
|
10 | 10 | 'type' => 'title', |
11 | 11 | ), |
12 | 12 | 'guide' => array( |
13 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#giropay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
13 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#giropay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
14 | 14 | 'type' => 'title', |
15 | 15 | ), |
16 | 16 | 'activation' => array( |
17 | - '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' ), |
|
17 | + '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 | 18 | 'type' => 'title', |
19 | 19 | ), |
20 | 20 | 'enabled' => array( |
21 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
22 | - 'label' => __( 'Enable Stripe Giropay', 'woocommerce-gateway-stripe' ), |
|
21 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
22 | + 'label' => __('Enable Stripe Giropay', 'woocommerce-gateway-stripe'), |
|
23 | 23 | 'type' => 'checkbox', |
24 | 24 | 'description' => '', |
25 | 25 | 'default' => 'no', |
26 | 26 | ), |
27 | 27 | 'title' => array( |
28 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
28 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
29 | 29 | 'type' => 'text', |
30 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
31 | - 'default' => __( 'Giropay', 'woocommerce-gateway-stripe' ), |
|
30 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
31 | + 'default' => __('Giropay', 'woocommerce-gateway-stripe'), |
|
32 | 32 | 'desc_tip' => true, |
33 | 33 | ), |
34 | 34 | 'description' => array( |
35 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
35 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
36 | 36 | 'type' => 'text', |
37 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
38 | - 'default' => __( 'You will be redirected to Giropay.', 'woocommerce-gateway-stripe' ), |
|
37 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
38 | + 'default' => __('You will be redirected to Giropay.', 'woocommerce-gateway-stripe'), |
|
39 | 39 | 'desc_tip' => true, |
40 | 40 | ), |
41 | 41 | 'webhook' => array( |
42 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
42 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
43 | 43 | 'type' => 'title', |
44 | 44 | /* translators: webhook URL */ |
45 | 45 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,41 +1,41 @@ |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
2 | +if ( ! defined('ABSPATH')) { |
|
3 | 3 | exit; |
4 | 4 | } |
5 | 5 | |
6 | -return apply_filters( 'wc_stripe_multibanco_settings', |
|
6 | +return apply_filters('wc_stripe_multibanco_settings', |
|
7 | 7 | array( |
8 | 8 | 'geo_target' => array( |
9 | - 'description' => __( 'Relevant Payer Geography: Portugal', 'woocommerce-gateway-stripe' ), |
|
9 | + 'description' => __('Relevant Payer Geography: Portugal', 'woocommerce-gateway-stripe'), |
|
10 | 10 | 'type' => 'title', |
11 | 11 | ), |
12 | 12 | 'activation' => array( |
13 | - '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' ), |
|
13 | + '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 | 14 | 'type' => 'title', |
15 | 15 | ), |
16 | 16 | 'enabled' => array( |
17 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
18 | - 'label' => __( 'Enable Stripe Multibanco', 'woocommerce-gateway-stripe' ), |
|
17 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
18 | + 'label' => __('Enable Stripe Multibanco', 'woocommerce-gateway-stripe'), |
|
19 | 19 | 'type' => 'checkbox', |
20 | 20 | 'description' => '', |
21 | 21 | 'default' => 'no', |
22 | 22 | ), |
23 | 23 | 'title' => array( |
24 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
24 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
25 | 25 | 'type' => 'text', |
26 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
27 | - 'default' => __( 'Multibanco', 'woocommerce-gateway-stripe' ), |
|
26 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
27 | + 'default' => __('Multibanco', 'woocommerce-gateway-stripe'), |
|
28 | 28 | 'desc_tip' => true, |
29 | 29 | ), |
30 | 30 | 'description' => array( |
31 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
31 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
32 | 32 | 'type' => 'text', |
33 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
34 | - 'default' => __( 'You will be redirected to Multibanco.', 'woocommerce-gateway-stripe' ), |
|
33 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
34 | + 'default' => __('You will be redirected to Multibanco.', 'woocommerce-gateway-stripe'), |
|
35 | 35 | 'desc_tip' => true, |
36 | 36 | ), |
37 | 37 | 'webhook' => array( |
38 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
38 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
39 | 39 | 'type' => 'title', |
40 | 40 | /* translators: webhook URL */ |
41 | 41 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,45 +1,45 @@ |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
2 | +if ( ! defined('ABSPATH')) { |
|
3 | 3 | exit; |
4 | 4 | } |
5 | 5 | |
6 | -return apply_filters( 'wc_stripe_sepa_settings', |
|
6 | +return apply_filters('wc_stripe_sepa_settings', |
|
7 | 7 | array( |
8 | 8 | 'geo_target' => array( |
9 | - 'description' => __( 'Relevant Payer Geography: France, Germany, Spain, Belgium, Netherlands, Luxembourg, Italy, Portugal, Austria, Ireland', 'woocommerce-gateway-stripe' ), |
|
9 | + 'description' => __('Relevant Payer Geography: France, Germany, Spain, Belgium, Netherlands, Luxembourg, Italy, Portugal, Austria, Ireland', 'woocommerce-gateway-stripe'), |
|
10 | 10 | 'type' => 'title', |
11 | 11 | ), |
12 | 12 | 'guide' => array( |
13 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#sepa-direct-debit" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
13 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#sepa-direct-debit" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
14 | 14 | 'type' => 'title', |
15 | 15 | ), |
16 | 16 | 'activation' => array( |
17 | - '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' ), |
|
17 | + '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 | 18 | 'type' => 'title', |
19 | 19 | ), |
20 | 20 | 'enabled' => array( |
21 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
22 | - 'label' => __( 'Enable Stripe SEPA Direct Debit', 'woocommerce-gateway-stripe' ), |
|
21 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
22 | + 'label' => __('Enable Stripe SEPA Direct Debit', 'woocommerce-gateway-stripe'), |
|
23 | 23 | 'type' => 'checkbox', |
24 | 24 | 'description' => '', |
25 | 25 | 'default' => 'no', |
26 | 26 | ), |
27 | 27 | 'title' => array( |
28 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
28 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
29 | 29 | 'type' => 'text', |
30 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
31 | - 'default' => __( 'SEPA Direct Debit', 'woocommerce-gateway-stripe' ), |
|
30 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
31 | + 'default' => __('SEPA Direct Debit', 'woocommerce-gateway-stripe'), |
|
32 | 32 | 'desc_tip' => true, |
33 | 33 | ), |
34 | 34 | 'description' => array( |
35 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
35 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
36 | 36 | 'type' => 'text', |
37 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
38 | - 'default' => __( 'Mandate Information.', 'woocommerce-gateway-stripe' ), |
|
37 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
38 | + 'default' => __('Mandate Information.', 'woocommerce-gateway-stripe'), |
|
39 | 39 | 'desc_tip' => true, |
40 | 40 | ), |
41 | 41 | 'webhook' => array( |
42 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
42 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
43 | 43 | 'type' => 'title', |
44 | 44 | /* translators: webhook URL */ |
45 | 45 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,45 +1,45 @@ |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
2 | +if ( ! defined('ABSPATH')) { |
|
3 | 3 | exit; |
4 | 4 | } |
5 | 5 | |
6 | -return apply_filters( 'wc_stripe_sofort_settings', |
|
6 | +return apply_filters('wc_stripe_sofort_settings', |
|
7 | 7 | array( |
8 | 8 | 'geo_target' => array( |
9 | - 'description' => __( 'Relevant Payer Geography: Germany, Austria', 'woocommerce-gateway-stripe' ), |
|
9 | + 'description' => __('Relevant Payer Geography: Germany, Austria', 'woocommerce-gateway-stripe'), |
|
10 | 10 | 'type' => 'title', |
11 | 11 | ), |
12 | 12 | 'guide' => array( |
13 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#sofort" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
13 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#sofort" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
14 | 14 | 'type' => 'title', |
15 | 15 | ), |
16 | 16 | 'activation' => array( |
17 | - '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' ), |
|
17 | + '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 | 18 | 'type' => 'title', |
19 | 19 | ), |
20 | 20 | 'enabled' => array( |
21 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
22 | - 'label' => __( 'Enable Stripe SOFORT', 'woocommerce-gateway-stripe' ), |
|
21 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
22 | + 'label' => __('Enable Stripe SOFORT', 'woocommerce-gateway-stripe'), |
|
23 | 23 | 'type' => 'checkbox', |
24 | 24 | 'description' => '', |
25 | 25 | 'default' => 'no', |
26 | 26 | ), |
27 | 27 | 'title' => array( |
28 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
28 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
29 | 29 | 'type' => 'text', |
30 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
31 | - 'default' => __( 'SOFORT', 'woocommerce-gateway-stripe' ), |
|
30 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
31 | + 'default' => __('SOFORT', 'woocommerce-gateway-stripe'), |
|
32 | 32 | 'desc_tip' => true, |
33 | 33 | ), |
34 | 34 | 'description' => array( |
35 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
35 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
36 | 36 | 'type' => 'text', |
37 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
38 | - 'default' => __( 'You will be redirected to SOFORT.', 'woocommerce-gateway-stripe' ), |
|
37 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
38 | + 'default' => __('You will be redirected to SOFORT.', 'woocommerce-gateway-stripe'), |
|
39 | 39 | 'desc_tip' => true, |
40 | 40 | ), |
41 | 41 | 'webhook' => array( |
42 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
42 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
43 | 43 | 'type' => 'title', |
44 | 44 | /* translators: webhook URL */ |
45 | 45 | '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; // Exit if accessed directly |
4 | 4 | } |
5 | 5 | |
@@ -20,28 +20,28 @@ discard block |
||
20 | 20 | * @since 4.0.0 |
21 | 21 | * @version 4.0.0 |
22 | 22 | */ |
23 | - public static function log( $message, $start_time = null, $end_time = null ) { |
|
24 | - if ( ! class_exists( 'WC_Logger' ) ) { |
|
23 | + public static function log($message, $start_time = null, $end_time = null) { |
|
24 | + if ( ! class_exists('WC_Logger')) { |
|
25 | 25 | return; |
26 | 26 | } |
27 | 27 | |
28 | - if ( apply_filters( 'wc_stripe_logging', true, $message ) ) { |
|
29 | - if ( empty( self::$logger ) ) { |
|
28 | + if (apply_filters('wc_stripe_logging', true, $message)) { |
|
29 | + if (empty(self::$logger)) { |
|
30 | 30 | self::$logger = new WC_Logger(); |
31 | 31 | } |
32 | 32 | |
33 | - $settings = get_option( 'woocommerce_stripe_settings' ); |
|
33 | + $settings = get_option('woocommerce_stripe_settings'); |
|
34 | 34 | |
35 | - if ( empty( $settings ) || isset( $settings['logging'] ) && 'yes' !== $settings['logging'] ) { |
|
35 | + if (empty($settings) || isset($settings['logging']) && 'yes' !== $settings['logging']) { |
|
36 | 36 | return; |
37 | 37 | } |
38 | 38 | |
39 | - if ( ! is_null( $start_time ) ) { |
|
39 | + if ( ! is_null($start_time)) { |
|
40 | 40 | |
41 | - $formatted_start_time = date_i18n( get_option( 'date_format' ) . ' g:ia', $start_time ); |
|
42 | - $end_time = is_null( $end_time ) ? current_time( 'timestamp' ) : $end_time; |
|
43 | - $formatted_end_time = date_i18n( get_option( 'date_format' ) . ' g:ia', $end_time ); |
|
44 | - $elapsed_time = round( abs( $end_time - $start_time ) / 60, 2 ); |
|
41 | + $formatted_start_time = date_i18n(get_option('date_format') . ' g:ia', $start_time); |
|
42 | + $end_time = is_null($end_time) ? current_time('timestamp') : $end_time; |
|
43 | + $formatted_end_time = date_i18n(get_option('date_format') . ' g:ia', $end_time); |
|
44 | + $elapsed_time = round(abs($end_time - $start_time) / 60, 2); |
|
45 | 45 | |
46 | 46 | $log_entry = "\n" . '====Stripe Version: ' . WC_STRIPE_VERSION . '====' . "\n"; |
47 | 47 | $log_entry .= '====Start Log ' . $formatted_start_time . '====' . "\n" . $message . "\n"; |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | } |
55 | 55 | |
56 | - self::$logger->add( self::WC_LOG_FILENAME, $log_entry ); |
|
56 | + self::$logger->add(self::WC_LOG_FILENAME, $log_entry); |
|
57 | 57 | } |
58 | 58 | } |
59 | 59 | } |