WooCommerce Payments – Fully Integrated Solution Built and Supported by Woo - Version 2.3.2

Version Description

  • 2021-04-27 =
  • Fix - Error when purchasing free trial subscriptions.
Download this release

Release Info

Developer automattic
Plugin Icon 128x128 WooCommerce Payments – Fully Integrated Solution Built and Supported by Woo
Version 2.3.2
Comparing to
See all releases

Code changes from version 2.3.1 to 2.3.2

changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  *** WooCommerce Payments Changelog ***
2
 
 
 
 
3
  = 2.3.1 - 2021-04-26 =
4
  * Fix - Various account connection cache tweaks
5
  * Update - Use option instead of transient for caching account data
1
  *** WooCommerce Payments Changelog ***
2
 
3
+ = 2.3.2 - 2021-04-27 =
4
+ * Fix - Error when purchasing free trial subscriptions.
5
+
6
  = 2.3.1 - 2021-04-26 =
7
  * Fix - Various account connection cache tweaks
8
  * Update - Use option instead of transient for caching account data
dist/tos.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wc-components', 'wp-api-fetch', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-url'), 'version' => '80888d5e6dddbd8cd5510c74a102e067');
1
+ <?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wc-components', 'wp-api-fetch', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-url'), 'version' => 'ebbec4c7e3168c7378066e48d17ee43c');
includes/wc-payment-api/class-wc-payments-api-client.php CHANGED
@@ -290,12 +290,15 @@ class WC_Payments_API_Client {
290
  */
291
  public function create_and_confirm_setup_intent( $payment_method_id, $customer_id ) {
292
  $request = [
293
- 'payment_method' => $payment_method_id,
294
- 'customer' => $customer_id,
295
- 'confirm' => 'true',
296
- 'payment_method_types' => [ 'card', 'sepa_debit' ],
297
  ];
298
 
 
 
 
 
299
  return $this->request( $request, self::SETUP_INTENTS_API, self::POST );
300
  }
301
 
290
  */
291
  public function create_and_confirm_setup_intent( $payment_method_id, $customer_id ) {
292
  $request = [
293
+ 'payment_method' => $payment_method_id,
294
+ 'customer' => $customer_id,
295
+ 'confirm' => 'true',
 
296
  ];
297
 
298
+ if ( '1' === get_option( '_wcpay_feature_sepa' ) ) {
299
+ $request['payment_method_types'] = [ 'card', 'sepa_debit' ];
300
+ }
301
+
302
  return $this->request( $request, self::SETUP_INTENTS_API, self::POST );
303
  }
304
 
languages/woocommerce-payments.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the same license as the WooCommerce Payments package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WooCommerce Payments 2.3.1\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-payments\n"
8
- "POT-Creation-Date: 2021-04-26 13:05:09+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -756,14 +756,14 @@ msgid "Payment authorization has <strong>expired</strong> (<code>%1$s</code>)."
756
  msgstr ""
757
 
758
  #: includes/class-wc-payments-utils.php:216
759
- #: includes/wc-payment-api/class-wc-payments-api-client.php:498
760
  #: client/disputes/index.js:50
761
  #: client/transactions/list/index.js:94
762
  msgid "Order #"
763
  msgstr ""
764
 
765
  #: includes/class-wc-payments-utils.php:226
766
- #: includes/wc-payment-api/class-wc-payments-api-client.php:496
767
  #: client/transactions/list/index.js:100
768
  msgid "Subscription #"
769
  msgstr ""
@@ -941,23 +941,23 @@ msgid ""
941
  "with account number 000123456, or any test card numbers listed <a>here</a>."
942
  msgstr ""
943
 
944
- #: includes/wc-payment-api/class-wc-payments-api-client.php:632
945
  msgid "Max file size exceeded."
946
  msgstr ""
947
 
948
- #: includes/wc-payment-api/class-wc-payments-api-client.php:793
949
  msgid "Customer ID is required"
950
  msgstr ""
951
 
952
- #: includes/wc-payment-api/class-wc-payments-api-client.php:1022
953
  msgid "Unable to encode body for request to WooCommerce Payments API."
954
  msgstr ""
955
 
956
- #: includes/wc-payment-api/class-wc-payments-api-client.php:1123
957
  msgid "Unable to decode response from WooCommerce Payments API"
958
  msgstr ""
959
 
960
- #: includes/wc-payment-api/class-wc-payments-api-client.php:1142
961
  msgid "Server error. Please try again."
962
  msgstr ""
963
 
@@ -993,7 +993,7 @@ msgstr ""
993
  msgid "https://woocommerce.com/"
994
  msgstr ""
995
 
996
- #: includes/wc-payment-api/class-wc-payments-api-client.php:1147
997
  #. translators: This is an error API response.
998
  msgctxt "API error message to throw as Exception"
999
  msgid "Error: %1$s"
2
  # This file is distributed under the same license as the WooCommerce Payments package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WooCommerce Payments 2.3.2\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-payments\n"
8
+ "POT-Creation-Date: 2021-04-27 12:52:02+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
756
  msgstr ""
757
 
758
  #: includes/class-wc-payments-utils.php:216
759
+ #: includes/wc-payment-api/class-wc-payments-api-client.php:501
760
  #: client/disputes/index.js:50
761
  #: client/transactions/list/index.js:94
762
  msgid "Order #"
763
  msgstr ""
764
 
765
  #: includes/class-wc-payments-utils.php:226
766
+ #: includes/wc-payment-api/class-wc-payments-api-client.php:499
767
  #: client/transactions/list/index.js:100
768
  msgid "Subscription #"
769
  msgstr ""
941
  "with account number 000123456, or any test card numbers listed <a>here</a>."
942
  msgstr ""
943
 
944
+ #: includes/wc-payment-api/class-wc-payments-api-client.php:635
945
  msgid "Max file size exceeded."
946
  msgstr ""
947
 
948
+ #: includes/wc-payment-api/class-wc-payments-api-client.php:796
949
  msgid "Customer ID is required"
950
  msgstr ""
951
 
952
+ #: includes/wc-payment-api/class-wc-payments-api-client.php:1025
953
  msgid "Unable to encode body for request to WooCommerce Payments API."
954
  msgstr ""
955
 
956
+ #: includes/wc-payment-api/class-wc-payments-api-client.php:1126
957
  msgid "Unable to decode response from WooCommerce Payments API"
958
  msgstr ""
959
 
960
+ #: includes/wc-payment-api/class-wc-payments-api-client.php:1145
961
  msgid "Server error. Please try again."
962
  msgstr ""
963
 
993
  msgid "https://woocommerce.com/"
994
  msgstr ""
995
 
996
+ #: includes/wc-payment-api/class-wc-payments-api-client.php:1150
997
  #. translators: This is an error API response.
998
  msgctxt "API error message to throw as Exception"
999
  msgid "Error: %1$s"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: woocommerce, payment, payment request, credit card, automattic
4
  Requires at least: 5.4
5
  Tested up to: 5.7
6
  Requires PHP: 7.0
7
- Stable tag: 2.3.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -101,6 +101,9 @@ Please note that our support for the checkout block is still experimental and th
101
 
102
  == Changelog ==
103
 
 
 
 
104
  = 2.3.1 - 2021-04-26 =
105
  * Fix - Various account connection cache tweaks
106
  * Update - Use option instead of transient for caching account data
4
  Requires at least: 5.4
5
  Tested up to: 5.7
6
  Requires PHP: 7.0
7
+ Stable tag: 2.3.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
101
 
102
  == Changelog ==
103
 
104
+ = 2.3.2 - 2021-04-27 =
105
+ * Fix - Error when purchasing free trial subscriptions.
106
+
107
  = 2.3.1 - 2021-04-26 =
108
  * Fix - Various account connection cache tweaks
109
  * Update - Use option instead of transient for caching account data
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit85414029225d8d0aa46b2d7a243ace49::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit33bb4eaaca1729556dd7edaab2833b97::getLoader();
vendor/autoload_packages.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp85414029225d8d0aa46b2d7a243ace49;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp33bb4eaaca1729556dd7edaab2833b97;
9
 
10
  // phpcs:ignore
11
 
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit85414029225d8d0aa46b2d7a243ace49
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit85414029225d8d0aa46b2d7a243ace49
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit85414029225d8d0aa46b2d7a243ace49', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInit85414029225d8d0aa46b2d7a243ace49', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit85414029225d8d0aa46b2d7a243ace49::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInit85414029225d8d0aa46b2d7a243ace49
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInit85414029225d8d0aa46b2d7a243ace49::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequire85414029225d8d0aa46b2d7a243ace49($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequire85414029225d8d0aa46b2d7a243ace49($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit33bb4eaaca1729556dd7edaab2833b97
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit33bb4eaaca1729556dd7edaab2833b97', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit33bb4eaaca1729556dd7edaab2833b97', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInit33bb4eaaca1729556dd7edaab2833b97::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
+ $includeFiles = Composer\Autoload\ComposerStaticInit33bb4eaaca1729556dd7edaab2833b97::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequire33bb4eaaca1729556dd7edaab2833b97($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequire33bb4eaaca1729556dd7edaab2833b97($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit85414029225d8d0aa46b2d7a243ace49
8
  {
9
  public static $files = array (
10
  'bce4ecd6aabb2a2948e06d0e2c4ea9a6' => __DIR__ . '/..' . '/automattic/jetpack-connection/legacy/load-ixr.php',
@@ -71,9 +71,9 @@ class ComposerStaticInit85414029225d8d0aa46b2d7a243ace49
71
  public static function getInitializer(ClassLoader $loader)
72
  {
73
  return \Closure::bind(function () use ($loader) {
74
- $loader->prefixLengthsPsr4 = ComposerStaticInit85414029225d8d0aa46b2d7a243ace49::$prefixLengthsPsr4;
75
- $loader->prefixDirsPsr4 = ComposerStaticInit85414029225d8d0aa46b2d7a243ace49::$prefixDirsPsr4;
76
- $loader->classMap = ComposerStaticInit85414029225d8d0aa46b2d7a243ace49::$classMap;
77
 
78
  }, null, ClassLoader::class);
79
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit33bb4eaaca1729556dd7edaab2833b97
8
  {
9
  public static $files = array (
10
  'bce4ecd6aabb2a2948e06d0e2c4ea9a6' => __DIR__ . '/..' . '/automattic/jetpack-connection/legacy/load-ixr.php',
71
  public static function getInitializer(ClassLoader $loader)
72
  {
73
  return \Closure::bind(function () use ($loader) {
74
+ $loader->prefixLengthsPsr4 = ComposerStaticInit33bb4eaaca1729556dd7edaab2833b97::$prefixLengthsPsr4;
75
+ $loader->prefixDirsPsr4 = ComposerStaticInit33bb4eaaca1729556dd7edaab2833b97::$prefixDirsPsr4;
76
+ $loader->classMap = ComposerStaticInit33bb4eaaca1729556dd7edaab2833b97::$classMap;
77
 
78
  }, null, ClassLoader::class);
79
  }
vendor/jetpack-autoloader/class-autoloader-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp85414029225d8d0aa46b2d7a243ace49;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp33bb4eaaca1729556dd7edaab2833b97;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-autoloader-locator.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp85414029225d8d0aa46b2d7a243ace49;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp33bb4eaaca1729556dd7edaab2833b97;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-autoloader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp85414029225d8d0aa46b2d7a243ace49;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp33bb4eaaca1729556dd7edaab2833b97;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-container.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp85414029225d8d0aa46b2d7a243ace49;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp33bb4eaaca1729556dd7edaab2833b97;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-hook-manager.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp85414029225d8d0aa46b2d7a243ace49;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp33bb4eaaca1729556dd7edaab2833b97;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-latest-autoloader-guard.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp85414029225d8d0aa46b2d7a243ace49;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp33bb4eaaca1729556dd7edaab2833b97;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-manifest-reader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp85414029225d8d0aa46b2d7a243ace49;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp33bb4eaaca1729556dd7edaab2833b97;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-path-processor.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp85414029225d8d0aa46b2d7a243ace49;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp33bb4eaaca1729556dd7edaab2833b97;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-plugin-locator.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp85414029225d8d0aa46b2d7a243ace49;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp33bb4eaaca1729556dd7edaab2833b97;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-plugins-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp85414029225d8d0aa46b2d7a243ace49;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp33bb4eaaca1729556dd7edaab2833b97;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-version-loader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp85414029225d8d0aa46b2d7a243ace49;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp33bb4eaaca1729556dd7edaab2833b97;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-version-selector.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp85414029225d8d0aa46b2d7a243ace49;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp33bb4eaaca1729556dd7edaab2833b97;
9
 
10
  // phpcs:ignore
11
 
woocommerce-payments.php CHANGED
@@ -10,7 +10,7 @@
10
  * WC requires at least: 4.0
11
  * WC tested up to: 5.1
12
  * Requires WP: 5.4
13
- * Version: 2.3.1
14
  *
15
  * @package WooCommerce\Payments
16
  */
10
  * WC requires at least: 4.0
11
  * WC tested up to: 5.1
12
  * Requires WP: 5.4
13
+ * Version: 2.3.2
14
  *
15
  * @package WooCommerce\Payments
16
  */