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

Version Description

  • 2022-11-14 =
  • Fix - Fixed rest api error for payment_gateways endpoint
Download this release

Release Info

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

Code changes from version 5.0.1 to 5.0.2

changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  *** WooCommerce Payments Changelog ***
2
 
 
 
 
3
  = 5.0.1 - 2022-11-10 =
4
  * Fix - Fix fatal error when non-admin access admin pages.
5
 
1
  *** WooCommerce Payments Changelog ***
2
 
3
+ = 5.0.2 - 2022-11-14 =
4
+ * Fix - Fixed rest api error for payment_gateways endpoint
5
+
6
  = 5.0.1 - 2022-11-10 =
7
  * Fix - Fix fatal error when non-admin access admin pages.
8
 
includes/class-wc-payment-gateway-wcpay.php CHANGED
@@ -2944,6 +2944,15 @@ class WC_Payment_Gateway_WCPay extends WC_Payment_Gateway_CC {
2944
  return $field;
2945
  }
2946
 
 
 
 
 
 
 
 
 
 
2947
  // Start: Deprecated functions.
2948
 
2949
  /**
@@ -2958,18 +2967,6 @@ class WC_Payment_Gateway_WCPay extends WC_Payment_Gateway_CC {
2958
  return WC_Payments_Admin_Settings::is_current_page_settings();
2959
  }
2960
 
2961
- /**
2962
- * Returns the URL of the configuration screen for this gateway, for use in internal links.
2963
- *
2964
- * @deprecated 5.0.0
2965
- *
2966
- * @return string URL of the configuration screen for this gateway
2967
- */
2968
- public static function get_settings_url() {
2969
- wc_deprecated_function( __FUNCTION__, '5.0.0', 'WC_Payments_Admin_Settings::get_settings_url' );
2970
- return WC_Payments_Admin_Settings::get_settings_url();
2971
- }
2972
-
2973
  /**
2974
  * Generates the configuration values, needed for payment fields.
2975
  *
2944
  return $field;
2945
  }
2946
 
2947
+ /**
2948
+ * Returns the URL of the configuration screen for this gateway, for use in internal links.
2949
+ *
2950
+ * @return string URL of the configuration screen for this gateway
2951
+ */
2952
+ public static function get_settings_url() {
2953
+ return WC_Payments_Admin_Settings::get_settings_url();
2954
+ }
2955
+
2956
  // Start: Deprecated functions.
2957
 
2958
  /**
2967
  return WC_Payments_Admin_Settings::is_current_page_settings();
2968
  }
2969
 
 
 
 
 
 
 
 
 
 
 
 
 
2970
  /**
2971
  * Generates the configuration values, needed for payment fields.
2972
  *
includes/class-wc-payments.php CHANGED
@@ -387,11 +387,11 @@ class WC_Payments {
387
  WC_Payments_Explicit_Price_Formatter::init();
388
 
389
  include_once WCPAY_ABSPATH . '/includes/class-wc-payments-captured-event-note.php';
 
390
 
391
  // Add admin screens.
392
  if ( is_admin() ) {
393
  include_once WCPAY_ABSPATH . 'includes/admin/class-wc-payments-admin.php';
394
- include_once WCPAY_ABSPATH . 'includes/admin/class-wc-payments-admin-settings.php';
395
  }
396
 
397
  if ( is_admin() && current_user_can( 'manage_woocommerce' ) ) {
387
  WC_Payments_Explicit_Price_Formatter::init();
388
 
389
  include_once WCPAY_ABSPATH . '/includes/class-wc-payments-captured-event-note.php';
390
+ include_once WCPAY_ABSPATH . 'includes/admin/class-wc-payments-admin-settings.php';
391
 
392
  // Add admin screens.
393
  if ( is_admin() ) {
394
  include_once WCPAY_ABSPATH . 'includes/admin/class-wc-payments-admin.php';
 
395
  }
396
 
397
  if ( is_admin() && current_user_can( 'manage_woocommerce' ) ) {
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.1\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-payments\n"
8
- "POT-Creation-Date: 2022-11-10 14:44:53+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.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"
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.1
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.1 - 2022-11-10 =
102
  * Fix - Fix fatal error when non-admin access admin pages.
103
 
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
 
99
  == Changelog ==
100
 
101
+ = 5.0.2 - 2022-11-14 =
102
+ * Fix - Fixed rest api error for payment_gateways endpoint
103
+
104
  = 5.0.1 - 2022-11-10 =
105
  * Fix - Fix fatal error when non-admin access admin pages.
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 ComposerAutoloaderInitf92c8d398a5e642f93af70acc31942dd::getLoader();
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
+ return ComposerAutoloaderInitfc26b7dfd69648d1b33a524440060626::getLoader();
vendor/autoload_packages.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpf92c8d398a5e642f93af70acc31942dd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpfc26b7dfd69648d1b33a524440060626;
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 ComposerAutoloaderInitf92c8d398a5e642f93af70acc31942dd
6
  {
7
  private static $loader;
8
 
@@ -24,18 +24,18 @@ class ComposerAutoloaderInitf92c8d398a5e642f93af70acc31942dd
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInitf92c8d398a5e642f93af70acc31942dd', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
29
- spl_autoload_unregister(array('ComposerAutoloaderInitf92c8d398a5e642f93af70acc31942dd', 'loadClassLoader'));
30
 
31
  require __DIR__ . '/autoload_static.php';
32
- call_user_func(\Composer\Autoload\ComposerStaticInitf92c8d398a5e642f93af70acc31942dd::getInitializer($loader));
33
 
34
  $loader->register(true);
35
 
36
- $includeFiles = \Composer\Autoload\ComposerStaticInitf92c8d398a5e642f93af70acc31942dd::$files;
37
  foreach ($includeFiles as $fileIdentifier => $file) {
38
- composerRequiref92c8d398a5e642f93af70acc31942dd($fileIdentifier, $file);
39
  }
40
 
41
  return $loader;
@@ -47,7 +47,7 @@ class ComposerAutoloaderInitf92c8d398a5e642f93af70acc31942dd
47
  * @param string $file
48
  * @return void
49
  */
50
- function composerRequiref92c8d398a5e642f93af70acc31942dd($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 ComposerAutoloaderInitfc26b7dfd69648d1b33a524440060626
6
  {
7
  private static $loader;
8
 
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
  * @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;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitf92c8d398a5e642f93af70acc31942dd
8
  {
9
  public static $files = array (
10
  '3773ef3f09c37da5478d578e32b03a4b' => __DIR__ . '/..' . '/automattic/jetpack-assets/actions.php',
@@ -292,9 +292,9 @@ class ComposerStaticInitf92c8d398a5e642f93af70acc31942dd
292
  public static function getInitializer(ClassLoader $loader)
293
  {
294
  return \Closure::bind(function () use ($loader) {
295
- $loader->prefixLengthsPsr4 = ComposerStaticInitf92c8d398a5e642f93af70acc31942dd::$prefixLengthsPsr4;
296
- $loader->prefixDirsPsr4 = ComposerStaticInitf92c8d398a5e642f93af70acc31942dd::$prefixDirsPsr4;
297
- $loader->classMap = ComposerStaticInitf92c8d398a5e642f93af70acc31942dd::$classMap;
298
 
299
  }, null, ClassLoader::class);
300
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitfc26b7dfd69648d1b33a524440060626
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 = ComposerStaticInitfc26b7dfd69648d1b33a524440060626::$prefixLengthsPsr4;
296
+ $loader->prefixDirsPsr4 = ComposerStaticInitfc26b7dfd69648d1b33a524440060626::$prefixDirsPsr4;
297
+ $loader->classMap = ComposerStaticInitfc26b7dfd69648d1b33a524440060626::$classMap;
298
 
299
  }, null, ClassLoader::class);
300
  }
vendor/composer/installed.php CHANGED
@@ -5,7 +5,7 @@
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => '0840871419f9d453a14e1da7f5e6e94a9f70c51a',
9
  'name' => 'woocommerce/payments',
10
  'dev' => false,
11
  ),
@@ -199,7 +199,7 @@
199
  'type' => 'wordpress-plugin',
200
  'install_path' => __DIR__ . '/../../',
201
  'aliases' => array(),
202
- 'reference' => '0840871419f9d453a14e1da7f5e6e94a9f70c51a',
203
  'dev_requirement' => false,
204
  ),
205
  'woocommerce/subscriptions-core' => array(
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => 'de8cdd71774b28216deba8593eac2319b6740fa7',
9
  'name' => 'woocommerce/payments',
10
  'dev' => false,
11
  ),
199
  'type' => 'wordpress-plugin',
200
  'install_path' => __DIR__ . '/../../',
201
  'aliases' => array(),
202
+ 'reference' => 'de8cdd71774b28216deba8593eac2319b6740fa7',
203
  'dev_requirement' => false,
204
  ),
205
  'woocommerce/subscriptions-core' => array(
vendor/jetpack-autoloader/class-autoloader-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpf92c8d398a5e642f93af70acc31942dd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpfc26b7dfd69648d1b33a524440060626;
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\jpf92c8d398a5e642f93af70acc31942dd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpfc26b7dfd69648d1b33a524440060626;
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\jpf92c8d398a5e642f93af70acc31942dd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpfc26b7dfd69648d1b33a524440060626;
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\jpf92c8d398a5e642f93af70acc31942dd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpfc26b7dfd69648d1b33a524440060626;
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\jpf92c8d398a5e642f93af70acc31942dd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpfc26b7dfd69648d1b33a524440060626;
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\jpf92c8d398a5e642f93af70acc31942dd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpfc26b7dfd69648d1b33a524440060626;
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\jpf92c8d398a5e642f93af70acc31942dd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpfc26b7dfd69648d1b33a524440060626;
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\jpf92c8d398a5e642f93af70acc31942dd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpfc26b7dfd69648d1b33a524440060626;
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\jpf92c8d398a5e642f93af70acc31942dd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpfc26b7dfd69648d1b33a524440060626;
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\jpf92c8d398a5e642f93af70acc31942dd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpfc26b7dfd69648d1b33a524440060626;
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\jpf92c8d398a5e642f93af70acc31942dd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpfc26b7dfd69648d1b33a524440060626;
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\jpf92c8d398a5e642f93af70acc31942dd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpfc26b7dfd69648d1b33a524440060626;
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\jpf92c8d398a5e642f93af70acc31942dd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpfc26b7dfd69648d1b33a524440060626;
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\jpf92c8d398a5e642f93af70acc31942dd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jpfc26b7dfd69648d1b33a524440060626;
9
 
10
  // phpcs:ignore
11
 
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.1
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.2
16
  *
17
  * @package WooCommerce\Payments
18
  */