Changeset 2680327
- Timestamp:
- 02/17/2022 12:44:45 AM (4 years ago)
- Location:
- woocommerce-gateway-stripe
- Files:
-
- 26 edited
- 1 copied
-
tags/6.2.0 (copied) (copied from woocommerce-gateway-stripe/trunk)
-
tags/6.2.0/build/payment_gateways.asset.php (modified) (1 diff)
-
tags/6.2.0/build/payment_requests_settings.asset.php (modified) (1 diff)
-
tags/6.2.0/build/upe_settings.asset.php (modified) (1 diff)
-
tags/6.2.0/changelog.txt (modified) (1 diff)
-
tags/6.2.0/includes/admin/class-wc-rest-stripe-account-controller.php (modified) (3 diffs)
-
tags/6.2.0/includes/admin/class-wc-rest-stripe-account-keys-controller.php (modified) (2 diffs)
-
tags/6.2.0/includes/class-wc-gateway-stripe.php (modified) (2 diffs)
-
tags/6.2.0/includes/class-wc-stripe-intent-controller.php (modified) (1 diff)
-
tags/6.2.0/includes/connect/class-wc-stripe-connect.php (modified) (1 diff)
-
tags/6.2.0/includes/payment-methods/class-wc-stripe-upe-payment-gateway.php (modified) (1 diff)
-
tags/6.2.0/languages/woocommerce-gateway-stripe.pot (modified) (16 diffs)
-
tags/6.2.0/readme.txt (modified) (2 diffs)
-
tags/6.2.0/woocommerce-gateway-stripe.php (modified) (3 diffs)
-
trunk/build/payment_gateways.asset.php (modified) (1 diff)
-
trunk/build/payment_requests_settings.asset.php (modified) (1 diff)
-
trunk/build/upe_settings.asset.php (modified) (1 diff)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/includes/admin/class-wc-rest-stripe-account-controller.php (modified) (3 diffs)
-
trunk/includes/admin/class-wc-rest-stripe-account-keys-controller.php (modified) (2 diffs)
-
trunk/includes/class-wc-gateway-stripe.php (modified) (2 diffs)
-
trunk/includes/class-wc-stripe-intent-controller.php (modified) (1 diff)
-
trunk/includes/connect/class-wc-stripe-connect.php (modified) (1 diff)
-
trunk/includes/payment-methods/class-wc-stripe-upe-payment-gateway.php (modified) (1 diff)
-
trunk/languages/woocommerce-gateway-stripe.pot (modified) (16 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/woocommerce-gateway-stripe.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-gateway-stripe/tags/6.2.0/build/payment_gateways.asset.php
r2666455 r2680327 1 <?php return array('dependencies' => array('react', 'react-dom', 'wc-navigation', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => ' 8cec8ac706a3066dab1bf95c3ea3f8f7');1 <?php return array('dependencies' => array('react', 'react-dom', 'wc-navigation', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'b4b8e86ff3d285f29625e368e9c51bbf'); -
woocommerce-gateway-stripe/tags/6.2.0/build/payment_requests_settings.asset.php
r2666455 r2680327 1 <?php return array('dependencies' => array('react', 'react-dom', 'wc-navigation', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => ' c560474cde9517938d81521a40d66d0f');1 <?php return array('dependencies' => array('react', 'react-dom', 'wc-navigation', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'd04f553a7fb5521ec266f6ef95e914d1'); -
woocommerce-gateway-stripe/tags/6.2.0/build/upe_settings.asset.php
r2666455 r2680327 1 <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wc-currency', 'wc-navigation', 'wc-store-data', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => ' 67278aebfc9b1c6347177f28be1734b2');1 <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wc-currency', 'wc-navigation', 'wc-store-data', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '517c9b8a15dfa040788de3e3faf4309b'); -
woocommerce-gateway-stripe/tags/6.2.0/changelog.txt
r2666455 r2680327 1 1 *** Changelog *** 2 3 = 6.2.0 - 2022-02-17 = 4 * Add - Add onboarding payment gateway setup methods. 5 * Fix - Enable Stripe payment method after connecting account. 6 * Fix - Missing statement descriptor in account summary API when not set in Stripe. 2 7 3 8 = 6.1.0 - 2022-01-26 = -
woocommerce-gateway-stripe/tags/6.2.0/includes/admin/class-wc-rest-stripe-account-controller.php
r2666455 r2680327 26 26 private $account; 27 27 28 public function __construct( WC_Stripe_Account $account ) { 28 /** 29 * Stripe payment gateway. 30 * 31 * @var WC_Gateway_Stripe 32 */ 33 private $gateway; 34 35 public function __construct( WC_Gateway_Stripe $gateway, WC_Stripe_Account $account ) { 36 $this->gateway = $gateway; 29 37 $this->account = $account; 30 38 } … … 99 107 $account = $this->account->get_cached_account_data(); 100 108 109 // Use statement descriptor from settings, falling back to Stripe account statement descriptor if needed. 110 $statement_descriptor = WC_Stripe_Helper::clean_statement_descriptor( $this->gateway->get_option( 'statement_descriptor' ) ); 111 if ( empty( $statement_descriptor ) ) { 112 $statement_descriptor = $account['settings']['payments']['statement_descriptor']; 113 } 114 if ( empty( $statement_descriptor ) ) { 115 $statement_descriptor = null; 116 } 117 101 118 return new WP_REST_Response( 102 119 [ … … 105 122 'current_deadline' => $account['requirements']['current_deadline'] ?? null, 106 123 'status' => $this->account->get_account_status(), 107 'statement_descriptor' => $ account['settings']['payments']['statement_descriptor'] ?? '',124 'statement_descriptor' => $statement_descriptor, 108 125 'store_currencies' => [ 109 126 'default' => $account['default_currency'] ?? get_woocommerce_currency(), -
woocommerce-gateway-stripe/tags/6.2.0/includes/admin/class-wc-rest-stripe-account-keys-controller.php
r2653262 r2680327 194 194 195 195 // If all keys were empty, then is a new account; we need to set the test/live mode. 196 $new_account = ! trim( $settings['publishable_key'] ) && ! trim( $settings['secret_key'] ) && ! trim( $settings['test_publishable_key'] ) && ! trim( $settings['test_secret_key'] ); 196 $new_account = ! trim( $settings['publishable_key'] ) 197 && ! trim( $settings['secret_key'] ) 198 && ! trim( $settings['test_publishable_key'] ) 199 && ! trim( $settings['test_secret_key'] ); 200 // If all new keys are empty, then account is being disconnected. We should disable the payment gateway. 201 $is_deleting_account = ! trim( $publishable_key ) 202 && ! trim( $secret_key ) 203 && ! trim( $test_publishable_key ) 204 && ! trim( $test_secret_key ); 197 205 198 206 $settings['publishable_key'] = is_null( $publishable_key ) ? $settings['publishable_key'] : $publishable_key; … … 204 212 205 213 if ( $new_account ) { 214 $settings['enabled'] = 'yes'; 206 215 if ( trim( $settings['publishable_key'] ) && trim( $settings['secret_key'] ) ) { 207 216 $settings['testmode'] = 'no'; 208 } else if ( trim( $settings['test_publishable_key'] ) && trim( $settings['test_secret_key'] ) ) {217 } elseif ( trim( $settings['test_publishable_key'] ) && trim( $settings['test_secret_key'] ) ) { 209 218 $settings['testmode'] = 'yes'; 210 219 } 220 } elseif ( $is_deleting_account ) { 221 $settings['enabled'] = 'no'; 211 222 } 212 223 -
woocommerce-gateway-stripe/tags/6.2.0/includes/class-wc-gateway-stripe.php
r2666455 r2680327 124 124 add_filter( 'woocommerce_get_checkout_payment_url', [ $this, 'get_checkout_payment_url' ], 10, 2 ); 125 125 add_filter( 'woocommerce_settings_api_sanitized_fields_' . $this->id, [ $this, 'settings_api_sanitized_fields' ] ); 126 add_filter( 'woocommerce_gateway_' . $this->id . '_settings_values', [ $this, 'update_onboarding_settings' ] ); 126 127 127 128 // Note: display error is in the parent class. … … 1163 1164 return $value; 1164 1165 } 1166 1167 /** 1168 * Get required setting keys for setup. 1169 * 1170 * @return array Array of setting keys used for setup. 1171 */ 1172 public function get_required_settings_keys() { 1173 return [ 'publishable_key', 'secret_key' ]; 1174 } 1175 1176 /** 1177 * Get the connection URL. 1178 * 1179 * @return string Connection URL. 1180 */ 1181 public function get_connection_url( $return_url = '' ) { 1182 $api = new WC_Stripe_Connect_API(); 1183 $connect = new WC_Stripe_Connect( $api ); 1184 1185 $url = $connect->get_oauth_url( $return_url ); 1186 1187 return is_wp_error( $url ) ? null : $url; 1188 } 1189 1190 /** 1191 * Get help text to display during quick setup. 1192 * 1193 * @return string 1194 */ 1195 public function get_setup_help_text() { 1196 return sprintf( 1197 /* translators: %1$s Link to Stripe API details, %2$s Link to register a Stripe account */ 1198 __( 'Your API details can be obtained from your <a href="%1$s">Stripe account</a>. Don’t have a Stripe account? <a href="%2$s">Create one.</a>', 'woocommerce-gateway-stripe' ), 1199 'https://dashboard.stripe.com/apikeys', 1200 'https://dashboard.stripe.com/register' 1201 ); 1202 } 1203 1204 /** 1205 * Determine if the gateway still requires setup. 1206 * 1207 * @return bool 1208 */ 1209 public function needs_setup() { 1210 return ! $this->get_option( 'publishable_key' ) || ! $this->get_option( 'secret_key' ); 1211 } 1212 1213 /** 1214 * Updates the test mode based on keys provided when setting up the gateway via onboarding. 1215 * 1216 * @return array 1217 */ 1218 public function update_onboarding_settings( $settings ) { 1219 if ( ! isset( $_SERVER['HTTP_REFERER'] ) ) { 1220 return; 1221 } 1222 1223 parse_str( wp_parse_url( $_SERVER['HTTP_REFERER'], PHP_URL_QUERY ), $queries ); // phpcs:ignore sanitization ok. 1224 1225 // Determine if merchant is onboarding (page='wc-admin' and task='payments'). 1226 if ( 1227 ! isset( $queries ) || 1228 ! isset( $queries['page'] ) || 1229 ! isset( $queries['task'] ) || 1230 'wc-admin' !== $queries['page'] || 1231 'payments' !== $queries['task'] 1232 ) { 1233 return; 1234 } 1235 1236 if ( ! empty( $settings['publishable_key'] ) && ! empty( $settings['secret_key'] ) ) { 1237 if ( strpos( $settings['publishable_key'], 'pk_test_' ) === 0 || strpos( $settings['secret_key'], 'sk_test_' ) === 0 ) { 1238 $settings['test_publishable_key'] = $settings['publishable_key']; 1239 $settings['test_secret_key'] = $settings['secret_key']; 1240 unset( $settings['publishable_key'] ); 1241 unset( $settings['secret_key'] ); 1242 $settings['testmode'] = 'yes'; 1243 } else { 1244 $settings['testmode'] = 'no'; 1245 } 1246 } 1247 1248 return $settings; 1249 } 1165 1250 } -
woocommerce-gateway-stripe/tags/6.2.0/includes/class-wc-stripe-intent-controller.php
r2642120 r2680327 408 408 'currency' => strtolower( $currency ), 409 409 'metadata' => $gateway->get_metadata_from_order( $order ), 410 'description' => __( 'Stripe - Order', 'woocommerce-gateway-stripe' ) . ' ' . $order->get_id(), 410 /* translators: 1) blog name 2) order number */ 411 'description' => sprintf( __( '%1$s - Order %2$s', 'woocommerce-gateway-stripe' ), wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ), $order->get_order_number() ), 411 412 ]; 412 413 -
woocommerce-gateway-stripe/tags/6.2.0/includes/connect/class-wc-stripe-connect.php
r2653262 r2680327 129 129 $default_options = $this->get_default_stripe_config(); 130 130 $options = array_merge( $default_options, get_option( self::SETTINGS_OPTION, [] ) ); 131 $options['enabled'] = 'yes'; 131 132 $options['testmode'] = $is_test ? 'yes' : 'no'; 132 133 $options[ $prefix . 'publishable_key' ] = $result->publishableKey; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase -
woocommerce-gateway-stripe/tags/6.2.0/includes/payment-methods/class-wc-stripe-upe-payment-gateway.php
r2666455 r2680327 122 122 123 123 $main_settings = get_option( 'woocommerce_stripe_settings' ); 124 $this->title = $this->get_option( 'title_upe' );124 $this->title = ! empty( $this->get_option( 'title_upe' ) ) ? $this->get_option( 'title_upe' ) : $this->form_fields['title_upe']['default']; 125 125 $this->description = ''; 126 126 $this->enabled = $this->get_option( 'enabled' ); -
woocommerce-gateway-stripe/tags/6.2.0/languages/woocommerce-gateway-stripe.pot
r2666455 r2680327 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Stripe Gateway 6. 1.0\n"5 "Project-Id-Version: WooCommerce Stripe Gateway 6.2.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-gateway-stripe\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2022-0 1-26T22:33:57+00:00\n"12 "POT-Creation-Date: 2022-02-17T00:44:10+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.5.0\n" … … 55 55 #: includes/abstracts/abstract-wc-stripe-payment-gateway-voucher.php:245 56 56 #: includes/abstracts/abstract-wc-stripe-payment-gateway-voucher.php:353 57 #: includes/class-wc-stripe-intent-controller.php:43 457 #: includes/class-wc-stripe-intent-controller.php:435 58 58 #: includes/class-wc-stripe-webhook-handler.php:832 59 59 #: includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:557 … … 99 99 #. translators: 1) blog name 2) order number 100 100 #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:421 101 #: includes/class-wc-stripe-intent-controller.php:411 101 102 #: includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:528 102 103 msgid "%1$s - Order %2$s" … … 219 220 220 221 #: includes/admin/class-wc-rest-stripe-account-keys-controller.php:139 221 #: includes/class-wc-gateway-stripe.php:99 4222 #: includes/class-wc-gateway-stripe.php:995 222 223 msgid "The \"Live Publishable Key\" should start with \"pk_live\", enter the correct key." 223 224 msgstr "" 224 225 225 226 #: includes/admin/class-wc-rest-stripe-account-keys-controller.php:151 226 #: includes/class-wc-gateway-stripe.php:100 2227 #: includes/class-wc-gateway-stripe.php:1003 227 228 msgid "The \"Live Secret Key\" should start with \"sk_live\" or \"rk_live\", enter the correct key." 228 229 msgstr "" 229 230 230 231 #: includes/admin/class-wc-rest-stripe-account-keys-controller.php:163 231 #: includes/class-wc-gateway-stripe.php:101 0232 #: includes/class-wc-gateway-stripe.php:1011 232 233 msgid "The \"Test Publishable Key\" should start with \"pk_test\", enter the correct key." 233 234 msgstr "" 234 235 235 236 #: includes/admin/class-wc-rest-stripe-account-keys-controller.php:175 236 #: includes/class-wc-gateway-stripe.php:101 8237 #: includes/class-wc-gateway-stripe.php:1019 237 238 msgid "The \"Test Secret Key\" should start with \"sk_test\" or \"rk_test\", enter the correct key." 238 239 msgstr "" … … 268 269 msgstr "" 269 270 271 #. translators: %s: the error message. 270 272 #: includes/admin/class-wc-rest-stripe-orders-controller.php:163 271 273 msgid "Unknown error" … … 1288 1290 1289 1291 #. translators: 1) Opening anchor tag 2) closing anchor tag 1290 #: includes/class-wc-gateway-stripe.php:15 71292 #: includes/class-wc-gateway-stripe.php:158 1291 1293 msgid "If your billing address has been changed for saved payment methods, be sure to remove any %1$ssaved payment methods%2$s on file and re-add them." 1292 1294 msgstr "" 1293 1295 1294 1296 #. translators: link to Stripe testing page 1295 #: includes/class-wc-gateway-stripe.php:22 11297 #: includes/class-wc-gateway-stripe.php:222 1296 1298 msgid "TEST MODE ENABLED. In test mode, you can use the card number 4242424242424242 with any CVC and a valid expiration date or check the <a href=\"%s\" target=\"_blank\">Testing Stripe documentation</a> for more card numbers." 1297 1299 msgstr "" 1298 1300 1299 #: includes/class-wc-gateway-stripe.php:26 01301 #: includes/class-wc-gateway-stripe.php:261 1300 1302 msgid "Credit or debit card" 1301 1303 msgstr "" 1302 1304 1303 1305 #: build/index.js:1 1304 #: includes/class-wc-gateway-stripe.php:26 81306 #: includes/class-wc-gateway-stripe.php:269 1305 1307 #: client/blocks/credit-card/elements.js:117 1306 1308 msgid "Card Number" … … 1308 1310 1309 1311 #: build/index.js:1 1310 #: includes/class-wc-gateway-stripe.php:2 791312 #: includes/class-wc-gateway-stripe.php:280 1311 1313 #: client/blocks/credit-card/elements.js:134 1312 1314 msgid "Expiry Date" 1313 1315 msgstr "" 1314 1316 1315 #: includes/class-wc-gateway-stripe.php:28 71317 #: includes/class-wc-gateway-stripe.php:288 1316 1318 msgid "Card Code (CVC)" 1317 1319 msgstr "" 1318 1320 1319 #: includes/class-wc-gateway-stripe.php:55 81321 #: includes/class-wc-gateway-stripe.php:559 1320 1322 msgid "This represents the fee Stripe collects for the transaction." 1321 1323 msgstr "" 1322 1324 1323 #: includes/class-wc-gateway-stripe.php:5 591325 #: includes/class-wc-gateway-stripe.php:560 1324 1326 msgid "Stripe Fee:" 1325 1327 msgstr "" 1326 1328 1327 #: includes/class-wc-gateway-stripe.php:59 51329 #: includes/class-wc-gateway-stripe.php:596 1328 1330 msgid "This represents the net total that will be credited to your Stripe bank account. This may be in the currency that is set in your Stripe account." 1329 1331 msgstr "" 1330 1332 1331 #: includes/class-wc-gateway-stripe.php:59 61333 #: includes/class-wc-gateway-stripe.php:597 1332 1334 msgid "Stripe Payout:" 1333 1335 msgstr "" 1334 1336 1335 #: includes/class-wc-gateway-stripe.php:62 21337 #: includes/class-wc-gateway-stripe.php:623 1336 1338 #: includes/class-wc-stripe-order-handler.php:153 1337 1339 #: includes/class-wc-stripe-webhook-handler.php:256 … … 1342 1344 msgstr "" 1343 1345 1344 #: includes/class-wc-gateway-stripe.php:67 51346 #: includes/class-wc-gateway-stripe.php:676 1345 1347 msgid "" 1346 1348 "Almost there!\n" … … 1350 1352 1351 1353 #. translators: %s is the order Id 1352 #: includes/class-wc-gateway-stripe.php:69 71354 #: includes/class-wc-gateway-stripe.php:698 1353 1355 msgid "Payment Intent not found for order #%s" 1354 1356 msgstr "" 1355 1357 1356 1358 #. translators: 1) The error message that was received from Stripe. 1357 #: includes/class-wc-gateway-stripe.php:93 61359 #: includes/class-wc-gateway-stripe.php:937 1358 1360 #: includes/class-wc-stripe-webhook-handler.php:856 1359 1361 #: includes/class-wc-stripe-webhook-handler.php:907 … … 1361 1363 msgstr "" 1362 1364 1363 #: includes/class-wc-gateway-stripe.php:93 71365 #: includes/class-wc-gateway-stripe.php:938 1364 1366 msgid "Stripe SCA authentication failed." 1365 1367 msgstr "" 1366 1368 1367 1369 #. translators: %1, %2, %3, and %4 are all HTML markup tags 1368 #: includes/class-wc-gateway-stripe.php:105 81370 #: includes/class-wc-gateway-stripe.php:1059 1369 1371 #: includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:1226 1370 1372 msgid "%1$sClear all Stripe account keys.%2$s %3$sThis will disable any connection to Stripe.%4$s" … … 1372 1374 1373 1375 #. translators: %1, %2 and %3 are all HTML markup tags 1374 #: includes/class-wc-gateway-stripe.php:107 01376 #: includes/class-wc-gateway-stripe.php:1071 1375 1377 msgid "%1$sSet up or link an existing Stripe account.%2$s By clicking this button you agree to the %3$sTerms of Service%2$s. Or, manually enter Stripe account keys below." 1376 1378 msgstr "" 1377 1379 1378 #: includes/class-wc-gateway-stripe.php:107 61380 #: includes/class-wc-gateway-stripe.php:1077 1379 1381 #: includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:1244 1380 1382 msgid "Manually enter Stripe keys below." 1381 1383 msgstr "" 1382 1384 1383 #: includes/class-wc-gateway-stripe.php:113 71385 #: includes/class-wc-gateway-stripe.php:1138 1384 1386 msgid "customer bank statement" 1385 1387 msgstr "" 1386 1388 1387 #: includes/class-wc-gateway-stripe.php:114 01389 #: includes/class-wc-gateway-stripe.php:1141 1388 1390 msgid "shortened customer bank statement" 1389 1391 msgstr "" 1390 1392 1391 1393 #. translators: %1 field name, %2 Number of the maximum characters allowed 1392 #: includes/class-wc-gateway-stripe.php:115 61394 #: includes/class-wc-gateway-stripe.php:1157 1393 1395 msgid "The %1$s is invalid. The bank statement must contain only Latin characters, be between 5 and %2$u characters, contain at least one letter, and not contain any of the special characters: ' \" * < >" 1396 msgstr "" 1397 1398 #. translators: %1$s Link to Stripe API details, %2$s Link to register a Stripe account 1399 #: includes/class-wc-gateway-stripe.php:1198 1400 msgid "Your API details can be obtained from your <a href=\"%1$s\">Stripe account</a>. Don’t have a Stripe account? <a href=\"%2$s\">Create one.</a>" 1394 1401 msgstr "" 1395 1402 … … 1633 1640 1634 1641 #: includes/class-wc-stripe-intent-controller.php:84 1635 #: includes/class-wc-stripe-intent-controller.php:56 41636 #: includes/class-wc-stripe-intent-controller.php:62 41642 #: includes/class-wc-stripe-intent-controller.php:565 1643 #: includes/class-wc-stripe-intent-controller.php:625 1637 1644 msgid "CSRF verification failed." 1638 1645 msgstr "" … … 1659 1666 msgstr "" 1660 1667 1661 #: includes/class-wc-stripe-intent-controller.php:410 1662 msgid "Stripe - Order" 1663 msgstr "" 1664 1665 #: includes/class-wc-stripe-intent-controller.php:454 1668 #: includes/class-wc-stripe-intent-controller.php:455 1666 1669 msgid "We're not able to add this payment method. Please refresh the page and try again." 1667 1670 msgstr "" 1668 1671 1669 #: includes/class-wc-stripe-intent-controller.php:52 01672 #: includes/class-wc-stripe-intent-controller.php:521 1670 1673 msgid "Unable to update UPE appearance values at this time." 1671 1674 msgstr "" 1672 1675 1673 #: includes/class-wc-stripe-intent-controller.php:57 01674 #: includes/class-wc-stripe-intent-controller.php:58 21675 #: includes/class-wc-stripe-intent-controller.php:64 21676 #: includes/class-wc-stripe-intent-controller.php:571 1677 #: includes/class-wc-stripe-intent-controller.php:583 1678 #: includes/class-wc-stripe-intent-controller.php:643 1676 1679 #: includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:884 1677 1680 msgid "We're not able to process this payment. Please try again later." … … 1679 1682 1680 1683 #. translators: %1: transaction ID of the payment or a translated string indicating an unknown ID. 1681 #: includes/class-wc-stripe-intent-controller.php:57 81684 #: includes/class-wc-stripe-intent-controller.php:579 1682 1685 msgid "A payment with ID %s was used in an attempt to pay for this order. This payment intent ID does not match any payments for this order, so it was ignored and the order was not updated." 1683 1686 msgstr "" … … 2455 2458 msgstr "" 2456 2459 2460 #. translators: %s is a link to the payment re-authentication URL. 2457 2461 #: templates/emails/failed-preorder-authentication.php:20 2458 2462 msgid "Authorize the payment now »" -
woocommerce-gateway-stripe/tags/6.2.0/readme.txt
r2666455 r2680327 5 5 Tested up to: 5.9 6 6 Requires PHP: 7.0 7 Stable tag: 6. 1.07 Stable tag: 6.2.0 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 129 129 == Changelog == 130 130 131 = 6.1.0 - 2022-01-26 = 132 * Tweak - Use the newly exposed LoadableMask component provided by WooCommerce Blocks to trigger the loading state for Payment Request Buttons. 133 * Fix - Response type for account summary API. 134 * Fix - Invalid response in account summary API when missing account data. 135 * Add - Live and test mode information in account summary API. 136 * Add - Add filter call when updating an existent intent (wc_stripe_update_existing_intent_request). 137 * Add - Add ability to test Stripe account keys' validity. 138 * Fix - Fixed full bank statement field description. 139 * Fix - Notification messages are placed on top of the account keys modal. 140 * Fix - Express checkout with 3DS card on product page when new checkout experience is enabled. 141 * Fix - Remove duplicate call to `payment_scripts`. 142 * Fix - Send bank statement descriptors to payment intents. 131 = 6.2.0 - 2022-02-17 = 132 * Add - Add onboarding payment gateway setup methods. 133 * Fix - Enable Stripe payment method after connecting account. 134 * Fix - Missing statement descriptor in account summary API when not set in Stripe. 143 135 144 136 [See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt). -
woocommerce-gateway-stripe/tags/6.2.0/woocommerce-gateway-stripe.php
r2666455 r2680327 6 6 * Author: WooCommerce 7 7 * Author URI: https://woocommerce.com/ 8 * Version: 6. 1.08 * Version: 6.2.0 9 9 * Requires at least: 5.6 10 10 * Tested up to: 5.9 11 11 * WC requires at least: 5.7 12 * WC tested up to: 6. 1.112 * WC tested up to: 6.2 13 13 * Text Domain: woocommerce-gateway-stripe 14 14 * Domain Path: /languages … … 22 22 * Required minimums and constants 23 23 */ 24 define( 'WC_STRIPE_VERSION', '6. 1.0' ); // WRCS: DEFINED_VERSION.24 define( 'WC_STRIPE_VERSION', '6.2.0' ); // WRCS: DEFINED_VERSION. 25 25 define( 'WC_STRIPE_MIN_PHP_VER', '7.0.0' ); 26 26 define( 'WC_STRIPE_MIN_WC_VER', '5.7' ); … … 593 593 $oauth_init = new WC_Stripe_Connect_REST_Oauth_Init_Controller( $this->connect, $this->api ); 594 594 $oauth_connect = new WC_Stripe_Connect_REST_Oauth_Connect_Controller( $this->connect, $this->api ); 595 $stripe_account_controller = new WC_REST_Stripe_Account_Controller( $this-> account );595 $stripe_account_controller = new WC_REST_Stripe_Account_Controller( $this->get_main_stripe_gateway(), $this->account ); 596 596 597 597 $connection_tokens_controller->register_routes(); -
woocommerce-gateway-stripe/trunk/build/payment_gateways.asset.php
r2666455 r2680327 1 <?php return array('dependencies' => array('react', 'react-dom', 'wc-navigation', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => ' 8cec8ac706a3066dab1bf95c3ea3f8f7');1 <?php return array('dependencies' => array('react', 'react-dom', 'wc-navigation', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'b4b8e86ff3d285f29625e368e9c51bbf'); -
woocommerce-gateway-stripe/trunk/build/payment_requests_settings.asset.php
r2666455 r2680327 1 <?php return array('dependencies' => array('react', 'react-dom', 'wc-navigation', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => ' c560474cde9517938d81521a40d66d0f');1 <?php return array('dependencies' => array('react', 'react-dom', 'wc-navigation', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'd04f553a7fb5521ec266f6ef95e914d1'); -
woocommerce-gateway-stripe/trunk/build/upe_settings.asset.php
r2666455 r2680327 1 <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wc-currency', 'wc-navigation', 'wc-store-data', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => ' 67278aebfc9b1c6347177f28be1734b2');1 <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wc-currency', 'wc-navigation', 'wc-store-data', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '517c9b8a15dfa040788de3e3faf4309b'); -
woocommerce-gateway-stripe/trunk/changelog.txt
r2666455 r2680327 1 1 *** Changelog *** 2 3 = 6.2.0 - 2022-02-17 = 4 * Add - Add onboarding payment gateway setup methods. 5 * Fix - Enable Stripe payment method after connecting account. 6 * Fix - Missing statement descriptor in account summary API when not set in Stripe. 2 7 3 8 = 6.1.0 - 2022-01-26 = -
woocommerce-gateway-stripe/trunk/includes/admin/class-wc-rest-stripe-account-controller.php
r2666455 r2680327 26 26 private $account; 27 27 28 public function __construct( WC_Stripe_Account $account ) { 28 /** 29 * Stripe payment gateway. 30 * 31 * @var WC_Gateway_Stripe 32 */ 33 private $gateway; 34 35 public function __construct( WC_Gateway_Stripe $gateway, WC_Stripe_Account $account ) { 36 $this->gateway = $gateway; 29 37 $this->account = $account; 30 38 } … … 99 107 $account = $this->account->get_cached_account_data(); 100 108 109 // Use statement descriptor from settings, falling back to Stripe account statement descriptor if needed. 110 $statement_descriptor = WC_Stripe_Helper::clean_statement_descriptor( $this->gateway->get_option( 'statement_descriptor' ) ); 111 if ( empty( $statement_descriptor ) ) { 112 $statement_descriptor = $account['settings']['payments']['statement_descriptor']; 113 } 114 if ( empty( $statement_descriptor ) ) { 115 $statement_descriptor = null; 116 } 117 101 118 return new WP_REST_Response( 102 119 [ … … 105 122 'current_deadline' => $account['requirements']['current_deadline'] ?? null, 106 123 'status' => $this->account->get_account_status(), 107 'statement_descriptor' => $ account['settings']['payments']['statement_descriptor'] ?? '',124 'statement_descriptor' => $statement_descriptor, 108 125 'store_currencies' => [ 109 126 'default' => $account['default_currency'] ?? get_woocommerce_currency(), -
woocommerce-gateway-stripe/trunk/includes/admin/class-wc-rest-stripe-account-keys-controller.php
r2653262 r2680327 194 194 195 195 // If all keys were empty, then is a new account; we need to set the test/live mode. 196 $new_account = ! trim( $settings['publishable_key'] ) && ! trim( $settings['secret_key'] ) && ! trim( $settings['test_publishable_key'] ) && ! trim( $settings['test_secret_key'] ); 196 $new_account = ! trim( $settings['publishable_key'] ) 197 && ! trim( $settings['secret_key'] ) 198 && ! trim( $settings['test_publishable_key'] ) 199 && ! trim( $settings['test_secret_key'] ); 200 // If all new keys are empty, then account is being disconnected. We should disable the payment gateway. 201 $is_deleting_account = ! trim( $publishable_key ) 202 && ! trim( $secret_key ) 203 && ! trim( $test_publishable_key ) 204 && ! trim( $test_secret_key ); 197 205 198 206 $settings['publishable_key'] = is_null( $publishable_key ) ? $settings['publishable_key'] : $publishable_key; … … 204 212 205 213 if ( $new_account ) { 214 $settings['enabled'] = 'yes'; 206 215 if ( trim( $settings['publishable_key'] ) && trim( $settings['secret_key'] ) ) { 207 216 $settings['testmode'] = 'no'; 208 } else if ( trim( $settings['test_publishable_key'] ) && trim( $settings['test_secret_key'] ) ) {217 } elseif ( trim( $settings['test_publishable_key'] ) && trim( $settings['test_secret_key'] ) ) { 209 218 $settings['testmode'] = 'yes'; 210 219 } 220 } elseif ( $is_deleting_account ) { 221 $settings['enabled'] = 'no'; 211 222 } 212 223 -
woocommerce-gateway-stripe/trunk/includes/class-wc-gateway-stripe.php
r2666455 r2680327 124 124 add_filter( 'woocommerce_get_checkout_payment_url', [ $this, 'get_checkout_payment_url' ], 10, 2 ); 125 125 add_filter( 'woocommerce_settings_api_sanitized_fields_' . $this->id, [ $this, 'settings_api_sanitized_fields' ] ); 126 add_filter( 'woocommerce_gateway_' . $this->id . '_settings_values', [ $this, 'update_onboarding_settings' ] ); 126 127 127 128 // Note: display error is in the parent class. … … 1163 1164 return $value; 1164 1165 } 1166 1167 /** 1168 * Get required setting keys for setup. 1169 * 1170 * @return array Array of setting keys used for setup. 1171 */ 1172 public function get_required_settings_keys() { 1173 return [ 'publishable_key', 'secret_key' ]; 1174 } 1175 1176 /** 1177 * Get the connection URL. 1178 * 1179 * @return string Connection URL. 1180 */ 1181 public function get_connection_url( $return_url = '' ) { 1182 $api = new WC_Stripe_Connect_API(); 1183 $connect = new WC_Stripe_Connect( $api ); 1184 1185 $url = $connect->get_oauth_url( $return_url ); 1186 1187 return is_wp_error( $url ) ? null : $url; 1188 } 1189 1190 /** 1191 * Get help text to display during quick setup. 1192 * 1193 * @return string 1194 */ 1195 public function get_setup_help_text() { 1196 return sprintf( 1197 /* translators: %1$s Link to Stripe API details, %2$s Link to register a Stripe account */ 1198 __( 'Your API details can be obtained from your <a href="%1$s">Stripe account</a>. Don’t have a Stripe account? <a href="%2$s">Create one.</a>', 'woocommerce-gateway-stripe' ), 1199 'https://dashboard.stripe.com/apikeys', 1200 'https://dashboard.stripe.com/register' 1201 ); 1202 } 1203 1204 /** 1205 * Determine if the gateway still requires setup. 1206 * 1207 * @return bool 1208 */ 1209 public function needs_setup() { 1210 return ! $this->get_option( 'publishable_key' ) || ! $this->get_option( 'secret_key' ); 1211 } 1212 1213 /** 1214 * Updates the test mode based on keys provided when setting up the gateway via onboarding. 1215 * 1216 * @return array 1217 */ 1218 public function update_onboarding_settings( $settings ) { 1219 if ( ! isset( $_SERVER['HTTP_REFERER'] ) ) { 1220 return; 1221 } 1222 1223 parse_str( wp_parse_url( $_SERVER['HTTP_REFERER'], PHP_URL_QUERY ), $queries ); // phpcs:ignore sanitization ok. 1224 1225 // Determine if merchant is onboarding (page='wc-admin' and task='payments'). 1226 if ( 1227 ! isset( $queries ) || 1228 ! isset( $queries['page'] ) || 1229 ! isset( $queries['task'] ) || 1230 'wc-admin' !== $queries['page'] || 1231 'payments' !== $queries['task'] 1232 ) { 1233 return; 1234 } 1235 1236 if ( ! empty( $settings['publishable_key'] ) && ! empty( $settings['secret_key'] ) ) { 1237 if ( strpos( $settings['publishable_key'], 'pk_test_' ) === 0 || strpos( $settings['secret_key'], 'sk_test_' ) === 0 ) { 1238 $settings['test_publishable_key'] = $settings['publishable_key']; 1239 $settings['test_secret_key'] = $settings['secret_key']; 1240 unset( $settings['publishable_key'] ); 1241 unset( $settings['secret_key'] ); 1242 $settings['testmode'] = 'yes'; 1243 } else { 1244 $settings['testmode'] = 'no'; 1245 } 1246 } 1247 1248 return $settings; 1249 } 1165 1250 } -
woocommerce-gateway-stripe/trunk/includes/class-wc-stripe-intent-controller.php
r2642120 r2680327 408 408 'currency' => strtolower( $currency ), 409 409 'metadata' => $gateway->get_metadata_from_order( $order ), 410 'description' => __( 'Stripe - Order', 'woocommerce-gateway-stripe' ) . ' ' . $order->get_id(), 410 /* translators: 1) blog name 2) order number */ 411 'description' => sprintf( __( '%1$s - Order %2$s', 'woocommerce-gateway-stripe' ), wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ), $order->get_order_number() ), 411 412 ]; 412 413 -
woocommerce-gateway-stripe/trunk/includes/connect/class-wc-stripe-connect.php
r2653262 r2680327 129 129 $default_options = $this->get_default_stripe_config(); 130 130 $options = array_merge( $default_options, get_option( self::SETTINGS_OPTION, [] ) ); 131 $options['enabled'] = 'yes'; 131 132 $options['testmode'] = $is_test ? 'yes' : 'no'; 132 133 $options[ $prefix . 'publishable_key' ] = $result->publishableKey; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase -
woocommerce-gateway-stripe/trunk/includes/payment-methods/class-wc-stripe-upe-payment-gateway.php
r2666455 r2680327 122 122 123 123 $main_settings = get_option( 'woocommerce_stripe_settings' ); 124 $this->title = $this->get_option( 'title_upe' );124 $this->title = ! empty( $this->get_option( 'title_upe' ) ) ? $this->get_option( 'title_upe' ) : $this->form_fields['title_upe']['default']; 125 125 $this->description = ''; 126 126 $this->enabled = $this->get_option( 'enabled' ); -
woocommerce-gateway-stripe/trunk/languages/woocommerce-gateway-stripe.pot
r2666455 r2680327 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Stripe Gateway 6. 1.0\n"5 "Project-Id-Version: WooCommerce Stripe Gateway 6.2.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-gateway-stripe\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2022-0 1-26T22:33:57+00:00\n"12 "POT-Creation-Date: 2022-02-17T00:44:10+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.5.0\n" … … 55 55 #: includes/abstracts/abstract-wc-stripe-payment-gateway-voucher.php:245 56 56 #: includes/abstracts/abstract-wc-stripe-payment-gateway-voucher.php:353 57 #: includes/class-wc-stripe-intent-controller.php:43 457 #: includes/class-wc-stripe-intent-controller.php:435 58 58 #: includes/class-wc-stripe-webhook-handler.php:832 59 59 #: includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:557 … … 99 99 #. translators: 1) blog name 2) order number 100 100 #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:421 101 #: includes/class-wc-stripe-intent-controller.php:411 101 102 #: includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:528 102 103 msgid "%1$s - Order %2$s" … … 219 220 220 221 #: includes/admin/class-wc-rest-stripe-account-keys-controller.php:139 221 #: includes/class-wc-gateway-stripe.php:99 4222 #: includes/class-wc-gateway-stripe.php:995 222 223 msgid "The \"Live Publishable Key\" should start with \"pk_live\", enter the correct key." 223 224 msgstr "" 224 225 225 226 #: includes/admin/class-wc-rest-stripe-account-keys-controller.php:151 226 #: includes/class-wc-gateway-stripe.php:100 2227 #: includes/class-wc-gateway-stripe.php:1003 227 228 msgid "The \"Live Secret Key\" should start with \"sk_live\" or \"rk_live\", enter the correct key." 228 229 msgstr "" 229 230 230 231 #: includes/admin/class-wc-rest-stripe-account-keys-controller.php:163 231 #: includes/class-wc-gateway-stripe.php:101 0232 #: includes/class-wc-gateway-stripe.php:1011 232 233 msgid "The \"Test Publishable Key\" should start with \"pk_test\", enter the correct key." 233 234 msgstr "" 234 235 235 236 #: includes/admin/class-wc-rest-stripe-account-keys-controller.php:175 236 #: includes/class-wc-gateway-stripe.php:101 8237 #: includes/class-wc-gateway-stripe.php:1019 237 238 msgid "The \"Test Secret Key\" should start with \"sk_test\" or \"rk_test\", enter the correct key." 238 239 msgstr "" … … 268 269 msgstr "" 269 270 271 #. translators: %s: the error message. 270 272 #: includes/admin/class-wc-rest-stripe-orders-controller.php:163 271 273 msgid "Unknown error" … … 1288 1290 1289 1291 #. translators: 1) Opening anchor tag 2) closing anchor tag 1290 #: includes/class-wc-gateway-stripe.php:15 71292 #: includes/class-wc-gateway-stripe.php:158 1291 1293 msgid "If your billing address has been changed for saved payment methods, be sure to remove any %1$ssaved payment methods%2$s on file and re-add them." 1292 1294 msgstr "" 1293 1295 1294 1296 #. translators: link to Stripe testing page 1295 #: includes/class-wc-gateway-stripe.php:22 11297 #: includes/class-wc-gateway-stripe.php:222 1296 1298 msgid "TEST MODE ENABLED. In test mode, you can use the card number 4242424242424242 with any CVC and a valid expiration date or check the <a href=\"%s\" target=\"_blank\">Testing Stripe documentation</a> for more card numbers." 1297 1299 msgstr "" 1298 1300 1299 #: includes/class-wc-gateway-stripe.php:26 01301 #: includes/class-wc-gateway-stripe.php:261 1300 1302 msgid "Credit or debit card" 1301 1303 msgstr "" 1302 1304 1303 1305 #: build/index.js:1 1304 #: includes/class-wc-gateway-stripe.php:26 81306 #: includes/class-wc-gateway-stripe.php:269 1305 1307 #: client/blocks/credit-card/elements.js:117 1306 1308 msgid "Card Number" … … 1308 1310 1309 1311 #: build/index.js:1 1310 #: includes/class-wc-gateway-stripe.php:2 791312 #: includes/class-wc-gateway-stripe.php:280 1311 1313 #: client/blocks/credit-card/elements.js:134 1312 1314 msgid "Expiry Date" 1313 1315 msgstr "" 1314 1316 1315 #: includes/class-wc-gateway-stripe.php:28 71317 #: includes/class-wc-gateway-stripe.php:288 1316 1318 msgid "Card Code (CVC)" 1317 1319 msgstr "" 1318 1320 1319 #: includes/class-wc-gateway-stripe.php:55 81321 #: includes/class-wc-gateway-stripe.php:559 1320 1322 msgid "This represents the fee Stripe collects for the transaction." 1321 1323 msgstr "" 1322 1324 1323 #: includes/class-wc-gateway-stripe.php:5 591325 #: includes/class-wc-gateway-stripe.php:560 1324 1326 msgid "Stripe Fee:" 1325 1327 msgstr "" 1326 1328 1327 #: includes/class-wc-gateway-stripe.php:59 51329 #: includes/class-wc-gateway-stripe.php:596 1328 1330 msgid "This represents the net total that will be credited to your Stripe bank account. This may be in the currency that is set in your Stripe account." 1329 1331 msgstr "" 1330 1332 1331 #: includes/class-wc-gateway-stripe.php:59 61333 #: includes/class-wc-gateway-stripe.php:597 1332 1334 msgid "Stripe Payout:" 1333 1335 msgstr "" 1334 1336 1335 #: includes/class-wc-gateway-stripe.php:62 21337 #: includes/class-wc-gateway-stripe.php:623 1336 1338 #: includes/class-wc-stripe-order-handler.php:153 1337 1339 #: includes/class-wc-stripe-webhook-handler.php:256 … … 1342 1344 msgstr "" 1343 1345 1344 #: includes/class-wc-gateway-stripe.php:67 51346 #: includes/class-wc-gateway-stripe.php:676 1345 1347 msgid "" 1346 1348 "Almost there!\n" … … 1350 1352 1351 1353 #. translators: %s is the order Id 1352 #: includes/class-wc-gateway-stripe.php:69 71354 #: includes/class-wc-gateway-stripe.php:698 1353 1355 msgid "Payment Intent not found for order #%s" 1354 1356 msgstr "" 1355 1357 1356 1358 #. translators: 1) The error message that was received from Stripe. 1357 #: includes/class-wc-gateway-stripe.php:93 61359 #: includes/class-wc-gateway-stripe.php:937 1358 1360 #: includes/class-wc-stripe-webhook-handler.php:856 1359 1361 #: includes/class-wc-stripe-webhook-handler.php:907 … … 1361 1363 msgstr "" 1362 1364 1363 #: includes/class-wc-gateway-stripe.php:93 71365 #: includes/class-wc-gateway-stripe.php:938 1364 1366 msgid "Stripe SCA authentication failed." 1365 1367 msgstr "" 1366 1368 1367 1369 #. translators: %1, %2, %3, and %4 are all HTML markup tags 1368 #: includes/class-wc-gateway-stripe.php:105 81370 #: includes/class-wc-gateway-stripe.php:1059 1369 1371 #: includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:1226 1370 1372 msgid "%1$sClear all Stripe account keys.%2$s %3$sThis will disable any connection to Stripe.%4$s" … … 1372 1374 1373 1375 #. translators: %1, %2 and %3 are all HTML markup tags 1374 #: includes/class-wc-gateway-stripe.php:107 01376 #: includes/class-wc-gateway-stripe.php:1071 1375 1377 msgid "%1$sSet up or link an existing Stripe account.%2$s By clicking this button you agree to the %3$sTerms of Service%2$s. Or, manually enter Stripe account keys below." 1376 1378 msgstr "" 1377 1379 1378 #: includes/class-wc-gateway-stripe.php:107 61380 #: includes/class-wc-gateway-stripe.php:1077 1379 1381 #: includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:1244 1380 1382 msgid "Manually enter Stripe keys below." 1381 1383 msgstr "" 1382 1384 1383 #: includes/class-wc-gateway-stripe.php:113 71385 #: includes/class-wc-gateway-stripe.php:1138 1384 1386 msgid "customer bank statement" 1385 1387 msgstr "" 1386 1388 1387 #: includes/class-wc-gateway-stripe.php:114 01389 #: includes/class-wc-gateway-stripe.php:1141 1388 1390 msgid "shortened customer bank statement" 1389 1391 msgstr "" 1390 1392 1391 1393 #. translators: %1 field name, %2 Number of the maximum characters allowed 1392 #: includes/class-wc-gateway-stripe.php:115 61394 #: includes/class-wc-gateway-stripe.php:1157 1393 1395 msgid "The %1$s is invalid. The bank statement must contain only Latin characters, be between 5 and %2$u characters, contain at least one letter, and not contain any of the special characters: ' \" * < >" 1396 msgstr "" 1397 1398 #. translators: %1$s Link to Stripe API details, %2$s Link to register a Stripe account 1399 #: includes/class-wc-gateway-stripe.php:1198 1400 msgid "Your API details can be obtained from your <a href=\"%1$s\">Stripe account</a>. Don’t have a Stripe account? <a href=\"%2$s\">Create one.</a>" 1394 1401 msgstr "" 1395 1402 … … 1633 1640 1634 1641 #: includes/class-wc-stripe-intent-controller.php:84 1635 #: includes/class-wc-stripe-intent-controller.php:56 41636 #: includes/class-wc-stripe-intent-controller.php:62 41642 #: includes/class-wc-stripe-intent-controller.php:565 1643 #: includes/class-wc-stripe-intent-controller.php:625 1637 1644 msgid "CSRF verification failed." 1638 1645 msgstr "" … … 1659 1666 msgstr "" 1660 1667 1661 #: includes/class-wc-stripe-intent-controller.php:410 1662 msgid "Stripe - Order" 1663 msgstr "" 1664 1665 #: includes/class-wc-stripe-intent-controller.php:454 1668 #: includes/class-wc-stripe-intent-controller.php:455 1666 1669 msgid "We're not able to add this payment method. Please refresh the page and try again." 1667 1670 msgstr "" 1668 1671 1669 #: includes/class-wc-stripe-intent-controller.php:52 01672 #: includes/class-wc-stripe-intent-controller.php:521 1670 1673 msgid "Unable to update UPE appearance values at this time." 1671 1674 msgstr "" 1672 1675 1673 #: includes/class-wc-stripe-intent-controller.php:57 01674 #: includes/class-wc-stripe-intent-controller.php:58 21675 #: includes/class-wc-stripe-intent-controller.php:64 21676 #: includes/class-wc-stripe-intent-controller.php:571 1677 #: includes/class-wc-stripe-intent-controller.php:583 1678 #: includes/class-wc-stripe-intent-controller.php:643 1676 1679 #: includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:884 1677 1680 msgid "We're not able to process this payment. Please try again later." … … 1679 1682 1680 1683 #. translators: %1: transaction ID of the payment or a translated string indicating an unknown ID. 1681 #: includes/class-wc-stripe-intent-controller.php:57 81684 #: includes/class-wc-stripe-intent-controller.php:579 1682 1685 msgid "A payment with ID %s was used in an attempt to pay for this order. This payment intent ID does not match any payments for this order, so it was ignored and the order was not updated." 1683 1686 msgstr "" … … 2455 2458 msgstr "" 2456 2459 2460 #. translators: %s is a link to the payment re-authentication URL. 2457 2461 #: templates/emails/failed-preorder-authentication.php:20 2458 2462 msgid "Authorize the payment now »" -
woocommerce-gateway-stripe/trunk/readme.txt
r2666455 r2680327 5 5 Tested up to: 5.9 6 6 Requires PHP: 7.0 7 Stable tag: 6. 1.07 Stable tag: 6.2.0 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 129 129 == Changelog == 130 130 131 = 6.1.0 - 2022-01-26 = 132 * Tweak - Use the newly exposed LoadableMask component provided by WooCommerce Blocks to trigger the loading state for Payment Request Buttons. 133 * Fix - Response type for account summary API. 134 * Fix - Invalid response in account summary API when missing account data. 135 * Add - Live and test mode information in account summary API. 136 * Add - Add filter call when updating an existent intent (wc_stripe_update_existing_intent_request). 137 * Add - Add ability to test Stripe account keys' validity. 138 * Fix - Fixed full bank statement field description. 139 * Fix - Notification messages are placed on top of the account keys modal. 140 * Fix - Express checkout with 3DS card on product page when new checkout experience is enabled. 141 * Fix - Remove duplicate call to `payment_scripts`. 142 * Fix - Send bank statement descriptors to payment intents. 131 = 6.2.0 - 2022-02-17 = 132 * Add - Add onboarding payment gateway setup methods. 133 * Fix - Enable Stripe payment method after connecting account. 134 * Fix - Missing statement descriptor in account summary API when not set in Stripe. 143 135 144 136 [See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt). -
woocommerce-gateway-stripe/trunk/woocommerce-gateway-stripe.php
r2666455 r2680327 6 6 * Author: WooCommerce 7 7 * Author URI: https://woocommerce.com/ 8 * Version: 6. 1.08 * Version: 6.2.0 9 9 * Requires at least: 5.6 10 10 * Tested up to: 5.9 11 11 * WC requires at least: 5.7 12 * WC tested up to: 6. 1.112 * WC tested up to: 6.2 13 13 * Text Domain: woocommerce-gateway-stripe 14 14 * Domain Path: /languages … … 22 22 * Required minimums and constants 23 23 */ 24 define( 'WC_STRIPE_VERSION', '6. 1.0' ); // WRCS: DEFINED_VERSION.24 define( 'WC_STRIPE_VERSION', '6.2.0' ); // WRCS: DEFINED_VERSION. 25 25 define( 'WC_STRIPE_MIN_PHP_VER', '7.0.0' ); 26 26 define( 'WC_STRIPE_MIN_WC_VER', '5.7' ); … … 593 593 $oauth_init = new WC_Stripe_Connect_REST_Oauth_Init_Controller( $this->connect, $this->api ); 594 594 $oauth_connect = new WC_Stripe_Connect_REST_Oauth_Connect_Controller( $this->connect, $this->api ); 595 $stripe_account_controller = new WC_REST_Stripe_Account_Controller( $this-> account );595 $stripe_account_controller = new WC_REST_Stripe_Account_Controller( $this->get_main_stripe_gateway(), $this->account ); 596 596 597 597 $connection_tokens_controller->register_routes();
Note: See TracChangeset
for help on using the changeset viewer.