Version Description
- 2019-10-02 =
- Fix - WooCommerce Subscriptions that use only the Stripe customer ID can again be renewed
Download this release
Release Info
| Developer | woothemes |
| Plugin | |
| Version | 4.2.5 |
| Comparing to | |
| See all releases | |
Code changes from version 4.2.4 to 4.2.5
changelog.txt
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
*** Changelog ***
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
= 4.2.4 - 2019-09-18 =
|
| 4 |
* Fix - Unclear error message when email address not completely filled in.
|
| 5 |
* Fix - Add payment request button compatibility with variable subscriptions
|
| 1 |
*** Changelog ***
|
| 2 |
|
| 3 |
+
= 4.2.5 - 2019-10-02 =
|
| 4 |
+
* Fix - WooCommerce Subscriptions that use only the Stripe customer ID can again be renewed
|
| 5 |
+
|
| 6 |
= 4.2.4 - 2019-09-18 =
|
| 7 |
* Fix - Unclear error message when email address not completely filled in.
|
| 8 |
* Fix - Add payment request button compatibility with variable subscriptions
|
includes/compat/class-wc-stripe-subs-compat.php
CHANGED
|
@@ -284,9 +284,8 @@ class WC_Stripe_Subs_Compat extends WC_Gateway_Stripe {
|
|
| 284 |
$full_request = $this->generate_payment_request( $order, $prepared_source );
|
| 285 |
|
| 286 |
$request = array(
|
| 287 |
-
'source' => $prepared_source->source,
|
| 288 |
'amount' => WC_Stripe_Helper::get_stripe_amount( $amount, $full_request['currency'] ),
|
| 289 |
-
'currency' =>
|
| 290 |
'description' => $full_request['description'],
|
| 291 |
'metadata' => $full_request['metadata'],
|
| 292 |
'payment_method_types' => array(
|
|
@@ -301,8 +300,12 @@ class WC_Stripe_Subs_Compat extends WC_Gateway_Stripe {
|
|
| 301 |
$request['statement_descriptor'] = $full_request['statement_descriptor'];
|
| 302 |
}
|
| 303 |
|
| 304 |
-
if ( $
|
| 305 |
-
$request['customer'] = $
|
|
|
|
|
|
|
|
|
|
|
|
|
| 306 |
}
|
| 307 |
|
| 308 |
$intent = WC_Stripe_API::request( $request, 'payment_intents' );
|
| 284 |
$full_request = $this->generate_payment_request( $order, $prepared_source );
|
| 285 |
|
| 286 |
$request = array(
|
|
|
|
| 287 |
'amount' => WC_Stripe_Helper::get_stripe_amount( $amount, $full_request['currency'] ),
|
| 288 |
+
'currency' => $full_request['currency'],
|
| 289 |
'description' => $full_request['description'],
|
| 290 |
'metadata' => $full_request['metadata'],
|
| 291 |
'payment_method_types' => array(
|
| 300 |
$request['statement_descriptor'] = $full_request['statement_descriptor'];
|
| 301 |
}
|
| 302 |
|
| 303 |
+
if ( isset( $full_request['customer'] ) ) {
|
| 304 |
+
$request['customer'] = $full_request['customer'];
|
| 305 |
+
}
|
| 306 |
+
|
| 307 |
+
if ( isset( $full_request['source'] ) ) {
|
| 308 |
+
$request['source'] = $full_request['source'];
|
| 309 |
}
|
| 310 |
|
| 311 |
$intent = WC_Stripe_API::request( $request, 'payment_intents' );
|
languages/woocommerce-gateway-stripe.pot
CHANGED
|
@@ -5,7 +5,7 @@ msgstr ""
|
|
| 5 |
"Project-Id-Version: WooCommerce Stripe Gateway 4.2.4\n"
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"https://wordpress.org/support/plugin/woocommerce-gateway-stripe\n"
|
| 8 |
-
"POT-Creation-Date: 2019-
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
|
@@ -206,8 +206,8 @@ msgstr ""
|
|
| 206 |
|
| 207 |
#: includes/admin/class-wc-stripe-privacy.php:41
|
| 208 |
#: includes/compat/class-wc-stripe-sepa-subs-compat.php:463
|
| 209 |
-
#: includes/compat/class-wc-stripe-subs-compat.php:
|
| 210 |
-
#: includes/compat/class-wc-stripe-subs-compat.php:
|
| 211 |
msgid "N/A"
|
| 212 |
msgstr ""
|
| 213 |
|
|
@@ -1105,20 +1105,20 @@ msgid "Customer not found"
|
|
| 1105 |
msgstr ""
|
| 1106 |
|
| 1107 |
#: includes/compat/class-wc-stripe-sepa-subs-compat.php:386
|
| 1108 |
-
#: includes/compat/class-wc-stripe-subs-compat.php:
|
| 1109 |
#. translators: error message
|
| 1110 |
msgid "A \"Stripe Customer ID\" value is required."
|
| 1111 |
msgstr ""
|
| 1112 |
|
| 1113 |
#: includes/compat/class-wc-stripe-sepa-subs-compat.php:388
|
| 1114 |
-
#: includes/compat/class-wc-stripe-subs-compat.php:
|
| 1115 |
msgid ""
|
| 1116 |
"Invalid customer ID. A valid \"Stripe Customer ID\" must begin with "
|
| 1117 |
"\"cus_\"."
|
| 1118 |
msgstr ""
|
| 1119 |
|
| 1120 |
#: includes/compat/class-wc-stripe-sepa-subs-compat.php:397
|
| 1121 |
-
#: includes/compat/class-wc-stripe-subs-compat.php:
|
| 1122 |
msgid ""
|
| 1123 |
"Invalid source ID. A valid source \"Stripe Source ID\" must begin with "
|
| 1124 |
"\"src_\" or \"card_\"."
|
|
@@ -1135,7 +1135,7 @@ msgid ""
|
|
| 1135 |
"not been charge. Please try with alternative payment method."
|
| 1136 |
msgstr ""
|
| 1137 |
|
| 1138 |
-
#: includes/compat/class-wc-stripe-subs-compat.php:
|
| 1139 |
#. translators: 1) card brand 2) last 4 digits
|
| 1140 |
msgid "Via %1$s card ending in %2$s"
|
| 1141 |
msgstr ""
|
| 5 |
"Project-Id-Version: WooCommerce Stripe Gateway 4.2.4\n"
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"https://wordpress.org/support/plugin/woocommerce-gateway-stripe\n"
|
| 8 |
+
"POT-Creation-Date: 2019-10-02 17:24:17+00:00\n"
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
| 206 |
|
| 207 |
#: includes/admin/class-wc-stripe-privacy.php:41
|
| 208 |
#: includes/compat/class-wc-stripe-sepa-subs-compat.php:463
|
| 209 |
+
#: includes/compat/class-wc-stripe-subs-compat.php:529
|
| 210 |
+
#: includes/compat/class-wc-stripe-subs-compat.php:544
|
| 211 |
msgid "N/A"
|
| 212 |
msgstr ""
|
| 213 |
|
| 1105 |
msgstr ""
|
| 1106 |
|
| 1107 |
#: includes/compat/class-wc-stripe-sepa-subs-compat.php:386
|
| 1108 |
+
#: includes/compat/class-wc-stripe-subs-compat.php:452
|
| 1109 |
#. translators: error message
|
| 1110 |
msgid "A \"Stripe Customer ID\" value is required."
|
| 1111 |
msgstr ""
|
| 1112 |
|
| 1113 |
#: includes/compat/class-wc-stripe-sepa-subs-compat.php:388
|
| 1114 |
+
#: includes/compat/class-wc-stripe-subs-compat.php:454
|
| 1115 |
msgid ""
|
| 1116 |
"Invalid customer ID. A valid \"Stripe Customer ID\" must begin with "
|
| 1117 |
"\"cus_\"."
|
| 1118 |
msgstr ""
|
| 1119 |
|
| 1120 |
#: includes/compat/class-wc-stripe-sepa-subs-compat.php:397
|
| 1121 |
+
#: includes/compat/class-wc-stripe-subs-compat.php:463
|
| 1122 |
msgid ""
|
| 1123 |
"Invalid source ID. A valid source \"Stripe Source ID\" must begin with "
|
| 1124 |
"\"src_\" or \"card_\"."
|
| 1135 |
"not been charge. Please try with alternative payment method."
|
| 1136 |
msgstr ""
|
| 1137 |
|
| 1138 |
+
#: includes/compat/class-wc-stripe-subs-compat.php:544
|
| 1139 |
#. translators: 1) card brand 2) last 4 digits
|
| 1140 |
msgid "Via %1$s card ending in %2$s"
|
| 1141 |
msgstr ""
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Tags: credit card, stripe, apple pay, payment request, google pay, sepa, sofort,
|
|
| 4 |
Requires at least: 4.4
|
| 5 |
Tested up to: 5.2.2
|
| 6 |
Requires PHP: 5.6
|
| 7 |
-
Stable tag: 4.2.
|
| 8 |
License: GPLv3
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
Attributions: thorsten-stripe
|
|
@@ -113,6 +113,9 @@ If you get stuck, you can ask for help in the Plugin Forum.
|
|
| 113 |
|
| 114 |
== Changelog ==
|
| 115 |
|
|
|
|
|
|
|
|
|
|
| 116 |
= 4.2.4 - 2019-09-18 =
|
| 117 |
* Fix - Unclear error message when email address not completely filled in.
|
| 118 |
* Fix - Add payment request button compatibility with variable subscriptions
|
| 4 |
Requires at least: 4.4
|
| 5 |
Tested up to: 5.2.2
|
| 6 |
Requires PHP: 5.6
|
| 7 |
+
Stable tag: 4.2.5
|
| 8 |
License: GPLv3
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
Attributions: thorsten-stripe
|
| 113 |
|
| 114 |
== Changelog ==
|
| 115 |
|
| 116 |
+
= 4.2.5 - 2019-10-02 =
|
| 117 |
+
* Fix - WooCommerce Subscriptions that use only the Stripe customer ID can again be renewed
|
| 118 |
+
|
| 119 |
= 4.2.4 - 2019-09-18 =
|
| 120 |
* Fix - Unclear error message when email address not completely filled in.
|
| 121 |
* Fix - Add payment request button compatibility with variable subscriptions
|
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: 4.2.
|
| 9 |
* Requires at least: 4.4
|
| 10 |
* Tested up to: 5.2.2
|
| 11 |
* WC requires at least: 2.6
|
|
@@ -46,7 +46,7 @@ function woocommerce_gateway_stripe_init() {
|
|
| 46 |
/**
|
| 47 |
* Required minimums and constants
|
| 48 |
*/
|
| 49 |
-
define( 'WC_STRIPE_VERSION', '4.2.
|
| 50 |
define( 'WC_STRIPE_MIN_PHP_VER', '5.6.0' );
|
| 51 |
define( 'WC_STRIPE_MIN_WC_VER', '2.6.0' );
|
| 52 |
define( 'WC_STRIPE_MAIN_FILE', __FILE__ );
|
| 5 |
* Description: Take credit card payments on your store using Stripe.
|
| 6 |
* Author: WooCommerce
|
| 7 |
* Author URI: https://woocommerce.com/
|
| 8 |
+
* Version: 4.2.5
|
| 9 |
* Requires at least: 4.4
|
| 10 |
* Tested up to: 5.2.2
|
| 11 |
* WC requires at least: 2.6
|
| 46 |
/**
|
| 47 |
* Required minimums and constants
|
| 48 |
*/
|
| 49 |
+
define( 'WC_STRIPE_VERSION', '4.2.5' );
|
| 50 |
define( 'WC_STRIPE_MIN_PHP_VER', '5.6.0' );
|
| 51 |
define( 'WC_STRIPE_MIN_WC_VER', '2.6.0' );
|
| 52 |
define( 'WC_STRIPE_MAIN_FILE', __FILE__ );
|
