Completed
Push — master ( 80c115...49c041 )
by Jeff
02:04
created
includes/admin/stripe-settings.php 1 patch
Spacing   +62 added lines, -62 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;
4 4
 }
5 5
 
@@ -7,176 +7,176 @@  discard block
 block discarded – undo
7 7
 	'wc_stripe_settings',
8 8
 	array(
9 9
 		'enabled'                       => array(
10
-			'title'       => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ),
11
-			'label'       => __( 'Enable Stripe', 'woocommerce-gateway-stripe' ),
10
+			'title'       => __('Enable/Disable', 'woocommerce-gateway-stripe'),
11
+			'label'       => __('Enable Stripe', 'woocommerce-gateway-stripe'),
12 12
 			'type'        => 'checkbox',
13 13
 			'description' => '',
14 14
 			'default'     => 'no',
15 15
 		),
16 16
 		'title'                         => array(
17
-			'title'       => __( 'Title', 'woocommerce-gateway-stripe' ),
17
+			'title'       => __('Title', 'woocommerce-gateway-stripe'),
18 18
 			'type'        => 'text',
19
-			'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
20
-			'default'     => __( 'Credit Card (Stripe)', 'woocommerce-gateway-stripe' ),
19
+			'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'),
20
+			'default'     => __('Credit Card (Stripe)', 'woocommerce-gateway-stripe'),
21 21
 			'desc_tip'    => true,
22 22
 		),
23 23
 		'description'                   => array(
24
-			'title'       => __( 'Description', 'woocommerce-gateway-stripe' ),
24
+			'title'       => __('Description', 'woocommerce-gateway-stripe'),
25 25
 			'type'        => 'text',
26
-			'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
27
-			'default'     => __( 'Pay with your credit card via Stripe.', 'woocommerce-gateway-stripe' ),
26
+			'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'),
27
+			'default'     => __('Pay with your credit card via Stripe.', 'woocommerce-gateway-stripe'),
28 28
 			'desc_tip'    => true,
29 29
 		),
30 30
 		'webhook'                       => array(
31
-			'title'       => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ),
31
+			'title'       => __('Webhook Endpoints', 'woocommerce-gateway-stripe'),
32 32
 			'type'        => 'title',
33 33
 			/* translators: webhook URL */
34 34
 			'description' => $this->display_admin_settings_webhook_description(),
35 35
 		),
36 36
 		'testmode'                      => array(
37
-			'title'       => __( 'Test mode', 'woocommerce-gateway-stripe' ),
38
-			'label'       => __( 'Enable Test Mode', 'woocommerce-gateway-stripe' ),
37
+			'title'       => __('Test mode', 'woocommerce-gateway-stripe'),
38
+			'label'       => __('Enable Test Mode', 'woocommerce-gateway-stripe'),
39 39
 			'type'        => 'checkbox',
40
-			'description' => __( 'Place the payment gateway in test mode using test API keys.', 'woocommerce-gateway-stripe' ),
40
+			'description' => __('Place the payment gateway in test mode using test API keys.', 'woocommerce-gateway-stripe'),
41 41
 			'default'     => 'yes',
42 42
 			'desc_tip'    => true,
43 43
 		),
44 44
 		'test_publishable_key'          => array(
45
-			'title'       => __( 'Test Publishable Key', 'woocommerce-gateway-stripe' ),
45
+			'title'       => __('Test Publishable Key', 'woocommerce-gateway-stripe'),
46 46
 			'type'        => 'password',
47
-			'description' => __( 'Get your API keys from your stripe account.', 'woocommerce-gateway-stripe' ),
47
+			'description' => __('Get your API keys from your stripe account.', 'woocommerce-gateway-stripe'),
48 48
 			'default'     => '',
49 49
 			'desc_tip'    => true,
50 50
 		),
51 51
 		'test_secret_key'               => array(
52
-			'title'       => __( 'Test Secret Key', 'woocommerce-gateway-stripe' ),
52
+			'title'       => __('Test Secret Key', 'woocommerce-gateway-stripe'),
53 53
 			'type'        => 'password',
54
-			'description' => __( 'Get your API keys from your stripe account.', 'woocommerce-gateway-stripe' ),
54
+			'description' => __('Get your API keys from your stripe account.', 'woocommerce-gateway-stripe'),
55 55
 			'default'     => '',
56 56
 			'desc_tip'    => true,
57 57
 		),
58 58
 		'publishable_key'               => array(
59
-			'title'       => __( 'Live Publishable Key', 'woocommerce-gateway-stripe' ),
59
+			'title'       => __('Live Publishable Key', 'woocommerce-gateway-stripe'),
60 60
 			'type'        => 'password',
61
-			'description' => __( 'Get your API keys from your stripe account.', 'woocommerce-gateway-stripe' ),
61
+			'description' => __('Get your API keys from your stripe account.', 'woocommerce-gateway-stripe'),
62 62
 			'default'     => '',
63 63
 			'desc_tip'    => true,
64 64
 		),
65 65
 		'secret_key'                    => array(
66
-			'title'       => __( 'Live Secret Key', 'woocommerce-gateway-stripe' ),
66
+			'title'       => __('Live Secret Key', 'woocommerce-gateway-stripe'),
67 67
 			'type'        => 'password',
68
-			'description' => __( 'Get your API keys from your stripe account.', 'woocommerce-gateway-stripe' ),
68
+			'description' => __('Get your API keys from your stripe account.', 'woocommerce-gateway-stripe'),
69 69
 			'default'     => '',
70 70
 			'desc_tip'    => true,
71 71
 		),
72 72
 		'inline_cc_form'                => array(
73
-			'title'       => __( 'Inline Credit Card Form', 'woocommerce-gateway-stripe' ),
73
+			'title'       => __('Inline Credit Card Form', 'woocommerce-gateway-stripe'),
74 74
 			'type'        => 'checkbox',
75
-			'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' ),
75
+			'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 76
 			'default'     => 'no',
77 77
 			'desc_tip'    => true,
78 78
 		),
79 79
 		'statement_descriptor'          => array(
80
-			'title'       => __( 'Statement Descriptor', 'woocommerce-gateway-stripe' ),
80
+			'title'       => __('Statement Descriptor', 'woocommerce-gateway-stripe'),
81 81
 			'type'        => 'text',
82
-			'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.', 'woocommerce-gateway-stripe' ),
82
+			'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.', 'woocommerce-gateway-stripe'),
83 83
 			'default'     => '',
84 84
 			'desc_tip'    => true,
85 85
 		),
86 86
 		'capture'                       => array(
87
-			'title'       => __( 'Capture', 'woocommerce-gateway-stripe' ),
88
-			'label'       => __( 'Capture charge immediately', 'woocommerce-gateway-stripe' ),
87
+			'title'       => __('Capture', 'woocommerce-gateway-stripe'),
88
+			'label'       => __('Capture charge immediately', 'woocommerce-gateway-stripe'),
89 89
 			'type'        => 'checkbox',
90
-			'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' ),
90
+			'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 91
 			'default'     => 'yes',
92 92
 			'desc_tip'    => true,
93 93
 		),
94 94
 		'three_d_secure'                => array(
95
-			'title'       => __( '3D Secure', 'woocommerce-gateway-stripe' ),
96
-			'label'       => __( 'Require 3D Secure when applicable', 'woocommerce-gateway-stripe' ),
95
+			'title'       => __('3D Secure', 'woocommerce-gateway-stripe'),
96
+			'label'       => __('Require 3D Secure when applicable', 'woocommerce-gateway-stripe'),
97 97
 			'type'        => 'checkbox',
98
-			'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 recommended. Enabling would require customers to use 3D Secure when recommended.', 'woocommerce-gateway-stripe' ),
98
+			'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 recommended. Enabling would require customers to use 3D Secure when recommended.', 'woocommerce-gateway-stripe'),
99 99
 			'default'     => 'yes',
100 100
 			'desc_tip'    => true,
101 101
 		),
102 102
 		'stripe_checkout'               => array(
103
-			'title'       => __( 'Stripe Modal Checkout', 'woocommerce-gateway-stripe' ),
104
-			'label'       => __( 'Enable Stripe Checkout', 'woocommerce-gateway-stripe' ),
103
+			'title'       => __('Stripe Modal Checkout', 'woocommerce-gateway-stripe'),
104
+			'label'       => __('Enable Stripe Checkout', 'woocommerce-gateway-stripe'),
105 105
 			'type'        => 'checkbox',
106
-			'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. We recommend you leave this disabled and use the embedded form as that is the preferred method.', 'woocommerce-gateway-stripe' ),
106
+			'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. We recommend you leave this disabled and use the embedded form as that is the preferred method.', 'woocommerce-gateway-stripe'),
107 107
 			'default'     => 'no',
108 108
 			'desc_tip'    => true,
109 109
 		),
110 110
 		'stripe_checkout_image'         => array(
111
-			'title'       => __( 'Stripe Checkout Image', 'woocommerce-gateway-stripe' ),
112
-			'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' ),
111
+			'title'       => __('Stripe Checkout Image', 'woocommerce-gateway-stripe'),
112
+			'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'),
113 113
 			'type'        => 'text',
114 114
 			'default'     => '',
115 115
 			'desc_tip'    => true,
116 116
 		),
117 117
 		'stripe_checkout_description'   => array(
118
-			'title'       => __( 'Stripe Checkout Description', 'woocommerce-gateway-stripe' ),
118
+			'title'       => __('Stripe Checkout Description', 'woocommerce-gateway-stripe'),
119 119
 			'type'        => 'text',
120
-			'description' => __( 'Shows a description of your store on Stripe Modal Checkout.', 'woocommerce-gateway-stripe' ),
120
+			'description' => __('Shows a description of your store on Stripe Modal Checkout.', 'woocommerce-gateway-stripe'),
121 121
 			'default'     => '',
122 122
 			'desc_tip'    => true,
123 123
 		),
124 124
 		'payment_request'               => array(
125
-			'title'       => __( 'Payment Request Buttons', 'woocommerce-gateway-stripe' ),
125
+			'title'       => __('Payment Request Buttons', 'woocommerce-gateway-stripe'),
126 126
 			/* translators: 1) br tag 2) opening anchor tag 3) closing anchor tag */
127
-			'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>' ),
127
+			'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>'),
128 128
 			'type'        => 'checkbox',
129
-			'description' => __( 'If enabled, users will be able to pay using Apple Pay or Chrome Payment Request if supported by the browser.', 'woocommerce-gateway-stripe' ),
129
+			'description' => __('If enabled, users will be able to pay using Apple Pay or Chrome Payment Request if supported by the browser.', 'woocommerce-gateway-stripe'),
130 130
 			'default'     => 'yes',
131 131
 			'desc_tip'    => true,
132 132
 		),
133 133
 		'payment_request_button_type'   => array(
134
-			'title'       => __( 'Payment Request Button Type', 'woocommerce-gateway-stripe' ),
135
-			'label'       => __( 'Button Type', 'woocommerce-gateway-stripe' ),
134
+			'title'       => __('Payment Request Button Type', 'woocommerce-gateway-stripe'),
135
+			'label'       => __('Button Type', 'woocommerce-gateway-stripe'),
136 136
 			'type'        => 'select',
137
-			'description' => __( 'Select the button type you would like to show.', 'woocommerce-gateway-stripe' ),
137
+			'description' => __('Select the button type you would like to show.', 'woocommerce-gateway-stripe'),
138 138
 			'default'     => 'buy',
139 139
 			'desc_tip'    => true,
140 140
 			'options'     => array(
141
-				'default' => __( 'Default', 'woocommerce-gateway-stripe' ),
142
-				'buy'     => __( 'Buy', 'woocommerce-gateway-stripe' ),
143
-				'donate'  => __( 'Donate', 'woocommerce-gateway-stripe' ),
141
+				'default' => __('Default', 'woocommerce-gateway-stripe'),
142
+				'buy'     => __('Buy', 'woocommerce-gateway-stripe'),
143
+				'donate'  => __('Donate', 'woocommerce-gateway-stripe'),
144 144
 			),
145 145
 		),
146 146
 		'payment_request_button_theme'  => array(
147
-			'title'       => __( 'Payment Request Button Theme', 'woocommerce-gateway-stripe' ),
148
-			'label'       => __( 'Button Theme', 'woocommerce-gateway-stripe' ),
147
+			'title'       => __('Payment Request Button Theme', 'woocommerce-gateway-stripe'),
148
+			'label'       => __('Button Theme', 'woocommerce-gateway-stripe'),
149 149
 			'type'        => 'select',
150
-			'description' => __( 'Select the button theme you would like to show.', 'woocommerce-gateway-stripe' ),
150
+			'description' => __('Select the button theme you would like to show.', 'woocommerce-gateway-stripe'),
151 151
 			'default'     => 'dark',
152 152
 			'desc_tip'    => true,
153 153
 			'options'     => array(
154
-				'dark'          => __( 'Dark', 'woocommerce-gateway-stripe' ),
155
-				'light'         => __( 'Light', 'woocommerce-gateway-stripe' ),
156
-				'light-outline' => __( 'Light-Outline', 'woocommerce-gateway-stripe' ),
154
+				'dark'          => __('Dark', 'woocommerce-gateway-stripe'),
155
+				'light'         => __('Light', 'woocommerce-gateway-stripe'),
156
+				'light-outline' => __('Light-Outline', 'woocommerce-gateway-stripe'),
157 157
 			),
158 158
 		),
159 159
 		'payment_request_button_height' => array(
160
-			'title'       => __( 'Payment Request Button Height', 'woocommerce-gateway-stripe' ),
161
-			'label'       => __( 'Button Height', 'woocommerce-gateway-stripe' ),
160
+			'title'       => __('Payment Request Button Height', 'woocommerce-gateway-stripe'),
161
+			'label'       => __('Button Height', 'woocommerce-gateway-stripe'),
162 162
 			'type'        => 'text',
163
-			'description' => __( 'Enter the height you would like the button to be in pixels. Width will always be 100%.', 'woocommerce-gateway-stripe' ),
163
+			'description' => __('Enter the height you would like the button to be in pixels. Width will always be 100%.', 'woocommerce-gateway-stripe'),
164 164
 			'default'     => '44',
165 165
 			'desc_tip'    => true,
166 166
 		),
167 167
 		'saved_cards'                   => array(
168
-			'title'       => __( 'Saved Cards', 'woocommerce-gateway-stripe' ),
169
-			'label'       => __( 'Enable Payment via Saved Cards', 'woocommerce-gateway-stripe' ),
168
+			'title'       => __('Saved Cards', 'woocommerce-gateway-stripe'),
169
+			'label'       => __('Enable Payment via Saved Cards', 'woocommerce-gateway-stripe'),
170 170
 			'type'        => 'checkbox',
171
-			'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' ),
171
+			'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'),
172 172
 			'default'     => 'yes',
173 173
 			'desc_tip'    => true,
174 174
 		),
175 175
 		'logging'                       => array(
176
-			'title'       => __( 'Logging', 'woocommerce-gateway-stripe' ),
177
-			'label'       => __( 'Log debug messages', 'woocommerce-gateway-stripe' ),
176
+			'title'       => __('Logging', 'woocommerce-gateway-stripe'),
177
+			'label'       => __('Log debug messages', 'woocommerce-gateway-stripe'),
178 178
 			'type'        => 'checkbox',
179
-			'description' => __( 'Save debug messages to the WooCommerce System Status log.', 'woocommerce-gateway-stripe' ),
179
+			'description' => __('Save debug messages to the WooCommerce System Status log.', 'woocommerce-gateway-stripe'),
180 180
 			'default'     => 'no',
181 181
 			'desc_tip'    => true,
182 182
 		),
Please login to merge, or discard this patch.