Version Description
- 2022-06-01 =
- Fix - Ensure proper URL formatting.
See changelog for all versions.
Download this release
Release Info
Developer | automattic |
Plugin | WooCommerce Stripe Payment Gateway |
Version | 6.4.1 |
Comparing to | |
See all releases |
Code changes from version 6.4.0 to 6.4.1
- build/payment_gateways.asset.php +1 -1
- build/payment_requests_settings.asset.php +1 -1
- build/upe_settings.asset.php +1 -1
- changelog.txt +3 -0
- includes/admin/class-wc-rest-stripe-locations-controller.php +6 -6
- includes/class-wc-stripe-account.php +2 -2
- includes/compat/trait-wc-stripe-subscriptions.php +1 -1
- includes/connect/class-wc-stripe-connect.php +8 -6
- languages/woocommerce-gateway-stripe.pot +2 -2
- readme.txt +3 -4
- woocommerce-gateway-stripe.php +2 -2
build/payment_gateways.asset.php
CHANGED
@@ -1 +1 @@
|
|
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' => '
|
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' => '907c20c2dd46c2418f905bbc645376e1');
|
build/payment_requests_settings.asset.php
CHANGED
@@ -1 +1 @@
|
|
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' => '
|
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' => '1a9eb93343efafb36b6289d09990631f');
|
build/upe_settings.asset.php
CHANGED
@@ -1 +1 @@
|
|
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' => '
|
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' => '86caf600a277384bd1cc59ce5f075dd8');
|
changelog.txt
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
*** Changelog ***
|
2 |
|
|
|
|
|
|
|
3 |
= 6.4.0 - 2022-05-20 =
|
4 |
* Fix - Changed logic for how 'Enabled/Disabled' statuses are shown for payments and payouts capabilities in settings.
|
5 |
* Tweak - Updated the minimum supported versions of WordPress and WooCommerce.
|
1 |
*** Changelog ***
|
2 |
|
3 |
+
= 6.4.1 - 2022-06-01 =
|
4 |
+
* Fix - Ensure proper URL formatting.
|
5 |
+
|
6 |
= 6.4.0 - 2022-05-20 =
|
7 |
* Fix - Changed logic for how 'Enabled/Disabled' statuses are shown for payments and payouts capabilities in settings.
|
8 |
* Tweak - Updated the minimum supported versions of WordPress and WooCommerce.
|
includes/admin/class-wc-rest-stripe-locations-controller.php
CHANGED
@@ -49,15 +49,15 @@ class WC_REST_Stripe_Locations_Controller extends WC_Stripe_REST_Base_Controller
|
|
49 |
'permission_callback' => [ $this, 'check_permission' ],
|
50 |
'args' => [
|
51 |
'ending_before' => [
|
52 |
-
'type'
|
53 |
'required' => false,
|
54 |
],
|
55 |
'limit' => [
|
56 |
-
'type'
|
57 |
'required' => false,
|
58 |
],
|
59 |
'starting_after' => [
|
60 |
-
'type'
|
61 |
'required' => false,
|
62 |
],
|
63 |
],
|
@@ -178,9 +178,9 @@ class WC_REST_Stripe_Locations_Controller extends WC_Stripe_REST_Base_Controller
|
|
178 |
* @param WP_REST_Request $request Full data about the request.
|
179 |
*/
|
180 |
public function get_store_location( $request ) {
|
181 |
-
$name
|
182 |
$store_address = WC()->countries;
|
183 |
-
$address
|
184 |
[
|
185 |
'city' => $store_address->get_base_city(),
|
186 |
'country' => $store_address->get_base_country(),
|
@@ -224,7 +224,7 @@ class WC_REST_Stripe_Locations_Controller extends WC_Stripe_REST_Base_Controller
|
|
224 |
$response = WC_Stripe_API::request(
|
225 |
[
|
226 |
'display_name' => $name,
|
227 |
-
'address'
|
228 |
],
|
229 |
'terminal/locations'
|
230 |
);
|
49 |
'permission_callback' => [ $this, 'check_permission' ],
|
50 |
'args' => [
|
51 |
'ending_before' => [
|
52 |
+
'type' => 'string',
|
53 |
'required' => false,
|
54 |
],
|
55 |
'limit' => [
|
56 |
+
'type' => 'integer',
|
57 |
'required' => false,
|
58 |
],
|
59 |
'starting_after' => [
|
60 |
+
'type' => 'string',
|
61 |
'required' => false,
|
62 |
],
|
63 |
],
|
178 |
* @param WP_REST_Request $request Full data about the request.
|
179 |
*/
|
180 |
public function get_store_location( $request ) {
|
181 |
+
$name = get_bloginfo();
|
182 |
$store_address = WC()->countries;
|
183 |
+
$address = array_filter(
|
184 |
[
|
185 |
'city' => $store_address->get_base_city(),
|
186 |
'country' => $store_address->get_base_country(),
|
224 |
$response = WC_Stripe_API::request(
|
225 |
[
|
226 |
'display_name' => $name,
|
227 |
+
'address' => $address,
|
228 |
],
|
229 |
'terminal/locations'
|
230 |
);
|
includes/class-wc-stripe-account.php
CHANGED
@@ -10,8 +10,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
10 |
*/
|
11 |
class WC_Stripe_Account {
|
12 |
|
13 |
-
const LIVE_ACCOUNT_OPTION
|
14 |
-
const TEST_ACCOUNT_OPTION
|
15 |
|
16 |
const STATUS_COMPLETE = 'complete';
|
17 |
const STATUS_NO_ACCOUNT = 'NOACCOUNT';
|
10 |
*/
|
11 |
class WC_Stripe_Account {
|
12 |
|
13 |
+
const LIVE_ACCOUNT_OPTION = 'wcstripe_account_data_live';
|
14 |
+
const TEST_ACCOUNT_OPTION = 'wcstripe_account_data_test';
|
15 |
|
16 |
const STATUS_COMPLETE = 'complete';
|
17 |
const STATUS_NO_ACCOUNT = 'NOACCOUNT';
|
includes/compat/trait-wc-stripe-subscriptions.php
CHANGED
@@ -214,7 +214,7 @@ trait WC_Stripe_Subscriptions_Trait {
|
|
214 |
[
|
215 |
'order' => $order_id,
|
216 |
'nonce' => wp_create_nonce( 'wc_stripe_confirm_pi' ),
|
217 |
-
'redirect_to' => remove_query_arg( [ 'process_early_renewal', 'subscription_id', 'wcs_nonce' ] ),
|
218 |
'early_renewal' => true,
|
219 |
],
|
220 |
WC_AJAX::get_endpoint( 'wc_stripe_verify_intent' )
|
214 |
[
|
215 |
'order' => $order_id,
|
216 |
'nonce' => wp_create_nonce( 'wc_stripe_confirm_pi' ),
|
217 |
+
'redirect_to' => esc_url_raw( remove_query_arg( [ 'process_early_renewal', 'subscription_id', 'wcs_nonce' ] ) ),
|
218 |
'early_renewal' => true,
|
219 |
],
|
220 |
WC_AJAX::get_endpoint( 'wc_stripe_verify_intent' )
|
includes/connect/class-wc-stripe-connect.php
CHANGED
@@ -87,7 +87,7 @@ if ( ! class_exists( 'WC_Stripe_Connect' ) ) {
|
|
87 |
if ( isset( $_GET['wcs_stripe_code'], $_GET['wcs_stripe_state'] ) ) {
|
88 |
|
89 |
$response = $this->connect_oauth( wc_clean( wp_unslash( $_GET['wcs_stripe_state'] ) ), wc_clean( wp_unslash( $_GET['wcs_stripe_code'] ) ) );
|
90 |
-
wp_safe_redirect( remove_query_arg( [ 'wcs_stripe_state', 'wcs_stripe_code' ] ) );
|
91 |
exit;
|
92 |
|
93 |
// redirect from credentials reset
|
@@ -99,11 +99,13 @@ if ( ! class_exists( 'WC_Stripe_Connect' ) ) {
|
|
99 |
|
100 |
$this->clear_stripe_keys();
|
101 |
wp_safe_redirect(
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
|
|
|
|
107 |
)
|
108 |
);
|
109 |
exit;
|
87 |
if ( isset( $_GET['wcs_stripe_code'], $_GET['wcs_stripe_state'] ) ) {
|
88 |
|
89 |
$response = $this->connect_oauth( wc_clean( wp_unslash( $_GET['wcs_stripe_state'] ) ), wc_clean( wp_unslash( $_GET['wcs_stripe_code'] ) ) );
|
90 |
+
wp_safe_redirect( esc_url_raw( remove_query_arg( [ 'wcs_stripe_state', 'wcs_stripe_code' ] ) ) );
|
91 |
exit;
|
92 |
|
93 |
// redirect from credentials reset
|
99 |
|
100 |
$this->clear_stripe_keys();
|
101 |
wp_safe_redirect(
|
102 |
+
esc_url_raw(
|
103 |
+
remove_query_arg(
|
104 |
+
[
|
105 |
+
'_wpnonce',
|
106 |
+
'reset_stripe_api_credentials',
|
107 |
+
]
|
108 |
+
)
|
109 |
)
|
110 |
);
|
111 |
exit;
|
languages/woocommerce-gateway-stripe.pot
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
# This file is distributed under the same license as the WooCommerce Stripe Gateway plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WooCommerce Stripe Gateway 6.4.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-gateway-stripe\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2022-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.5.0\n"
|
15 |
"X-Domain: woocommerce-gateway-stripe\n"
|
2 |
# This file is distributed under the same license as the WooCommerce Stripe Gateway plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WooCommerce Stripe Gateway 6.4.1\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-gateway-stripe\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2022-06-01T22:39:17+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.5.0\n"
|
15 |
"X-Domain: woocommerce-gateway-stripe\n"
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: credit card, stripe, apple pay, payment request, google pay, sepa, sofort,
|
|
4 |
Requires at least: 5.7
|
5 |
Tested up to: 5.9
|
6 |
Requires PHP: 7.0
|
7 |
-
Stable tag: 6.4.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
Attributions: thorsten-stripe
|
@@ -128,8 +128,7 @@ If you get stuck, you can ask for help in the Plugin Forum.
|
|
128 |
|
129 |
== Changelog ==
|
130 |
|
131 |
-
= 6.4.
|
132 |
-
* Fix -
|
133 |
-
* Tweak - Updated the minimum supported versions of WordPress and WooCommerce.
|
134 |
|
135 |
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).
|
4 |
Requires at least: 5.7
|
5 |
Tested up to: 5.9
|
6 |
Requires PHP: 7.0
|
7 |
+
Stable tag: 6.4.1
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
Attributions: thorsten-stripe
|
128 |
|
129 |
== Changelog ==
|
130 |
|
131 |
+
= 6.4.1 - 2022-06-01 =
|
132 |
+
* Fix - Ensure proper URL formatting.
|
|
|
133 |
|
134 |
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).
|
woocommerce-gateway-stripe.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Take credit card payments on your store using Stripe.
|
6 |
* Author: WooCommerce
|
7 |
* Author URI: https://woocommerce.com/
|
8 |
-
* Version: 6.4.
|
9 |
* Requires at least: 5.7
|
10 |
* Tested up to: 5.9
|
11 |
* WC requires at least: 6.2
|
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
21 |
/**
|
22 |
* Required minimums and constants
|
23 |
*/
|
24 |
-
define( 'WC_STRIPE_VERSION', '6.4.
|
25 |
define( 'WC_STRIPE_MIN_PHP_VER', '7.0.0' );
|
26 |
define( 'WC_STRIPE_MIN_WC_VER', '6.2' );
|
27 |
define( 'WC_STRIPE_FUTURE_MIN_WC_VER', '6.3' );
|
5 |
* Description: Take credit card payments on your store using Stripe.
|
6 |
* Author: WooCommerce
|
7 |
* Author URI: https://woocommerce.com/
|
8 |
+
* Version: 6.4.1
|
9 |
* Requires at least: 5.7
|
10 |
* Tested up to: 5.9
|
11 |
* WC requires at least: 6.2
|
21 |
/**
|
22 |
* Required minimums and constants
|
23 |
*/
|
24 |
+
define( 'WC_STRIPE_VERSION', '6.4.1' ); // WRCS: DEFINED_VERSION.
|
25 |
define( 'WC_STRIPE_MIN_PHP_VER', '7.0.0' );
|
26 |
define( 'WC_STRIPE_MIN_WC_VER', '6.2' );
|
27 |
define( 'WC_STRIPE_FUTURE_MIN_WC_VER', '6.3' );
|