Completed
Push — master ( bf7249...8ab9d7 )
by Matty
02:35
created
includes/class-wc-stripe-logger.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) {
2
+if ( ! defined('ABSPATH')) {
3 3
 	exit; // Exit if accessed directly
4 4
 }
5 5
 
@@ -20,23 +20,23 @@  discard block
 block discarded – undo
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 ( empty( self::$logger ) ) {
23
+	public static function log($message, $start_time = null, $end_time = null) {
24
+		if (empty(self::$logger)) {
25 25
 			self::$logger = new WC_Logger();
26 26
 		}
27 27
 
28
-		$settings = get_option( 'woocommerce_stripe_settings' );
28
+		$settings = get_option('woocommerce_stripe_settings');
29 29
 
30
-		if ( empty( $settings ) || isset( $settings['logging'] ) && 'yes' !== $settings['logging'] ) {
30
+		if (empty($settings) || isset($settings['logging']) && 'yes' !== $settings['logging']) {
31 31
 			return;
32 32
 		}
33 33
 
34
-		if ( ! is_null( $start_time ) ) {
34
+		if ( ! is_null($start_time)) {
35 35
 
36
-			$formatted_start_time = date_i18n( get_option( 'date_format' ) . ' g:ia', $start_time );
37
-			$end_time             = is_null( $end_time ) ? current_time( 'timestamp' ) : $end_time;
38
-			$formatted_end_time   = date_i18n( get_option( 'date_format' ) . ' g:ia', $end_time );
39
-			$elapsed_time         = round( abs( $end_time - $start_time ) / 60, 2 );
36
+			$formatted_start_time = date_i18n(get_option('date_format') . ' g:ia', $start_time);
37
+			$end_time             = is_null($end_time) ? current_time('timestamp') : $end_time;
38
+			$formatted_end_time   = date_i18n(get_option('date_format') . ' g:ia', $end_time);
39
+			$elapsed_time         = round(abs($end_time - $start_time) / 60, 2);
40 40
 
41 41
 			$log_entry  = '====Start Log ' . $formatted_start_time . '====' . "\n" . $message . "\n";
42 42
 			$log_entry .= '====End Log ' . $formatted_end_time . ' (' . $elapsed_time . ')====' . "\n\n";
@@ -47,6 +47,6 @@  discard block
 block discarded – undo
47 47
 
48 48
 		}
49 49
 
50
-		self::$logger->add( self::WC_LOG_FILENAME, $log_entry );
50
+		self::$logger->add(self::WC_LOG_FILENAME, $log_entry);
51 51
 	}
52 52
 }
Please login to merge, or discard this patch.
includes/admin/stripe-bitcoin-settings.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,50 +1,50 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) {
2
+if ( ! defined('ABSPATH')) {
3 3
 	exit;
4 4
 }
5 5
 
6 6
 $webhook_url = WC_Stripe_Helper::get_webhook_url();
7 7
 
8
-return apply_filters( 'wc_stripe_bitcoin_settings',
8
+return apply_filters('wc_stripe_bitcoin_settings',
9 9
 	array(
10 10
 		'geo_target' => array(
11
-			'description' => __( 'Relevant Payer Geography: Global', 'woocommerce-gateway-stripe' ),
11
+			'description' => __('Relevant Payer Geography: Global', 'woocommerce-gateway-stripe'),
12 12
 			'type'        => 'title',
13 13
 		),
14 14
 		'guide' => array(
15
-			'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#bitcoin" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ),
15
+			'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#bitcoin" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'),
16 16
 			'type'        => 'title',
17 17
 		),
18 18
 		'activation' => array(
19
-			'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
+			'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'),
20 20
 			'type'   => 'title',
21 21
 		),
22 22
 		'enabled' => array(
23
-			'title'       => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ),
24
-			'label'       => __( 'Enable Stripe Bitcoin', 'woocommerce-gateway-stripe' ),
23
+			'title'       => __('Enable/Disable', 'woocommerce-gateway-stripe'),
24
+			'label'       => __('Enable Stripe Bitcoin', 'woocommerce-gateway-stripe'),
25 25
 			'type'        => 'checkbox',
26 26
 			'description' => '',
27 27
 			'default'     => 'no',
28 28
 		),
29 29
 		'title' => array(
30
-			'title'       => __( 'Title', 'woocommerce-gateway-stripe' ),
30
+			'title'       => __('Title', 'woocommerce-gateway-stripe'),
31 31
 			'type'        => 'text',
32
-			'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
33
-			'default'     => __( 'Bitcoin', 'woocommerce-gateway-stripe' ),
32
+			'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'),
33
+			'default'     => __('Bitcoin', 'woocommerce-gateway-stripe'),
34 34
 			'desc_tip'    => true,
35 35
 		),
36 36
 		'description' => array(
37
-			'title'       => __( 'Description', 'woocommerce-gateway-stripe' ),
37
+			'title'       => __('Description', 'woocommerce-gateway-stripe'),
38 38
 			'type'        => 'text',
39
-			'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
40
-			'default'     => __( 'Bitcoin payment information will be provided when you place the order.', 'woocommerce-gateway-stripe' ),
39
+			'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'),
40
+			'default'     => __('Bitcoin payment information will be provided when you place the order.', 'woocommerce-gateway-stripe'),
41 41
 			'desc_tip'    => true,
42 42
 		),
43 43
 		'webhook' => array(
44
-			'title'       => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ),
44
+			'title'       => __('Webhook Endpoints', 'woocommerce-gateway-stripe'),
45 45
 			'type'        => 'title',
46 46
 			/* translators: webhook URL */
47
-			'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ),
47
+			'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url),
48 48
 		),
49 49
 	)
50 50
 );
Please login to merge, or discard this patch.
includes/admin/stripe-ideal-settings.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,50 +1,50 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) {
2
+if ( ! defined('ABSPATH')) {
3 3
 	exit;
4 4
 }
5 5
 
6 6
 $webhook_url = WC_Stripe_Helper::get_webhook_url();
7 7
 
8
-return apply_filters( 'wc_stripe_ideal_settings',
8
+return apply_filters('wc_stripe_ideal_settings',
9 9
 	array(
10 10
 		'geo_target' => array(
11
-			'description' => __( 'Relevant Payer Geography: The Netherlands', 'woocommerce-gateway-stripe' ),
11
+			'description' => __('Relevant Payer Geography: The Netherlands', 'woocommerce-gateway-stripe'),
12 12
 			'type'        => 'title',
13 13
 		),
14 14
 		'guide' => array(
15
-			'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#ideal" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ),
15
+			'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#ideal" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'),
16 16
 			'type'        => 'title',
17 17
 		),
18 18
 		'activation' => array(
19
-			'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
+			'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'),
20 20
 			'type'   => 'title',
21 21
 		),
22 22
 		'enabled' => array(
23
-			'title'       => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ),
24
-			'label'       => __( 'Enable Stripe iDeal', 'woocommerce-gateway-stripe' ),
23
+			'title'       => __('Enable/Disable', 'woocommerce-gateway-stripe'),
24
+			'label'       => __('Enable Stripe iDeal', 'woocommerce-gateway-stripe'),
25 25
 			'type'        => 'checkbox',
26 26
 			'description' => '',
27 27
 			'default'     => 'no',
28 28
 		),
29 29
 		'title' => array(
30
-			'title'       => __( 'Title', 'woocommerce-gateway-stripe' ),
30
+			'title'       => __('Title', 'woocommerce-gateway-stripe'),
31 31
 			'type'        => 'text',
32
-			'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
33
-			'default'     => __( 'iDeal', 'woocommerce-gateway-stripe' ),
32
+			'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'),
33
+			'default'     => __('iDeal', 'woocommerce-gateway-stripe'),
34 34
 			'desc_tip'    => true,
35 35
 		),
36 36
 		'description' => array(
37
-			'title'       => __( 'Description', 'woocommerce-gateway-stripe' ),
37
+			'title'       => __('Description', 'woocommerce-gateway-stripe'),
38 38
 			'type'        => 'text',
39
-			'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
40
-			'default'     => __( 'You will be redirected to iDeal.', 'woocommerce-gateway-stripe' ),
39
+			'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'),
40
+			'default'     => __('You will be redirected to iDeal.', 'woocommerce-gateway-stripe'),
41 41
 			'desc_tip'    => true,
42 42
 		),
43 43
 		'webhook' => array(
44
-			'title'       => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ),
44
+			'title'       => __('Webhook Endpoints', 'woocommerce-gateway-stripe'),
45 45
 			'type'        => 'title',
46 46
 			/* translators: webhook URL */
47
-			'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ),
47
+			'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url),
48 48
 		),
49 49
 	)
50 50
 );
Please login to merge, or discard this patch.
includes/admin/stripe-sofort-settings.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,50 +1,50 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) {
2
+if ( ! defined('ABSPATH')) {
3 3
 	exit;
4 4
 }
5 5
 
6 6
 $webhook_url = WC_Stripe_Helper::get_webhook_url();
7 7
 
8
-return apply_filters( 'wc_stripe_sofort_settings',
8
+return apply_filters('wc_stripe_sofort_settings',
9 9
 	array(
10 10
 		'geo_target' => array(
11
-			'description' => __( 'Relevant Payer Geography: Germany, Austria', 'woocommerce-gateway-stripe' ),
11
+			'description' => __('Relevant Payer Geography: Germany, Austria', 'woocommerce-gateway-stripe'),
12 12
 			'type'        => 'title',
13 13
 		),
14 14
 		'guide' => array(
15
-			'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#sofort" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ),
15
+			'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#sofort" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'),
16 16
 			'type'        => 'title',
17 17
 		),
18 18
 		'activation' => array(
19
-			'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
+			'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'),
20 20
 			'type'   => 'title',
21 21
 		),
22 22
 		'enabled' => array(
23
-			'title'       => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ),
24
-			'label'       => __( 'Enable Stripe SOFORT', 'woocommerce-gateway-stripe' ),
23
+			'title'       => __('Enable/Disable', 'woocommerce-gateway-stripe'),
24
+			'label'       => __('Enable Stripe SOFORT', 'woocommerce-gateway-stripe'),
25 25
 			'type'        => 'checkbox',
26 26
 			'description' => '',
27 27
 			'default'     => 'no',
28 28
 		),
29 29
 		'title' => array(
30
-			'title'       => __( 'Title', 'woocommerce-gateway-stripe' ),
30
+			'title'       => __('Title', 'woocommerce-gateway-stripe'),
31 31
 			'type'        => 'text',
32
-			'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
33
-			'default'     => __( 'SOFORT', 'woocommerce-gateway-stripe' ),
32
+			'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'),
33
+			'default'     => __('SOFORT', 'woocommerce-gateway-stripe'),
34 34
 			'desc_tip'    => true,
35 35
 		),
36 36
 		'description' => array(
37
-			'title'       => __( 'Description', 'woocommerce-gateway-stripe' ),
37
+			'title'       => __('Description', 'woocommerce-gateway-stripe'),
38 38
 			'type'        => 'text',
39
-			'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
40
-			'default'     => __( 'You will be redirected to SOFORT.', 'woocommerce-gateway-stripe' ),
39
+			'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'),
40
+			'default'     => __('You will be redirected to SOFORT.', 'woocommerce-gateway-stripe'),
41 41
 			'desc_tip'    => true,
42 42
 		),
43 43
 		'webhook' => array(
44
-			'title'       => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ),
44
+			'title'       => __('Webhook Endpoints', 'woocommerce-gateway-stripe'),
45 45
 			'type'        => 'title',
46 46
 			/* translators: webhook URL */
47
-			'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ),
47
+			'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url),
48 48
 		),
49 49
 	)
50 50
 );
Please login to merge, or discard this patch.
includes/admin/stripe-giropay-settings.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,50 +1,50 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) {
2
+if ( ! defined('ABSPATH')) {
3 3
 	exit;
4 4
 }
5 5
 
6 6
 $webhook_url = WC_Stripe_Helper::get_webhook_url();
7 7
 
8
-return apply_filters( 'wc_stripe_giropay_settings',
8
+return apply_filters('wc_stripe_giropay_settings',
9 9
 	array(
10 10
 		'geo_target' => array(
11
-			'description' => __( 'Relevant Payer Geography: Germany', 'woocommerce-gateway-stripe' ),
11
+			'description' => __('Relevant Payer Geography: Germany', 'woocommerce-gateway-stripe'),
12 12
 			'type'        => 'title',
13 13
 		),
14 14
 		'guide' => array(
15
-			'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#giropay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ),
15
+			'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#giropay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'),
16 16
 			'type'        => 'title',
17 17
 		),
18 18
 		'activation' => array(
19
-			'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
+			'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'),
20 20
 			'type'   => 'title',
21 21
 		),
22 22
 		'enabled' => array(
23
-			'title'       => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ),
24
-			'label'       => __( 'Enable Stripe Giropay', 'woocommerce-gateway-stripe' ),
23
+			'title'       => __('Enable/Disable', 'woocommerce-gateway-stripe'),
24
+			'label'       => __('Enable Stripe Giropay', 'woocommerce-gateway-stripe'),
25 25
 			'type'        => 'checkbox',
26 26
 			'description' => '',
27 27
 			'default'     => 'no',
28 28
 		),
29 29
 		'title' => array(
30
-			'title'       => __( 'Title', 'woocommerce-gateway-stripe' ),
30
+			'title'       => __('Title', 'woocommerce-gateway-stripe'),
31 31
 			'type'        => 'text',
32
-			'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
33
-			'default'     => __( 'Giropay', 'woocommerce-gateway-stripe' ),
32
+			'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'),
33
+			'default'     => __('Giropay', 'woocommerce-gateway-stripe'),
34 34
 			'desc_tip'    => true,
35 35
 		),
36 36
 		'description' => array(
37
-			'title'       => __( 'Description', 'woocommerce-gateway-stripe' ),
37
+			'title'       => __('Description', 'woocommerce-gateway-stripe'),
38 38
 			'type'        => 'text',
39
-			'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
40
-			'default'     => __( 'You will be redirected to Giropay.', 'woocommerce-gateway-stripe' ),
39
+			'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'),
40
+			'default'     => __('You will be redirected to Giropay.', 'woocommerce-gateway-stripe'),
41 41
 			'desc_tip'    => true,
42 42
 		),
43 43
 		'webhook' => array(
44
-			'title'       => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ),
44
+			'title'       => __('Webhook Endpoints', 'woocommerce-gateway-stripe'),
45 45
 			'type'        => 'title',
46 46
 			/* translators: webhook URL */
47
-			'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ),
47
+			'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url),
48 48
 		),
49 49
 	)
50 50
 );
Please login to merge, or discard this patch.
includes/admin/stripe-sepa-settings.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,50 +1,50 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) {
2
+if ( ! defined('ABSPATH')) {
3 3
 	exit;
4 4
 }
5 5
 
6 6
 $webhook_url = WC_Stripe_Helper::get_webhook_url();
7 7
 
8
-return apply_filters( 'wc_stripe_sepa_settings',
8
+return apply_filters('wc_stripe_sepa_settings',
9 9
 	array(
10 10
 		'geo_target' => array(
11
-			'description' => __( 'Relevant Payer Geography: France, Germany, Spain, Belgium, Netherlands, Luxembourg, Italy, Portugal, Austria, Ireland', 'woocommerce-gateway-stripe' ),
11
+			'description' => __('Relevant Payer Geography: France, Germany, Spain, Belgium, Netherlands, Luxembourg, Italy, Portugal, Austria, Ireland', 'woocommerce-gateway-stripe'),
12 12
 			'type'        => 'title',
13 13
 		),
14 14
 		'guide' => array(
15
-			'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#sepa-direct-debit" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ),
15
+			'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#sepa-direct-debit" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'),
16 16
 			'type'        => 'title',
17 17
 		),
18 18
 		'activation' => array(
19
-			'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
+			'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'),
20 20
 			'type'   => 'title',
21 21
 		),
22 22
 		'enabled' => array(
23
-			'title'       => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ),
24
-			'label'       => __( 'Enable Stripe SEPA Direct Debit', 'woocommerce-gateway-stripe' ),
23
+			'title'       => __('Enable/Disable', 'woocommerce-gateway-stripe'),
24
+			'label'       => __('Enable Stripe SEPA Direct Debit', 'woocommerce-gateway-stripe'),
25 25
 			'type'        => 'checkbox',
26 26
 			'description' => '',
27 27
 			'default'     => 'no',
28 28
 		),
29 29
 		'title' => array(
30
-			'title'       => __( 'Title', 'woocommerce-gateway-stripe' ),
30
+			'title'       => __('Title', 'woocommerce-gateway-stripe'),
31 31
 			'type'        => 'text',
32
-			'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
33
-			'default'     => __( 'SEPA Direct Debit', 'woocommerce-gateway-stripe' ),
32
+			'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'),
33
+			'default'     => __('SEPA Direct Debit', 'woocommerce-gateway-stripe'),
34 34
 			'desc_tip'    => true,
35 35
 		),
36 36
 		'description' => array(
37
-			'title'       => __( 'Description', 'woocommerce-gateway-stripe' ),
37
+			'title'       => __('Description', 'woocommerce-gateway-stripe'),
38 38
 			'type'        => 'text',
39
-			'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
40
-			'default'     => __( 'Mandate Information.', 'woocommerce-gateway-stripe' ),
39
+			'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'),
40
+			'default'     => __('Mandate Information.', 'woocommerce-gateway-stripe'),
41 41
 			'desc_tip'    => true,
42 42
 		),
43 43
 		'webhook' => array(
44
-			'title'       => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ),
44
+			'title'       => __('Webhook Endpoints', 'woocommerce-gateway-stripe'),
45 45
 			'type'        => 'title',
46 46
 			/* translators: webhook URL */
47
-			'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ),
47
+			'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url),
48 48
 		),
49 49
 	)
50 50
 );
Please login to merge, or discard this patch.
includes/admin/stripe-settings.php 1 patch
Spacing   +80 added lines, -80 removed lines patch added patch discarded remove patch
@@ -1,207 +1,207 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) {
2
+if ( ! defined('ABSPATH')) {
3 3
 	exit;
4 4
 }
5 5
 
6 6
 $webhook_url = WC_Stripe_Helper::get_webhook_url();
7 7
 
8
-return apply_filters( 'wc_stripe_settings',
8
+return apply_filters('wc_stripe_settings',
9 9
 	array(
10 10
 		'enabled' => array(
11
-			'title'       => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ),
12
-			'label'       => __( 'Enable Stripe', 'woocommerce-gateway-stripe' ),
11
+			'title'       => __('Enable/Disable', 'woocommerce-gateway-stripe'),
12
+			'label'       => __('Enable Stripe', 'woocommerce-gateway-stripe'),
13 13
 			'type'        => 'checkbox',
14 14
 			'description' => '',
15 15
 			'default'     => 'no',
16 16
 		),
17 17
 		'title' => array(
18
-			'title'       => __( 'Title', 'woocommerce-gateway-stripe' ),
18
+			'title'       => __('Title', 'woocommerce-gateway-stripe'),
19 19
 			'type'        => 'text',
20
-			'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
21
-			'default'     => __( 'Credit Card (Stripe)', 'woocommerce-gateway-stripe' ),
20
+			'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'),
21
+			'default'     => __('Credit Card (Stripe)', 'woocommerce-gateway-stripe'),
22 22
 			'desc_tip'    => true,
23 23
 		),
24 24
 		'description' => array(
25
-			'title'       => __( 'Description', 'woocommerce-gateway-stripe' ),
25
+			'title'       => __('Description', 'woocommerce-gateway-stripe'),
26 26
 			'type'        => 'text',
27
-			'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
28
-			'default'     => __( 'Pay with your credit card via Stripe.', 'woocommerce-gateway-stripe' ),
27
+			'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'),
28
+			'default'     => __('Pay with your credit card via Stripe.', 'woocommerce-gateway-stripe'),
29 29
 			'desc_tip'    => true,
30 30
 		),
31 31
 		'webhook' => array(
32
-			'title'       => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ),
32
+			'title'       => __('Webhook Endpoints', 'woocommerce-gateway-stripe'),
33 33
 			'type'        => 'title',
34 34
 			/* translators: webhook URL */
35
-			'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ),
35
+			'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url),
36 36
 		),
37 37
 		'testmode' => array(
38
-			'title'       => __( 'Test mode', 'woocommerce-gateway-stripe' ),
39
-			'label'       => __( 'Enable Test Mode', 'woocommerce-gateway-stripe' ),
38
+			'title'       => __('Test mode', 'woocommerce-gateway-stripe'),
39
+			'label'       => __('Enable Test Mode', 'woocommerce-gateway-stripe'),
40 40
 			'type'        => 'checkbox',
41
-			'description' => __( 'Place the payment gateway in test mode using test API keys.', 'woocommerce-gateway-stripe' ),
41
+			'description' => __('Place the payment gateway in test mode using test API keys.', 'woocommerce-gateway-stripe'),
42 42
 			'default'     => 'yes',
43 43
 			'desc_tip'    => true,
44 44
 		),
45 45
 		'test_publishable_key' => array(
46
-			'title'       => __( 'Test Publishable Key', 'woocommerce-gateway-stripe' ),
46
+			'title'       => __('Test Publishable Key', 'woocommerce-gateway-stripe'),
47 47
 			'type'        => 'password',
48
-			'description' => __( 'Get your API keys from your stripe account.', 'woocommerce-gateway-stripe' ),
48
+			'description' => __('Get your API keys from your stripe account.', 'woocommerce-gateway-stripe'),
49 49
 			'default'     => '',
50 50
 			'desc_tip'    => true,
51 51
 		),
52 52
 		'test_secret_key' => array(
53
-			'title'       => __( 'Test Secret Key', 'woocommerce-gateway-stripe' ),
53
+			'title'       => __('Test Secret Key', 'woocommerce-gateway-stripe'),
54 54
 			'type'        => 'password',
55
-			'description' => __( 'Get your API keys from your stripe account.', 'woocommerce-gateway-stripe' ),
55
+			'description' => __('Get your API keys from your stripe account.', 'woocommerce-gateway-stripe'),
56 56
 			'default'     => '',
57 57
 			'desc_tip'    => true,
58 58
 		),
59 59
 		'publishable_key' => array(
60
-			'title'       => __( 'Live Publishable Key', 'woocommerce-gateway-stripe' ),
60
+			'title'       => __('Live Publishable Key', 'woocommerce-gateway-stripe'),
61 61
 			'type'        => 'password',
62
-			'description' => __( 'Get your API keys from your stripe account.', 'woocommerce-gateway-stripe' ),
62
+			'description' => __('Get your API keys from your stripe account.', 'woocommerce-gateway-stripe'),
63 63
 			'default'     => '',
64 64
 			'desc_tip'    => true,
65 65
 		),
66 66
 		'secret_key' => array(
67
-			'title'       => __( 'Live Secret Key', 'woocommerce-gateway-stripe' ),
67
+			'title'       => __('Live Secret Key', 'woocommerce-gateway-stripe'),
68 68
 			'type'        => 'password',
69
-			'description' => __( 'Get your API keys from your stripe account.', 'woocommerce-gateway-stripe' ),
69
+			'description' => __('Get your API keys from your stripe account.', 'woocommerce-gateway-stripe'),
70 70
 			'default'     => '',
71 71
 			'desc_tip'    => true,
72 72
 		),
73 73
 		'inline_cc_form' => array(
74
-			'title'       => __( 'Inline Credit Card Form', 'woocommerce-gateway-stripe' ),
74
+			'title'       => __('Inline Credit Card Form', 'woocommerce-gateway-stripe'),
75 75
 			'type'        => 'checkbox',
76
-			'description' => __( 'Choose the style you want to show for your credit card form. When unchecked, the credit card form will display separate credit card number field, expiry date field and cvc field.', 'woocommerce-gateway-stripe' ),
76
+			'description' => __('Choose the style you want to show for your credit card form. When unchecked, the credit card form will display separate credit card number field, expiry date field and cvc field.', 'woocommerce-gateway-stripe'),
77 77
 			'default'     => 'no',
78 78
 			'desc_tip'    => true,
79 79
 		),
80 80
 		'statement_descriptor' => array(
81
-			'title'       => __( 'Statement Descriptor', 'woocommerce-gateway-stripe' ),
81
+			'title'       => __('Statement Descriptor', 'woocommerce-gateway-stripe'),
82 82
 			'type'        => 'text',
83
-			'description' => __( 'This may be up to 22 characters. The statement description must contain at least one letter, may not include ><"\' characters, and will appear on your customer\'s statement in capital letters.' ),
83
+			'description' => __('This may be up to 22 characters. The statement description must contain at least one letter, may not include ><"\' characters, and will appear on your customer\'s statement in capital letters.'),
84 84
 			'default'     => '',
85 85
 			'desc_tip'    => true,
86 86
 		),
87 87
 		'capture' => array(
88
-			'title'       => __( 'Capture', 'woocommerce-gateway-stripe' ),
89
-			'label'       => __( 'Capture charge immediately', 'woocommerce-gateway-stripe' ),
88
+			'title'       => __('Capture', 'woocommerce-gateway-stripe'),
89
+			'label'       => __('Capture charge immediately', 'woocommerce-gateway-stripe'),
90 90
 			'type'        => 'checkbox',
91
-			'description' => __( 'Whether or not to immediately capture the charge. When unchecked, the charge issues an authorization and will need to be captured later. Uncaptured charges expire in 7 days.', 'woocommerce-gateway-stripe' ),
91
+			'description' => __('Whether or not to immediately capture the charge. When unchecked, the charge issues an authorization and will need to be captured later. Uncaptured charges expire in 7 days.', 'woocommerce-gateway-stripe'),
92 92
 			'default'     => 'yes',
93 93
 			'desc_tip'    => true,
94 94
 		),
95 95
 		'three_d_secure' => array(
96
-			'title'       => __( '3D Secure', 'woocommerce-gateway-stripe' ),
97
-			'label'       => __( 'Require 3D Secure when applicable', 'woocommerce-gateway-stripe' ),
96
+			'title'       => __('3D Secure', 'woocommerce-gateway-stripe'),
97
+			'label'       => __('Require 3D Secure when applicable', 'woocommerce-gateway-stripe'),
98 98
 			'type'        => 'checkbox',
99
-			'description' => __( 'Some payment methods have 3D Secure feature. This is an extra security layer for your store. Choose how to handle payments when 3D Secure is optional. Enabling would require customers to use 3D Secure when optional.', 'woocommerce-gateway-stripe' ),
99
+			'description' => __('Some payment methods have 3D Secure feature. This is an extra security layer for your store. Choose how to handle payments when 3D Secure is optional. Enabling would require customers to use 3D Secure when optional.', 'woocommerce-gateway-stripe'),
100 100
 			'default'     => 'no',
101 101
 			'desc_tip'    => true,
102 102
 		),
103 103
 		'stripe_checkout' => array(
104
-			'title'       => __( 'Stripe Checkout', 'woocommerce-gateway-stripe' ),
105
-			'label'       => __( 'Enable Stripe Checkout', 'woocommerce-gateway-stripe' ),
104
+			'title'       => __('Stripe Checkout', 'woocommerce-gateway-stripe'),
105
+			'label'       => __('Enable Stripe Checkout', 'woocommerce-gateway-stripe'),
106 106
 			'type'        => 'checkbox',
107
-			'description' => __( 'If enabled, this option shows a "pay" button and modal credit card form on the checkout, instead of credit card fields directly on the page.', 'woocommerce-gateway-stripe' ),
107
+			'description' => __('If enabled, this option shows a "pay" button and modal credit card form on the checkout, instead of credit card fields directly on the page.', 'woocommerce-gateway-stripe'),
108 108
 			'default'     => 'no',
109 109
 			'desc_tip'    => true,
110 110
 		),
111 111
 		'stripe_checkout_locale' => array(
112
-			'title'       => __( 'Stripe Checkout locale', 'woocommerce-gateway-stripe' ),
112
+			'title'       => __('Stripe Checkout locale', 'woocommerce-gateway-stripe'),
113 113
 			'type'        => 'select',
114 114
 			'class'       => 'wc-enhanced-select',
115
-			'description' => __( 'Language to display in Stripe Checkout modal. Specify Auto to display Checkout in the user\'s preferred language, if available. English will be used by default.', 'woocommerce-gateway-stripe' ),
115
+			'description' => __('Language to display in Stripe Checkout modal. Specify Auto to display Checkout in the user\'s preferred language, if available. English will be used by default.', 'woocommerce-gateway-stripe'),
116 116
 			'default'     => 'en',
117 117
 			'desc_tip'    => true,
118 118
 			'options'     => array(
119
-				'auto' => __( 'Auto', 'woocommerce-gateway-stripe' ),
120
-				'zh'   => __( 'Simplified Chinese', 'woocommerce-gateway-stripe' ),
121
-				'da'   => __( 'Danish', 'woocommerce-gateway-stripe' ),
122
-				'nl'   => __( 'Dutch', 'woocommerce-gateway-stripe' ),
123
-				'en'   => __( 'English', 'woocommerce-gateway-stripe' ),
124
-				'fi'   => __( 'Finnish', 'woocommerce-gateway-stripe' ),
125
-				'fr'   => __( 'French', 'woocommerce-gateway-stripe' ),
126
-				'de'   => __( 'German', 'woocommerce-gateway-stripe' ),
127
-				'it'   => __( 'Italian', 'woocommerce-gateway-stripe' ),
128
-				'ja'   => __( 'Japanese', 'woocommerce-gateway-stripe' ),
129
-				'no'   => __( 'Norwegian', 'woocommerce-gateway-stripe' ),
130
-				'es'   => __( 'Spanish', 'woocommerce-gateway-stripe' ),
131
-				'sv'   => __( 'Swedish', 'woocommerce-gateway-stripe' ),
119
+				'auto' => __('Auto', 'woocommerce-gateway-stripe'),
120
+				'zh'   => __('Simplified Chinese', 'woocommerce-gateway-stripe'),
121
+				'da'   => __('Danish', 'woocommerce-gateway-stripe'),
122
+				'nl'   => __('Dutch', 'woocommerce-gateway-stripe'),
123
+				'en'   => __('English', 'woocommerce-gateway-stripe'),
124
+				'fi'   => __('Finnish', 'woocommerce-gateway-stripe'),
125
+				'fr'   => __('French', 'woocommerce-gateway-stripe'),
126
+				'de'   => __('German', 'woocommerce-gateway-stripe'),
127
+				'it'   => __('Italian', 'woocommerce-gateway-stripe'),
128
+				'ja'   => __('Japanese', 'woocommerce-gateway-stripe'),
129
+				'no'   => __('Norwegian', 'woocommerce-gateway-stripe'),
130
+				'es'   => __('Spanish', 'woocommerce-gateway-stripe'),
131
+				'sv'   => __('Swedish', 'woocommerce-gateway-stripe'),
132 132
 			),
133 133
 		),
134 134
 		'stripe_bitcoin' => array(
135
-			'title'       => __( 'Bitcoin Currency', 'woocommerce-gateway-stripe' ),
136
-			'label'       => __( 'Enable Bitcoin Currency', 'woocommerce-gateway-stripe' ),
135
+			'title'       => __('Bitcoin Currency', 'woocommerce-gateway-stripe'),
136
+			'label'       => __('Enable Bitcoin Currency', 'woocommerce-gateway-stripe'),
137 137
 			'type'        => 'checkbox',
138
-			'description' => __( 'If enabled, an option to accept bitcoin will show on the checkout modal. Note: Stripe Checkout needs to be enabled and store currency must be set to USD.', 'woocommerce-gateway-stripe' ),
138
+			'description' => __('If enabled, an option to accept bitcoin will show on the checkout modal. Note: Stripe Checkout needs to be enabled and store currency must be set to USD.', 'woocommerce-gateway-stripe'),
139 139
 			'default'     => 'no',
140 140
 			'desc_tip'    => true,
141 141
 		),
142 142
 		'stripe_checkout_image' => array(
143
-			'title'       => __( 'Stripe Checkout Image', 'woocommerce-gateway-stripe' ),
144
-			'description' => __( 'Optionally enter the URL to a 128x128px image of your brand or product. e.g. <code>https://yoursite.com/wp-content/uploads/2013/09/yourimage.jpg</code>', 'woocommerce-gateway-stripe' ),
143
+			'title'       => __('Stripe Checkout Image', 'woocommerce-gateway-stripe'),
144
+			'description' => __('Optionally enter the URL to a 128x128px image of your brand or product. e.g. <code>https://yoursite.com/wp-content/uploads/2013/09/yourimage.jpg</code>', 'woocommerce-gateway-stripe'),
145 145
 			'type'        => 'text',
146 146
 			'default'     => '',
147 147
 			'desc_tip'    => true,
148 148
 		),
149 149
 		'payment_request' => array(
150
-			'title'       => __( 'Payment Request Buttons', 'woocommerce-gateway-stripe' ),
150
+			'title'       => __('Payment Request Buttons', 'woocommerce-gateway-stripe'),
151 151
 			/* translators: 1) br tag 2) opening anchor tag 3) closing anchor tag */
152
-			'label'       => sprintf( __( 'Enable Payment Request Buttons. (Apple Pay/Chrome Payment Request API) %1$sBy using Apple Pay, you agree to %2$s and %3$s\'s terms of service.', 'woocommerce-gateway-stripe' ), '<br />', '<a href="https://stripe.com/apple-pay/legal" target="_blank">Stripe</a>', '<a href="https://developer.apple.com/apple-pay/acceptable-use-guidelines-for-websites/" target="_blank">Apple</a>' ),
152
+			'label'       => sprintf(__('Enable Payment Request Buttons. (Apple Pay/Chrome Payment Request API) %1$sBy using Apple Pay, you agree to %2$s and %3$s\'s terms of service.', 'woocommerce-gateway-stripe'), '<br />', '<a href="https://stripe.com/apple-pay/legal" target="_blank">Stripe</a>', '<a href="https://developer.apple.com/apple-pay/acceptable-use-guidelines-for-websites/" target="_blank">Apple</a>'),
153 153
 			'type'        => 'checkbox',
154
-			'description' => __( 'If enabled, users will be able to pay using Apple Pay or Chrome Payment Request if supported by the browser.', 'woocommerce-gateway-stripe' ),
154
+			'description' => __('If enabled, users will be able to pay using Apple Pay or Chrome Payment Request if supported by the browser.', 'woocommerce-gateway-stripe'),
155 155
 			'default'     => 'yes',
156 156
 			'desc_tip'    => true,
157 157
 		),
158 158
 		'payment_request_button_type' => array(
159
-			'title'       => __( 'Payment Request Button Type', 'woocommerce-gateway-stripe' ),
160
-			'label'       => __( 'Button Type', 'woocommerce-gateway-stripe' ),
159
+			'title'       => __('Payment Request Button Type', 'woocommerce-gateway-stripe'),
160
+			'label'       => __('Button Type', 'woocommerce-gateway-stripe'),
161 161
 			'type'        => 'select',
162
-			'description' => __( 'Select the button type you would like to show.', 'woocommerce-gateway-stripe' ),
162
+			'description' => __('Select the button type you would like to show.', 'woocommerce-gateway-stripe'),
163 163
 			'default'     => 'buy',
164 164
 			'desc_tip'    => true,
165 165
 			'options'     => array(
166
-				'default' => __( 'Default', 'woocommerce-gateway-stripe' ),
167
-				'buy'     => __( 'Buy', 'woocommerce-gateway-stripe' ),
168
-				'donate'  => __( 'Donate', 'woocommerce-gateway-stripe' ),
166
+				'default' => __('Default', 'woocommerce-gateway-stripe'),
167
+				'buy'     => __('Buy', 'woocommerce-gateway-stripe'),
168
+				'donate'  => __('Donate', 'woocommerce-gateway-stripe'),
169 169
 			),
170 170
 		),
171 171
 		'payment_request_button_theme' => array(
172
-			'title'       => __( 'Payment Request Button Theme', 'woocommerce-gateway-stripe' ),
173
-			'label'       => __( 'Button Theme', 'woocommerce-gateway-stripe' ),
172
+			'title'       => __('Payment Request Button Theme', 'woocommerce-gateway-stripe'),
173
+			'label'       => __('Button Theme', 'woocommerce-gateway-stripe'),
174 174
 			'type'        => 'select',
175
-			'description' => __( 'Select the button theme you would like to show.', 'woocommerce-gateway-stripe' ),
175
+			'description' => __('Select the button theme you would like to show.', 'woocommerce-gateway-stripe'),
176 176
 			'default'     => 'default',
177 177
 			'desc_tip'    => true,
178 178
 			'options'     => array(
179
-				'dark'          => __( 'Dark', 'woocommerce-gateway-stripe' ),
180
-				'light'         => __( 'Light', 'woocommerce-gateway-stripe' ),
181
-				'light-outline' => __( 'Light-Outline', 'woocommerce-gateway-stripe' ),
179
+				'dark'          => __('Dark', 'woocommerce-gateway-stripe'),
180
+				'light'         => __('Light', 'woocommerce-gateway-stripe'),
181
+				'light-outline' => __('Light-Outline', 'woocommerce-gateway-stripe'),
182 182
 			),
183 183
 		),
184 184
 		'payment_request_button_height' => array(
185
-			'title'       => __( 'Payment Request Button Height', 'woocommerce-gateway-stripe' ),
186
-			'label'       => __( 'Button Height', 'woocommerce-gateway-stripe' ),
185
+			'title'       => __('Payment Request Button Height', 'woocommerce-gateway-stripe'),
186
+			'label'       => __('Button Height', 'woocommerce-gateway-stripe'),
187 187
 			'type'        => 'text',
188
-			'description' => __( 'Enter the height you would like the button to be in pixels. Width will always be 100%.', 'woocommerce-gateway-stripe' ),
188
+			'description' => __('Enter the height you would like the button to be in pixels. Width will always be 100%.', 'woocommerce-gateway-stripe'),
189 189
 			'default'     => '44',
190 190
 			'desc_tip'    => true,
191 191
 		),
192 192
 		'saved_cards' => array(
193
-			'title'       => __( 'Saved Cards', 'woocommerce-gateway-stripe' ),
194
-			'label'       => __( 'Enable Payment via Saved Cards', 'woocommerce-gateway-stripe' ),
193
+			'title'       => __('Saved Cards', 'woocommerce-gateway-stripe'),
194
+			'label'       => __('Enable Payment via Saved Cards', 'woocommerce-gateway-stripe'),
195 195
 			'type'        => 'checkbox',
196
-			'description' => __( 'If enabled, users will be able to pay with a saved card during checkout. Card details are saved on Stripe servers, not on your store.', 'woocommerce-gateway-stripe' ),
196
+			'description' => __('If enabled, users will be able to pay with a saved card during checkout. Card details are saved on Stripe servers, not on your store.', 'woocommerce-gateway-stripe'),
197 197
 			'default'     => 'no',
198 198
 			'desc_tip'    => true,
199 199
 		),
200 200
 		'logging' => array(
201
-			'title'       => __( 'Logging', 'woocommerce-gateway-stripe' ),
202
-			'label'       => __( 'Log debug messages', 'woocommerce-gateway-stripe' ),
201
+			'title'       => __('Logging', 'woocommerce-gateway-stripe'),
202
+			'label'       => __('Log debug messages', 'woocommerce-gateway-stripe'),
203 203
 			'type'        => 'checkbox',
204
-			'description' => __( 'Save debug messages to the WooCommerce System Status log.', 'woocommerce-gateway-stripe' ),
204
+			'description' => __('Save debug messages to the WooCommerce System Status log.', 'woocommerce-gateway-stripe'),
205 205
 			'default'     => 'no',
206 206
 			'desc_tip'    => true,
207 207
 		),
Please login to merge, or discard this patch.
includes/admin/stripe-bancontact-settings.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,50 +1,50 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) {
2
+if ( ! defined('ABSPATH')) {
3 3
 	exit;
4 4
 }
5 5
 
6 6
 $webhook_url = WC_Stripe_Helper::get_webhook_url();
7 7
 
8
-return apply_filters( 'wc_stripe_bancontact_settings',
8
+return apply_filters('wc_stripe_bancontact_settings',
9 9
 	array(
10 10
 		'geo_target' => array(
11
-			'description' => __( 'Relevant Payer Geography: Belgium', 'woocommerce-gateway-stripe' ),
11
+			'description' => __('Relevant Payer Geography: Belgium', 'woocommerce-gateway-stripe'),
12 12
 			'type'        => 'title',
13 13
 		),
14 14
 		'guide' => array(
15
-			'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#bancontact" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ),
15
+			'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#bancontact" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'),
16 16
 			'type'        => 'title',
17 17
 		),
18 18
 		'activation' => array(
19
-			'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
+			'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'),
20 20
 			'type'   => 'title',
21 21
 		),
22 22
 		'enabled' => array(
23
-			'title'       => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ),
24
-			'label'       => __( 'Enable Stripe Bancontact', 'woocommerce-gateway-stripe' ),
23
+			'title'       => __('Enable/Disable', 'woocommerce-gateway-stripe'),
24
+			'label'       => __('Enable Stripe Bancontact', 'woocommerce-gateway-stripe'),
25 25
 			'type'        => 'checkbox',
26 26
 			'description' => '',
27 27
 			'default'     => 'no',
28 28
 		),
29 29
 		'title' => array(
30
-			'title'       => __( 'Title', 'woocommerce-gateway-stripe' ),
30
+			'title'       => __('Title', 'woocommerce-gateway-stripe'),
31 31
 			'type'        => 'text',
32
-			'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
33
-			'default'     => __( 'Bancontact', 'woocommerce-gateway-stripe' ),
32
+			'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'),
33
+			'default'     => __('Bancontact', 'woocommerce-gateway-stripe'),
34 34
 			'desc_tip'    => true,
35 35
 		),
36 36
 		'description' => array(
37
-			'title'       => __( 'Description', 'woocommerce-gateway-stripe' ),
37
+			'title'       => __('Description', 'woocommerce-gateway-stripe'),
38 38
 			'type'        => 'text',
39
-			'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
40
-			'default'     => __( 'You will be redirected to Bancontact.', 'woocommerce-gateway-stripe' ),
39
+			'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'),
40
+			'default'     => __('You will be redirected to Bancontact.', 'woocommerce-gateway-stripe'),
41 41
 			'desc_tip'    => true,
42 42
 		),
43 43
 		'webhook' => array(
44
-			'title'       => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ),
44
+			'title'       => __('Webhook Endpoints', 'woocommerce-gateway-stripe'),
45 45
 			'type'        => 'title',
46 46
 			/* translators: webhook URL */
47
-			'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ),
47
+			'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url),
48 48
 		),
49 49
 	)
50 50
 );
Please login to merge, or discard this patch.
includes/admin/stripe-alipay-settings.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,50 +1,50 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) {
2
+if ( ! defined('ABSPATH')) {
3 3
 	exit;
4 4
 }
5 5
 
6 6
 $webhook_url = WC_Stripe_Helper::get_webhook_url();
7 7
 
8
-return apply_filters( 'wc_stripe_alipay_settings',
8
+return apply_filters('wc_stripe_alipay_settings',
9 9
 	array(
10 10
 		'geo_target' => array(
11
-			'description' => __( 'Relevant Payer Geography: China', 'woocommerce-gateway-stripe' ),
11
+			'description' => __('Relevant Payer Geography: China', 'woocommerce-gateway-stripe'),
12 12
 			'type'        => 'title',
13 13
 		),
14 14
 		'guide' => array(
15
-			'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#alipay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ),
15
+			'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#alipay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'),
16 16
 			'type'        => 'title',
17 17
 		),
18 18
 		'activation' => array(
19
-			'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
+			'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'),
20 20
 			'type'   => 'title',
21 21
 		),
22 22
 		'enabled' => array(
23
-			'title'       => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ),
24
-			'label'       => __( 'Enable Stripe Alipay', 'woocommerce-gateway-stripe' ),
23
+			'title'       => __('Enable/Disable', 'woocommerce-gateway-stripe'),
24
+			'label'       => __('Enable Stripe Alipay', 'woocommerce-gateway-stripe'),
25 25
 			'type'        => 'checkbox',
26 26
 			'description' => '',
27 27
 			'default'     => 'no',
28 28
 		),
29 29
 		'title' => array(
30
-			'title'       => __( 'Title', 'woocommerce-gateway-stripe' ),
30
+			'title'       => __('Title', 'woocommerce-gateway-stripe'),
31 31
 			'type'        => 'text',
32
-			'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
33
-			'default'     => __( 'Alipay', 'woocommerce-gateway-stripe' ),
32
+			'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'),
33
+			'default'     => __('Alipay', 'woocommerce-gateway-stripe'),
34 34
 			'desc_tip'    => true,
35 35
 		),
36 36
 		'description' => array(
37
-			'title'       => __( 'Description', 'woocommerce-gateway-stripe' ),
37
+			'title'       => __('Description', 'woocommerce-gateway-stripe'),
38 38
 			'type'        => 'text',
39
-			'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
40
-			'default'     => __( 'You will be redirected to Alipay.', 'woocommerce-gateway-stripe' ),
39
+			'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'),
40
+			'default'     => __('You will be redirected to Alipay.', 'woocommerce-gateway-stripe'),
41 41
 			'desc_tip'    => true,
42 42
 		),
43 43
 		'webhook' => array(
44
-			'title'       => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ),
44
+			'title'       => __('Webhook Endpoints', 'woocommerce-gateway-stripe'),
45 45
 			'type'        => 'title',
46 46
 			/* translators: webhook URL */
47
-			'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ),
47
+			'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;">&nbsp;&nbsp;%s&nbsp;&nbsp;</strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url),
48 48
 		),
49 49
 	)
50 50
 );
Please login to merge, or discard this patch.