Version Description
- 2020-11-17 =
- Fix - Guard against fatal errors that may occur on inbox data store load.
See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/master/changelog.txt).
Download this release
Release Info
| Developer | automattic |
| Plugin | |
| Version | 4.5.5 |
| Comparing to | |
| See all releases | |
Code changes from version 4.5.4 to 4.5.5
- changelog.txt +3 -0
- includes/admin/class-wc-stripe-inbox-notes.php +19 -13
- languages/woocommerce-gateway-stripe.pot +8 -8
- readme.txt +5 -18
- woocommerce-gateway-stripe.php +2 -2
changelog.txt
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
*** Changelog ***
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
= 4.5.4 - 2020-11-16 =
|
| 4 |
* Add - Stripe Connect OAuth.
|
| 5 |
* Tweak - Add site_url to all transactions, not just recurring ones.
|
| 1 |
*** Changelog ***
|
| 2 |
|
| 3 |
+
= 4.5.5 - 2020-11-17 =
|
| 4 |
+
* Fix - Guard against fatal errors that may occur on inbox data store load.
|
| 5 |
+
|
| 6 |
= 4.5.4 - 2020-11-16 =
|
| 7 |
* Add - Stripe Connect OAuth.
|
| 8 |
* Tweak - Add site_url to all transactions, not just recurring ones.
|
includes/admin/class-wc-stripe-inbox-notes.php
CHANGED
|
@@ -39,16 +39,18 @@ class WC_Stripe_Inbox_Notes {
|
|
| 39 |
}
|
| 40 |
|
| 41 |
// If the domain verification completed after failure note was created, make sure it's marked as actioned.
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
$note
|
| 49 |
-
|
|
|
|
|
|
|
| 50 |
}
|
| 51 |
-
}
|
| 52 |
} else {
|
| 53 |
if ( empty( $failure_note_ids ) ) {
|
| 54 |
self::create_failure_note();
|
|
@@ -76,10 +78,14 @@ class WC_Stripe_Inbox_Notes {
|
|
| 76 |
}
|
| 77 |
|
| 78 |
// Make sure note doesn't already exist.
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
}
|
| 84 |
|
| 85 |
return true;
|
| 39 |
}
|
| 40 |
|
| 41 |
// If the domain verification completed after failure note was created, make sure it's marked as actioned.
|
| 42 |
+
try {
|
| 43 |
+
$data_store = WC_Data_Store::load( 'admin-note' );
|
| 44 |
+
$failure_note_ids = $data_store->get_notes_with_name( self::FAILURE_NOTE_NAME );
|
| 45 |
+
if ( ! empty( $failure_note_ids ) ) {
|
| 46 |
+
$note_id = array_pop( $failure_note_ids );
|
| 47 |
+
$note = WC_Admin_Notes::get_note( $note_id );
|
| 48 |
+
if ( false !== $note && WC_Admin_Note::E_WC_ADMIN_NOTE_ACTIONED !== $note->get_status() ) {
|
| 49 |
+
$note->set_status( WC_Admin_Note::E_WC_ADMIN_NOTE_ACTIONED );
|
| 50 |
+
$note->save();
|
| 51 |
+
}
|
| 52 |
}
|
| 53 |
+
} catch ( Exception $e ) {} // @codingStandardsIgnoreLine.
|
| 54 |
} else {
|
| 55 |
if ( empty( $failure_note_ids ) ) {
|
| 56 |
self::create_failure_note();
|
| 78 |
}
|
| 79 |
|
| 80 |
// Make sure note doesn't already exist.
|
| 81 |
+
try {
|
| 82 |
+
$data_store = WC_Data_Store::load( 'admin-note' );
|
| 83 |
+
$success_note_ids = $data_store->get_notes_with_name( self::SUCCESS_NOTE_NAME );
|
| 84 |
+
if ( ! empty( $success_note_ids ) ) {
|
| 85 |
+
return false;
|
| 86 |
+
}
|
| 87 |
+
} catch ( Exception $e ) {
|
| 88 |
+
return false; // If unable to check, assume it shouldn't show note.
|
| 89 |
}
|
| 90 |
|
| 91 |
return true;
|
languages/woocommerce-gateway-stripe.pot
CHANGED
|
@@ -2,10 +2,10 @@
|
|
| 2 |
# This file is distributed under the same license as the WooCommerce Stripe Gateway package.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: WooCommerce Stripe Gateway 4.5.
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"https://wordpress.org/support/plugin/woocommerce-gateway-stripe\n"
|
| 8 |
-
"POT-Creation-Date: 2020-11-
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
|
@@ -188,33 +188,33 @@ msgstr ""
|
|
| 188 |
msgid "Cheatin’ huh?"
|
| 189 |
msgstr ""
|
| 190 |
|
| 191 |
-
#: includes/admin/class-wc-stripe-inbox-notes.php:
|
| 192 |
msgid "Boost sales this holiday season with Apple Pay!"
|
| 193 |
msgstr ""
|
| 194 |
|
| 195 |
-
#: includes/admin/class-wc-stripe-inbox-notes.php:
|
| 196 |
msgid ""
|
| 197 |
"Now that you accept Apple Pay® with Stripe, you can increase conversion "
|
| 198 |
"rates by letting your customers know that Apple Pay is available. Here’s a "
|
| 199 |
"marketing guide to help you get started."
|
| 200 |
msgstr ""
|
| 201 |
|
| 202 |
-
#: includes/admin/class-wc-stripe-inbox-notes.php:
|
| 203 |
msgid "See marketing guide"
|
| 204 |
msgstr ""
|
| 205 |
|
| 206 |
-
#: includes/admin/class-wc-stripe-inbox-notes.php:
|
| 207 |
msgid "Apple Pay domain verification needed"
|
| 208 |
msgstr ""
|
| 209 |
|
| 210 |
-
#: includes/admin/class-wc-stripe-inbox-notes.php:
|
| 211 |
msgid ""
|
| 212 |
"The WooCommerce Stripe Gateway extension attempted to perform domain "
|
| 213 |
"verification on behalf of your store, but was unable to do so. This must be "
|
| 214 |
"resolved before Apple Pay can be offered to your customers."
|
| 215 |
msgstr ""
|
| 216 |
|
| 217 |
-
#: includes/admin/class-wc-stripe-inbox-notes.php:
|
| 218 |
msgid "Learn more"
|
| 219 |
msgstr ""
|
| 220 |
|
| 2 |
# This file is distributed under the same license as the WooCommerce Stripe Gateway package.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: WooCommerce Stripe Gateway 4.5.5\n"
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"https://wordpress.org/support/plugin/woocommerce-gateway-stripe\n"
|
| 8 |
+
"POT-Creation-Date: 2020-11-17 04:59:40+00:00\n"
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
| 188 |
msgid "Cheatin’ huh?"
|
| 189 |
msgstr ""
|
| 190 |
|
| 191 |
+
#: includes/admin/class-wc-stripe-inbox-notes.php:104
|
| 192 |
msgid "Boost sales this holiday season with Apple Pay!"
|
| 193 |
msgstr ""
|
| 194 |
|
| 195 |
+
#: includes/admin/class-wc-stripe-inbox-notes.php:105
|
| 196 |
msgid ""
|
| 197 |
"Now that you accept Apple Pay® with Stripe, you can increase conversion "
|
| 198 |
"rates by letting your customers know that Apple Pay is available. Here’s a "
|
| 199 |
"marketing guide to help you get started."
|
| 200 |
msgstr ""
|
| 201 |
|
| 202 |
+
#: includes/admin/class-wc-stripe-inbox-notes.php:111
|
| 203 |
msgid "See marketing guide"
|
| 204 |
msgstr ""
|
| 205 |
|
| 206 |
+
#: includes/admin/class-wc-stripe-inbox-notes.php:122
|
| 207 |
msgid "Apple Pay domain verification needed"
|
| 208 |
msgstr ""
|
| 209 |
|
| 210 |
+
#: includes/admin/class-wc-stripe-inbox-notes.php:123
|
| 211 |
msgid ""
|
| 212 |
"The WooCommerce Stripe Gateway extension attempted to perform domain "
|
| 213 |
"verification on behalf of your store, but was unable to do so. This must be "
|
| 214 |
"resolved before Apple Pay can be offered to your customers."
|
| 215 |
msgstr ""
|
| 216 |
|
| 217 |
+
#: includes/admin/class-wc-stripe-inbox-notes.php:129
|
| 218 |
msgid "Learn more"
|
| 219 |
msgstr ""
|
| 220 |
|
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.5
|
| 6 |
Requires PHP: 5.6
|
| 7 |
-
Stable tag: 4.5.
|
| 8 |
License: GPLv3
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
Attributions: thorsten-stripe
|
|
@@ -126,21 +126,8 @@ If you get stuck, you can ask for help in the Plugin Forum.
|
|
| 126 |
|
| 127 |
== Changelog ==
|
| 128 |
|
| 129 |
-
= 4.5.
|
| 130 |
-
*
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
* Add - Accept payments via AliPay when store currency is set to CNY.
|
| 134 |
-
* Tweak - Wording of Apple Pay link.
|
| 135 |
-
* Fix - Serve Apple Pay domain verification file via a rewrite rule.
|
| 136 |
-
* Add - Add Inbox note for Apple Pay domain verification if needed.
|
| 137 |
-
* Add - Apple Pay holiday marketing notice.
|
| 138 |
-
* Fix - Apple Pay: Ensure payer phone is available before attempting to access it.
|
| 139 |
-
* Add - Pass payment method for renewal charges if not a source.
|
| 140 |
-
* Fix - Ensure defaults are used for missing settings.
|
| 141 |
-
* Add - Add shipping address to payment requests.
|
| 142 |
-
* Fix - Fix the Not a valid URL notice.
|
| 143 |
-
* Add - Security.md with security and vulnerability reporting guidelines.
|
| 144 |
-
|
| 145 |
-
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/master/changelog.txt).
|
| 146 |
|
| 4 |
Requires at least: 4.4
|
| 5 |
Tested up to: 5.5
|
| 6 |
Requires PHP: 5.6
|
| 7 |
+
Stable tag: 4.5.5
|
| 8 |
License: GPLv3
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
Attributions: thorsten-stripe
|
| 126 |
|
| 127 |
== Changelog ==
|
| 128 |
|
| 129 |
+
= 4.5.5 - 2020-11-17 =
|
| 130 |
+
* Fix - Guard against fatal errors that may occur on inbox data store load.
|
| 131 |
+
|
| 132 |
+
See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/master/changelog.txt).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
|
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.5.
|
| 9 |
* Requires at least: 4.4
|
| 10 |
* Tested up to: 5.5
|
| 11 |
* WC requires at least: 3.0
|
|
@@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 22 |
/**
|
| 23 |
* Required minimums and constants
|
| 24 |
*/
|
| 25 |
-
define( 'WC_STRIPE_VERSION', '4.5.
|
| 26 |
define( 'WC_STRIPE_MIN_PHP_VER', '5.6.0' );
|
| 27 |
define( 'WC_STRIPE_MIN_WC_VER', '3.0' );
|
| 28 |
define( 'WC_STRIPE_FUTURE_MIN_WC_VER', '3.0' );
|
| 5 |
* Description: Take credit card payments on your store using Stripe.
|
| 6 |
* Author: WooCommerce
|
| 7 |
* Author URI: https://woocommerce.com/
|
| 8 |
+
* Version: 4.5.5
|
| 9 |
* Requires at least: 4.4
|
| 10 |
* Tested up to: 5.5
|
| 11 |
* WC requires at least: 3.0
|
| 22 |
/**
|
| 23 |
* Required minimums and constants
|
| 24 |
*/
|
| 25 |
+
define( 'WC_STRIPE_VERSION', '4.5.5' ); // WRCS: DEFINED_VERSION.
|
| 26 |
define( 'WC_STRIPE_MIN_PHP_VER', '5.6.0' );
|
| 27 |
define( 'WC_STRIPE_MIN_WC_VER', '3.0' );
|
| 28 |
define( 'WC_STRIPE_FUTURE_MIN_WC_VER', '3.0' );
|
