@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
2 | +if ( ! defined('ABSPATH')) { |
|
3 | 3 | exit; |
4 | 4 | } |
5 | 5 | |
@@ -7,109 +7,109 @@ discard block |
||
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' => 'text', |
47 | - 'description' => __( 'Get your API keys from your stripe account. Invalid values will be rejected. Only values starting with "pk_test_" will be saved.', 'woocommerce-gateway-stripe' ), |
|
47 | + 'description' => __('Get your API keys from your stripe account. Invalid values will be rejected. Only values starting with "pk_test_" will be saved.', '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. Invalid values will be rejected. Only values starting with "sk_test_" or "rk_test_" will be saved.', 'woocommerce-gateway-stripe' ), |
|
54 | + 'description' => __('Get your API keys from your stripe account. Invalid values will be rejected. Only values starting with "sk_test_" or "rk_test_" will be saved.', 'woocommerce-gateway-stripe'), |
|
55 | 55 | 'default' => '', |
56 | 56 | 'desc_tip' => true, |
57 | 57 | ), |
58 | 58 | 'test_webhook_secret' => array( |
59 | - 'title' => __( 'Test Webhook Secret', 'woocommerce-gateway-stripe' ), |
|
59 | + 'title' => __('Test Webhook Secret', 'woocommerce-gateway-stripe'), |
|
60 | 60 | 'type' => 'password', |
61 | - 'description' => __( 'Get your webhook signing secret from the webhooks section in your stripe account.', 'woocommerce-gateway-stripe' ), |
|
61 | + 'description' => __('Get your webhook signing secret from the webhooks section in your stripe account.', 'woocommerce-gateway-stripe'), |
|
62 | 62 | 'default' => '', |
63 | 63 | 'desc_tip' => true, |
64 | 64 | ), |
65 | 65 | 'publishable_key' => array( |
66 | - 'title' => __( 'Live Publishable Key', 'woocommerce-gateway-stripe' ), |
|
66 | + 'title' => __('Live Publishable Key', 'woocommerce-gateway-stripe'), |
|
67 | 67 | 'type' => 'text', |
68 | - 'description' => __( 'Get your API keys from your stripe account. Invalid values will be rejected. Only values starting with "pk_live_" will be saved.', 'woocommerce-gateway-stripe' ), |
|
68 | + 'description' => __('Get your API keys from your stripe account. Invalid values will be rejected. Only values starting with "pk_live_" will be saved.', 'woocommerce-gateway-stripe'), |
|
69 | 69 | 'default' => '', |
70 | 70 | 'desc_tip' => true, |
71 | 71 | ), |
72 | 72 | 'secret_key' => array( |
73 | - 'title' => __( 'Live Secret Key', 'woocommerce-gateway-stripe' ), |
|
73 | + 'title' => __('Live Secret Key', 'woocommerce-gateway-stripe'), |
|
74 | 74 | 'type' => 'password', |
75 | - 'description' => __( 'Get your API keys from your stripe account. Invalid values will be rejected. Only values starting with "sk_live_" or "rk_live_" will be saved.', 'woocommerce-gateway-stripe' ), |
|
75 | + 'description' => __('Get your API keys from your stripe account. Invalid values will be rejected. Only values starting with "sk_live_" or "rk_live_" will be saved.', 'woocommerce-gateway-stripe'), |
|
76 | 76 | 'default' => '', |
77 | 77 | 'desc_tip' => true, |
78 | 78 | ), |
79 | 79 | 'webhook_secret' => array( |
80 | - 'title' => __( 'Webhook Secret', 'woocommerce-gateway-stripe' ), |
|
80 | + 'title' => __('Webhook Secret', 'woocommerce-gateway-stripe'), |
|
81 | 81 | 'type' => 'password', |
82 | - 'description' => __( 'Get your webhook signing secret from the webhooks section in your stripe account.', 'woocommerce-gateway-stripe' ), |
|
82 | + 'description' => __('Get your webhook signing secret from the webhooks section in your stripe account.', 'woocommerce-gateway-stripe'), |
|
83 | 83 | 'default' => '', |
84 | 84 | 'desc_tip' => true, |
85 | 85 | ), |
86 | 86 | 'inline_cc_form' => array( |
87 | - 'title' => __( 'Inline Credit Card Form', 'woocommerce-gateway-stripe' ), |
|
87 | + 'title' => __('Inline Credit Card Form', 'woocommerce-gateway-stripe'), |
|
88 | 88 | 'type' => 'checkbox', |
89 | - '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' ), |
|
89 | + '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'), |
|
90 | 90 | 'default' => 'no', |
91 | 91 | 'desc_tip' => true, |
92 | 92 | ), |
93 | 93 | 'statement_descriptor' => array( |
94 | - 'title' => __( 'Statement Descriptor', 'woocommerce-gateway-stripe' ), |
|
94 | + 'title' => __('Statement Descriptor', 'woocommerce-gateway-stripe'), |
|
95 | 95 | 'type' => 'text', |
96 | - 'description' => __( 'Statement descriptors are limited to 22 characters, cannot use the special characters >, <, ", \, \', *, and must not consist solely of numbers. This will appear on your customer\'s statement in capital letters.', 'woocommerce-gateway-stripe' ), |
|
96 | + 'description' => __('Statement descriptors are limited to 22 characters, cannot use the special characters >, <, ", \, \', *, and must not consist solely of numbers. This will appear on your customer\'s statement in capital letters.', 'woocommerce-gateway-stripe'), |
|
97 | 97 | 'default' => '', |
98 | 98 | 'desc_tip' => true, |
99 | 99 | ), |
100 | 100 | 'capture' => array( |
101 | - 'title' => __( 'Capture', 'woocommerce-gateway-stripe' ), |
|
102 | - 'label' => __( 'Capture charge immediately', 'woocommerce-gateway-stripe' ), |
|
101 | + 'title' => __('Capture', 'woocommerce-gateway-stripe'), |
|
102 | + 'label' => __('Capture charge immediately', 'woocommerce-gateway-stripe'), |
|
103 | 103 | 'type' => 'checkbox', |
104 | - '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' ), |
|
104 | + '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'), |
|
105 | 105 | 'default' => 'yes', |
106 | 106 | 'desc_tip' => true, |
107 | 107 | ), |
108 | 108 | 'payment_request' => array( |
109 | - 'title' => __( 'Payment Request Buttons', 'woocommerce-gateway-stripe' ), |
|
109 | + 'title' => __('Payment Request Buttons', 'woocommerce-gateway-stripe'), |
|
110 | 110 | 'label' => sprintf( |
111 | 111 | /* translators: 1) br tag 2) Stripe anchor tag 3) Apple anchor tag 4) Stripe dashboard opening anchor tag 5) Stripe dashboard closing anchor tag */ |
112 | - __( 'Enable Payment Request Buttons. (Apple Pay/Google Pay) %1$sBy using Apple Pay, you agree to %2$s and %3$s\'s terms of service. (Apple Pay domain verification is performed automatically; configuration can be found on the %4$sStripe dashboard%5$s.)', 'woocommerce-gateway-stripe' ), |
|
112 | + __('Enable Payment Request Buttons. (Apple Pay/Google Pay) %1$sBy using Apple Pay, you agree to %2$s and %3$s\'s terms of service. (Apple Pay domain verification is performed automatically; configuration can be found on the %4$sStripe dashboard%5$s.)', 'woocommerce-gateway-stripe'), |
|
113 | 113 | '<br />', |
114 | 114 | '<a href="https://stripe.com/apple-pay/legal" target="_blank">Stripe</a>', |
115 | 115 | '<a href="https://developer.apple.com/apple-pay/acceptable-use-guidelines-for-websites/" target="_blank">Apple</a>', |
@@ -117,79 +117,79 @@ discard block |
||
117 | 117 | '</a>' |
118 | 118 | ), |
119 | 119 | 'type' => 'checkbox', |
120 | - 'description' => __( 'If enabled, users will be able to pay using Apple Pay or Chrome Payment Request if supported by the browser.', 'woocommerce-gateway-stripe' ), |
|
120 | + 'description' => __('If enabled, users will be able to pay using Apple Pay or Chrome Payment Request if supported by the browser.', 'woocommerce-gateway-stripe'), |
|
121 | 121 | 'default' => 'yes', |
122 | 122 | 'desc_tip' => true, |
123 | 123 | ), |
124 | 124 | 'payment_request_button_type' => array( |
125 | - 'title' => __( 'Payment Request Button Type', 'woocommerce-gateway-stripe' ), |
|
126 | - 'label' => __( 'Button Type', 'woocommerce-gateway-stripe' ), |
|
125 | + 'title' => __('Payment Request Button Type', 'woocommerce-gateway-stripe'), |
|
126 | + 'label' => __('Button Type', 'woocommerce-gateway-stripe'), |
|
127 | 127 | 'type' => 'select', |
128 | - 'description' => __( 'Select the button type you would like to show.', 'woocommerce-gateway-stripe' ), |
|
128 | + 'description' => __('Select the button type you would like to show.', 'woocommerce-gateway-stripe'), |
|
129 | 129 | 'default' => 'buy', |
130 | 130 | 'desc_tip' => true, |
131 | 131 | 'options' => array( |
132 | - 'default' => __( 'Default', 'woocommerce-gateway-stripe' ), |
|
133 | - 'buy' => __( 'Buy', 'woocommerce-gateway-stripe' ), |
|
134 | - 'donate' => __( 'Donate', 'woocommerce-gateway-stripe' ), |
|
135 | - 'branded' => __( 'Branded', 'woocommerce-gateway-stripe' ), |
|
136 | - 'custom' => __( 'Custom', 'woocommerce-gateway-stripe' ), |
|
132 | + 'default' => __('Default', 'woocommerce-gateway-stripe'), |
|
133 | + 'buy' => __('Buy', 'woocommerce-gateway-stripe'), |
|
134 | + 'donate' => __('Donate', 'woocommerce-gateway-stripe'), |
|
135 | + 'branded' => __('Branded', 'woocommerce-gateway-stripe'), |
|
136 | + 'custom' => __('Custom', 'woocommerce-gateway-stripe'), |
|
137 | 137 | ), |
138 | 138 | ), |
139 | 139 | 'payment_request_button_theme' => array( |
140 | - 'title' => __( 'Payment Request Button Theme', 'woocommerce-gateway-stripe' ), |
|
141 | - 'label' => __( 'Button Theme', 'woocommerce-gateway-stripe' ), |
|
140 | + 'title' => __('Payment Request Button Theme', 'woocommerce-gateway-stripe'), |
|
141 | + 'label' => __('Button Theme', 'woocommerce-gateway-stripe'), |
|
142 | 142 | 'type' => 'select', |
143 | - 'description' => __( 'Select the button theme you would like to show.', 'woocommerce-gateway-stripe' ), |
|
143 | + 'description' => __('Select the button theme you would like to show.', 'woocommerce-gateway-stripe'), |
|
144 | 144 | 'default' => 'dark', |
145 | 145 | 'desc_tip' => true, |
146 | 146 | 'options' => array( |
147 | - 'dark' => __( 'Dark', 'woocommerce-gateway-stripe' ), |
|
148 | - 'light' => __( 'Light', 'woocommerce-gateway-stripe' ), |
|
149 | - 'light-outline' => __( 'Light-Outline', 'woocommerce-gateway-stripe' ), |
|
147 | + 'dark' => __('Dark', 'woocommerce-gateway-stripe'), |
|
148 | + 'light' => __('Light', 'woocommerce-gateway-stripe'), |
|
149 | + 'light-outline' => __('Light-Outline', 'woocommerce-gateway-stripe'), |
|
150 | 150 | ), |
151 | 151 | ), |
152 | 152 | 'payment_request_button_height' => array( |
153 | - 'title' => __( 'Payment Request Button Height', 'woocommerce-gateway-stripe' ), |
|
154 | - 'label' => __( 'Button Height', 'woocommerce-gateway-stripe' ), |
|
153 | + 'title' => __('Payment Request Button Height', 'woocommerce-gateway-stripe'), |
|
154 | + 'label' => __('Button Height', 'woocommerce-gateway-stripe'), |
|
155 | 155 | 'type' => 'text', |
156 | - 'description' => __( 'Enter the height you would like the button to be in pixels. Width will always be 100%.', 'woocommerce-gateway-stripe' ), |
|
156 | + 'description' => __('Enter the height you would like the button to be in pixels. Width will always be 100%.', 'woocommerce-gateway-stripe'), |
|
157 | 157 | 'default' => '44', |
158 | 158 | 'desc_tip' => true, |
159 | 159 | ), |
160 | 160 | 'payment_request_button_label' => array( |
161 | - 'title' => __( 'Payment Request Button Label', 'woocommerce-gateway-stripe' ), |
|
162 | - 'label' => __( 'Button Label', 'woocommerce-gateway-stripe' ), |
|
161 | + 'title' => __('Payment Request Button Label', 'woocommerce-gateway-stripe'), |
|
162 | + 'label' => __('Button Label', 'woocommerce-gateway-stripe'), |
|
163 | 163 | 'type' => 'text', |
164 | - 'description' => __( 'Enter the custom text you would like the button to have.', 'woocommerce-gateway-stripe' ), |
|
165 | - 'default' => __( 'Buy now', 'woocommerce-gateway-stripe' ), |
|
164 | + 'description' => __('Enter the custom text you would like the button to have.', 'woocommerce-gateway-stripe'), |
|
165 | + 'default' => __('Buy now', 'woocommerce-gateway-stripe'), |
|
166 | 166 | 'desc_tip' => true, |
167 | 167 | ), |
168 | 168 | 'payment_request_button_branded_type' => array( |
169 | - 'title' => __( 'Payment Request Branded Button Label Format', 'woocommerce-gateway-stripe' ), |
|
170 | - 'label' => __( 'Branded Button Label Format', 'woocommerce-gateway-stripe' ), |
|
169 | + 'title' => __('Payment Request Branded Button Label Format', 'woocommerce-gateway-stripe'), |
|
170 | + 'label' => __('Branded Button Label Format', 'woocommerce-gateway-stripe'), |
|
171 | 171 | 'type' => 'select', |
172 | - 'description' => __( 'Select the branded button label format.', 'woocommerce-gateway-stripe' ), |
|
172 | + 'description' => __('Select the branded button label format.', 'woocommerce-gateway-stripe'), |
|
173 | 173 | 'default' => 'long', |
174 | 174 | 'desc_tip' => true, |
175 | 175 | 'options' => array( |
176 | - 'short' => __( 'Logo only', 'woocommerce-gateway-stripe' ), |
|
177 | - 'long' => __( 'Text and logo', 'woocommerce-gateway-stripe' ), |
|
176 | + 'short' => __('Logo only', 'woocommerce-gateway-stripe'), |
|
177 | + 'long' => __('Text and logo', 'woocommerce-gateway-stripe'), |
|
178 | 178 | ), |
179 | 179 | ), |
180 | 180 | 'saved_cards' => array( |
181 | - 'title' => __( 'Saved Cards', 'woocommerce-gateway-stripe' ), |
|
182 | - 'label' => __( 'Enable Payment via Saved Cards', 'woocommerce-gateway-stripe' ), |
|
181 | + 'title' => __('Saved Cards', 'woocommerce-gateway-stripe'), |
|
182 | + 'label' => __('Enable Payment via Saved Cards', 'woocommerce-gateway-stripe'), |
|
183 | 183 | 'type' => 'checkbox', |
184 | - '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' ), |
|
184 | + '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'), |
|
185 | 185 | 'default' => 'yes', |
186 | 186 | 'desc_tip' => true, |
187 | 187 | ), |
188 | 188 | 'logging' => array( |
189 | - 'title' => __( 'Logging', 'woocommerce-gateway-stripe' ), |
|
190 | - 'label' => __( 'Log debug messages', 'woocommerce-gateway-stripe' ), |
|
189 | + 'title' => __('Logging', 'woocommerce-gateway-stripe'), |
|
190 | + 'label' => __('Log debug messages', 'woocommerce-gateway-stripe'), |
|
191 | 191 | 'type' => 'checkbox', |
192 | - 'description' => __( 'Save debug messages to the WooCommerce System Status log.', 'woocommerce-gateway-stripe' ), |
|
192 | + 'description' => __('Save debug messages to the WooCommerce System Status log.', 'woocommerce-gateway-stripe'), |
|
193 | 193 | 'default' => 'no', |
194 | 194 | 'desc_tip' => true, |
195 | 195 | ), |