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

Version Description

  • 2022-11-15 =
  • Fix - Purchasing a synced subscription with WCPay Subscriptions correctly sets the next payment date to the sync date in Stripe.
Download this release

Release Info

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

Code changes from version 5.0.2 to 5.0.3

changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  *** WooCommerce Payments Changelog ***
2
 
 
 
 
3
  = 5.0.2 - 2022-11-14 =
4
  * Fix - Fixed rest api error for payment_gateways endpoint
5
 
1
  *** WooCommerce Payments Changelog ***
2
 
3
+ = 5.0.3 - 2022-11-15 =
4
+ * Fix - Purchasing a synced subscription with WCPay Subscriptions correctly sets the next payment date to the sync date in Stripe.
5
+
6
  = 5.0.2 - 2022-11-14 =
7
  * Fix - Fixed rest api error for payment_gateways endpoint
8
 
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 5.0.2\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-payments\n"
8
- "POT-Creation-Date: 2022-11-14 14:04:15+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
2
  # This file is distributed under the same license as the WooCommerce Payments package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WooCommerce Payments 5.0.3\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-payments\n"
8
+ "POT-Creation-Date: 2022-11-15 11:20:45+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: payment gateway, payment, apple pay, credit card, google pay
4
  Requires at least: 5.8
5
  Tested up to: 6.0
6
  Requires PHP: 7.0
7
- Stable tag: 5.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -98,6 +98,9 @@ Please note that our support for the checkout block is still experimental and th
98
 
99
  == Changelog ==
100
 
 
 
 
101
  = 5.0.2 - 2022-11-14 =
102
  * Fix - Fixed rest api error for payment_gateways endpoint
103
 
4
  Requires at least: 5.8
5
  Tested up to: 6.0
6
  Requires PHP: 7.0
7
+ Stable tag: 5.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
98
 
99
  == Changelog ==
100
 
101
+ = 5.0.3 - 2022-11-15 =
102
+ * Fix - Purchasing a synced subscription with WCPay Subscriptions correctly sets the next payment date to the sync date in Stripe.
103
+
104
  = 5.0.2 - 2022-11-14 =
105
  * Fix - Fixed rest api error for payment_gateways endpoint
106
 
vendor/autoload.php CHANGED
@@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
- return ComposerAutoloaderInitfc26b7dfd69648d1b33a524440060626::getLoader();
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
+ return ComposerAutoloaderIniteb976a645bcdd704fdfcf141b425bf04::getLoader();
vendor/autoload_packages.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpfc26b7dfd69648d1b33a524440060626;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpeb976a645bcdd704fdfcf141b425bf04;
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 ComposerAutoloaderInitfc26b7dfd69648d1b33a524440060626
6
  {
7
  private static $loader;
8
 
@@ -24,18 +24,18 @@ class ComposerAutoloaderInitfc26b7dfd69648d1b33a524440060626
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInitfc26b7dfd69648d1b33a524440060626', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
29
- spl_autoload_unregister(array('ComposerAutoloaderInitfc26b7dfd69648d1b33a524440060626', 'loadClassLoader'));
30
 
31
  require __DIR__ . '/autoload_static.php';
32
- call_user_func(\Composer\Autoload\ComposerStaticInitfc26b7dfd69648d1b33a524440060626::getInitializer($loader));
33
 
34
  $loader->register(true);
35
 
36
- $includeFiles = \Composer\Autoload\ComposerStaticInitfc26b7dfd69648d1b33a524440060626::$files;
37
  foreach ($includeFiles as $fileIdentifier => $file) {
38
- composerRequirefc26b7dfd69648d1b33a524440060626($fileIdentifier, $file);
39
  }
40
 
41
  return $loader;
@@ -47,7 +47,7 @@ class ComposerAutoloaderInitfc26b7dfd69648d1b33a524440060626
47
  * @param string $file
48
  * @return void
49
  */
50
- function composerRequirefc26b7dfd69648d1b33a524440060626($fileIdentifier, $file)
51
  {
52
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
53
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderIniteb976a645bcdd704fdfcf141b425bf04
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderIniteb976a645bcdd704fdfcf141b425bf04', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
29
+ spl_autoload_unregister(array('ComposerAutoloaderIniteb976a645bcdd704fdfcf141b425bf04', 'loadClassLoader'));
30
 
31
  require __DIR__ . '/autoload_static.php';
32
+ call_user_func(\Composer\Autoload\ComposerStaticIniteb976a645bcdd704fdfcf141b425bf04::getInitializer($loader));
33
 
34
  $loader->register(true);
35
 
36
+ $includeFiles = \Composer\Autoload\ComposerStaticIniteb976a645bcdd704fdfcf141b425bf04::$files;
37
  foreach ($includeFiles as $fileIdentifier => $file) {
38
+ composerRequireeb976a645bcdd704fdfcf141b425bf04($fileIdentifier, $file);
39
  }
40
 
41
  return $loader;
47
  * @param string $file
48
  * @return void
49
  */
50
+ function composerRequireeb976a645bcdd704fdfcf141b425bf04($fileIdentifier, $file)
51
  {
52
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
53
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitfc26b7dfd69648d1b33a524440060626
8
  {
9
  public static $files = array (
10
  '3773ef3f09c37da5478d578e32b03a4b' => __DIR__ . '/..' . '/automattic/jetpack-assets/actions.php',
@@ -292,9 +292,9 @@ class ComposerStaticInitfc26b7dfd69648d1b33a524440060626
292
  public static function getInitializer(ClassLoader $loader)
293
  {
294
  return \Closure::bind(function () use ($loader) {
295
- $loader->prefixLengthsPsr4 = ComposerStaticInitfc26b7dfd69648d1b33a524440060626::$prefixLengthsPsr4;
296
- $loader->prefixDirsPsr4 = ComposerStaticInitfc26b7dfd69648d1b33a524440060626::$prefixDirsPsr4;
297
- $loader->classMap = ComposerStaticInitfc26b7dfd69648d1b33a524440060626::$classMap;
298
 
299
  }, null, ClassLoader::class);
300
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticIniteb976a645bcdd704fdfcf141b425bf04
8
  {
9
  public static $files = array (
10
  '3773ef3f09c37da5478d578e32b03a4b' => __DIR__ . '/..' . '/automattic/jetpack-assets/actions.php',
292
  public static function getInitializer(ClassLoader $loader)
293
  {
294
  return \Closure::bind(function () use ($loader) {
295
+ $loader->prefixLengthsPsr4 = ComposerStaticIniteb976a645bcdd704fdfcf141b425bf04::$prefixLengthsPsr4;
296
+ $loader->prefixDirsPsr4 = ComposerStaticIniteb976a645bcdd704fdfcf141b425bf04::$prefixDirsPsr4;
297
+ $loader->classMap = ComposerStaticIniteb976a645bcdd704fdfcf141b425bf04::$classMap;
298
 
299
  }, null, ClassLoader::class);
300
  }
vendor/composer/installed.json CHANGED
@@ -1111,17 +1111,17 @@
1111
  },
1112
  {
1113
  "name": "woocommerce/subscriptions-core",
1114
- "version": "2.5.1",
1115
- "version_normalized": "2.5.1.0",
1116
  "source": {
1117
  "type": "git",
1118
  "url": "https://github.com/Automattic/woocommerce-subscriptions-core.git",
1119
- "reference": "0e2633b0f254ff08a860dcf64b66b10c5cc8b7e4"
1120
  },
1121
  "dist": {
1122
  "type": "zip",
1123
- "url": "https://api.github.com/repos/Automattic/woocommerce-subscriptions-core/zipball/0e2633b0f254ff08a860dcf64b66b10c5cc8b7e4",
1124
- "reference": "0e2633b0f254ff08a860dcf64b66b10c5cc8b7e4",
1125
  "shasum": ""
1126
  },
1127
  "require": {
@@ -1134,7 +1134,7 @@
1134
  "woocommerce/woocommerce-sniffs": "0.1.0",
1135
  "yoast/phpunit-polyfills": "1.0.3"
1136
  },
1137
- "time": "2022-11-04T07:37:07+00:00",
1138
  "type": "wordpress-plugin",
1139
  "extra": {
1140
  "phpcodesniffer-search-depth": 2
@@ -1164,7 +1164,7 @@
1164
  "description": "Sell products and services with recurring payments in your WooCommerce Store.",
1165
  "homepage": "https://github.com/Automattic/woocommerce-subscriptions-core",
1166
  "support": {
1167
- "source": "https://github.com/Automattic/woocommerce-subscriptions-core/tree/2.5.1",
1168
  "issues": "https://github.com/Automattic/woocommerce-subscriptions-core/issues"
1169
  },
1170
  "install-path": "../woocommerce/subscriptions-core"
1111
  },
1112
  {
1113
  "name": "woocommerce/subscriptions-core",
1114
+ "version": "2.5.2",
1115
+ "version_normalized": "2.5.2.0",
1116
  "source": {
1117
  "type": "git",
1118
  "url": "https://github.com/Automattic/woocommerce-subscriptions-core.git",
1119
+ "reference": "3a347e2549fadfb691673e15c4050df84c7fe9a7"
1120
  },
1121
  "dist": {
1122
  "type": "zip",
1123
+ "url": "https://api.github.com/repos/Automattic/woocommerce-subscriptions-core/zipball/3a347e2549fadfb691673e15c4050df84c7fe9a7",
1124
+ "reference": "3a347e2549fadfb691673e15c4050df84c7fe9a7",
1125
  "shasum": ""
1126
  },
1127
  "require": {
1134
  "woocommerce/woocommerce-sniffs": "0.1.0",
1135
  "yoast/phpunit-polyfills": "1.0.3"
1136
  },
1137
+ "time": "2022-11-15T09:19:48+00:00",
1138
  "type": "wordpress-plugin",
1139
  "extra": {
1140
  "phpcodesniffer-search-depth": 2
1164
  "description": "Sell products and services with recurring payments in your WooCommerce Store.",
1165
  "homepage": "https://github.com/Automattic/woocommerce-subscriptions-core",
1166
  "support": {
1167
+ "source": "https://github.com/Automattic/woocommerce-subscriptions-core/tree/2.5.2",
1168
  "issues": "https://github.com/Automattic/woocommerce-subscriptions-core/issues"
1169
  },
1170
  "install-path": "../woocommerce/subscriptions-core"
vendor/composer/installed.php CHANGED
@@ -5,7 +5,7 @@
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => 'de8cdd71774b28216deba8593eac2319b6740fa7',
9
  'name' => 'woocommerce/payments',
10
  'dev' => false,
11
  ),
@@ -199,16 +199,16 @@
199
  'type' => 'wordpress-plugin',
200
  'install_path' => __DIR__ . '/../../',
201
  'aliases' => array(),
202
- 'reference' => 'de8cdd71774b28216deba8593eac2319b6740fa7',
203
  'dev_requirement' => false,
204
  ),
205
  'woocommerce/subscriptions-core' => array(
206
- 'pretty_version' => '2.5.1',
207
- 'version' => '2.5.1.0',
208
  'type' => 'wordpress-plugin',
209
  'install_path' => __DIR__ . '/../woocommerce/subscriptions-core',
210
  'aliases' => array(),
211
- 'reference' => '0e2633b0f254ff08a860dcf64b66b10c5cc8b7e4',
212
  'dev_requirement' => false,
213
  ),
214
  ),
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => '168b6d0d7c8187f84d0f4edbde3079af175e9d42',
9
  'name' => 'woocommerce/payments',
10
  'dev' => false,
11
  ),
199
  'type' => 'wordpress-plugin',
200
  'install_path' => __DIR__ . '/../../',
201
  'aliases' => array(),
202
+ 'reference' => '168b6d0d7c8187f84d0f4edbde3079af175e9d42',
203
  'dev_requirement' => false,
204
  ),
205
  'woocommerce/subscriptions-core' => array(
206
+ 'pretty_version' => '2.5.2',
207
+ 'version' => '2.5.2.0',
208
  'type' => 'wordpress-plugin',
209
  'install_path' => __DIR__ . '/../woocommerce/subscriptions-core',
210
  'aliases' => array(),
211
+ 'reference' => '3a347e2549fadfb691673e15c4050df84c7fe9a7',
212
  'dev_requirement' => false,
213
  ),
214
  ),
vendor/jetpack-autoloader/class-autoloader-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpfc26b7dfd69648d1b33a524440060626;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpeb976a645bcdd704fdfcf141b425bf04;
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\jpfc26b7dfd69648d1b33a524440060626;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpeb976a645bcdd704fdfcf141b425bf04;
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\jpfc26b7dfd69648d1b33a524440060626;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpeb976a645bcdd704fdfcf141b425bf04;
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\jpfc26b7dfd69648d1b33a524440060626;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpeb976a645bcdd704fdfcf141b425bf04;
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\jpfc26b7dfd69648d1b33a524440060626;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpeb976a645bcdd704fdfcf141b425bf04;
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\jpfc26b7dfd69648d1b33a524440060626;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpeb976a645bcdd704fdfcf141b425bf04;
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\jpfc26b7dfd69648d1b33a524440060626;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpeb976a645bcdd704fdfcf141b425bf04;
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\jpfc26b7dfd69648d1b33a524440060626;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpeb976a645bcdd704fdfcf141b425bf04;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-php-autoloader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpfc26b7dfd69648d1b33a524440060626;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpeb976a645bcdd704fdfcf141b425bf04;
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\jpfc26b7dfd69648d1b33a524440060626;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpeb976a645bcdd704fdfcf141b425bf04;
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\jpfc26b7dfd69648d1b33a524440060626;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpeb976a645bcdd704fdfcf141b425bf04;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-shutdown-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpfc26b7dfd69648d1b33a524440060626;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpeb976a645bcdd704fdfcf141b425bf04;
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\jpfc26b7dfd69648d1b33a524440060626;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpeb976a645bcdd704fdfcf141b425bf04;
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\jpfc26b7dfd69648d1b33a524440060626;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpeb976a645bcdd704fdfcf141b425bf04;
9
 
10
  // phpcs:ignore
11
 
vendor/woocommerce/subscriptions-core/changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  *** WooCommerce Subscriptions Core Changelog ***
2
 
 
 
 
3
  = 2.5.1 - 2022-11-04 =
4
  * Dev - Replace the use of the deprecated wcs_renewal_order_meta hook with wc_subscription_renewal_order_data in the WCS_Related_Order_Store_Cached_CPT class.
5
  * Dev - Fix typo in deprecation notice for the 'wcs_{type}_meta_query' filter. Incorrect replacement hook.
1
  *** WooCommerce Subscriptions Core Changelog ***
2
 
3
+ = 2.5.2 - 2022-11-15 =
4
+ * Fix - When creating a subscription via the checkout, make sure a new instance of the subscription is attached to the `woocommerce_checkout_subscription_created` action hook.
5
+
6
  = 2.5.1 - 2022-11-04 =
7
  * Dev - Replace the use of the deprecated wcs_renewal_order_meta hook with wc_subscription_renewal_order_data in the WCS_Related_Order_Store_Cached_CPT class.
8
  * Dev - Fix typo in deprecation notice for the 'wcs_{type}_meta_query' filter. Incorrect replacement hook.
vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-checkout.php CHANGED
@@ -257,7 +257,13 @@ class WC_Subscriptions_Checkout {
257
  return new WP_Error( 'checkout-error', $e->getMessage() );
258
  }
259
 
260
- return $subscription;
 
 
 
 
 
 
261
  }
262
 
263
 
257
  return new WP_Error( 'checkout-error', $e->getMessage() );
258
  }
259
 
260
+ /**
261
+ * Fetch and return a fresh instance of the subscription from the database.
262
+ *
263
+ * After saving the subscription, we need to fetch the subscription from the database as the current object state may not match the loaded state.
264
+ * This occurs because different instances of the subscription might have been saved in any one of the processes above resulting in this object being out of sync.
265
+ */
266
+ return wcs_get_subscription( $subscription );
267
  }
268
 
269
 
vendor/woocommerce/subscriptions-core/woocommerce-subscriptions-core.php CHANGED
@@ -6,5 +6,5 @@
6
  * Author: Automattic
7
  * Author URI: https://woocommerce.com/
8
  * Requires WP: 5.6
9
- * Version: 2.5.1
10
  */
6
  * Author: Automattic
7
  * Author URI: https://woocommerce.com/
8
  * Requires WP: 5.6
9
+ * Version: 2.5.2
10
  */
woocommerce-payments.php CHANGED
@@ -12,7 +12,7 @@
12
  * WC tested up to: 7.0.0
13
  * Requires at least: 5.8
14
  * Requires PHP: 7.0
15
- * Version: 5.0.2
16
  *
17
  * @package WooCommerce\Payments
18
  */
12
  * WC tested up to: 7.0.0
13
  * Requires at least: 5.8
14
  * Requires PHP: 7.0
15
+ * Version: 5.0.3
16
  *
17
  * @package WooCommerce\Payments
18
  */