diff --git a/changelog.md b/changelog.md index 28a21098dc..b4eb7e41cc 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Changelog +### [5.18.0.1] 2025-01-07 + +* Fix - Resolves problem related to duplication of attendees while using Stripe webhooks with Tickets Commerce. [ET-2279] + ### [5.18.0] 2024-12-17 * Feature - Added option to detach assigned seating tickets from layout and revert them to regular tickets. [SL-214] diff --git a/event-tickets.php b/event-tickets.php index 854149a1ef..4960080218 100644 --- a/event-tickets.php +++ b/event-tickets.php @@ -3,7 +3,7 @@ * Plugin Name: Event Tickets * Plugin URI: https://evnt.is/1acb * Description: Event Tickets allows you to sell basic tickets and collect RSVPs from any post, page, or event. - * Version: 5.18.0 + * Version: 5.18.0.1 * Requires at least: 6.5 * Requires PHP: 7.4 * Author: The Events Calendar diff --git a/readme.txt b/readme.txt index da2e7d9272..ebecad16fb 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: theeventscalendar, brianjessee, camwynsp, redscar, tribalmike, rafsuntaskin, aguseo, bordoni, borkweb, jentheo, leahkoerper, lucatume, neillmcshea, vicskf, zbtirrell Tags: tickets, event registration, RSVP, ticket sales, attendee management -Stable tag: 5.18.0 +Stable tag: 5.18.0.1 Requires at least: 6.5 Tested up to: 6.7.1 Requires PHP: 7.4 @@ -199,6 +199,10 @@ Check out our extensive [knowledgebase](https://evnt.is/18wm) for articles on us == Changelog == += [5.18.0.1] 2025-01-07 = + +* Fix - Resolves problem related to duplication of attendees while using Stripe webhooks with Tickets Commerce. [ET-2279] + = [5.18.0] 2024-12-17 = * Feature - Added option to detach assigned seating tickets from layout and revert them to regular tickets. [SL-214] diff --git a/src/Tickets/Commerce/Gateways/Stripe/Webhooks/Payment_Intent_Webhook.php b/src/Tickets/Commerce/Gateways/Stripe/Webhooks/Payment_Intent_Webhook.php index 285cc0c1f9..84eefe2a72 100644 --- a/src/Tickets/Commerce/Gateways/Stripe/Webhooks/Payment_Intent_Webhook.php +++ b/src/Tickets/Commerce/Gateways/Stripe/Webhooks/Payment_Intent_Webhook.php @@ -120,8 +120,9 @@ protected static function get_payment_intent_data( array $event ): array { * Checks if the payment intent contained in the event received has already been processed. * * @since 5.3.0 - * @since 5.16.0 Remove deprecation notice. - * @since 5.18.0 Only check matching payment intent ids if they are not pending or action required. + * @since 5.16.0 Remove deprecation notice. + * @since 5.18.0 Only check matching payment intent ids if they are not pending or action required. + * @since 5.18.0.1 Removed the check for the payment intent status for pending or action required. * * @param array $payment_intent_received The payment intent data received * @param array[] $payment_intents_stored The payment intent data stored from each update, keyed by status. @@ -135,11 +136,6 @@ public static function should_payment_intent_be_updated( $payment_intent_receive } foreach ( $payment_intents_stored as $status => $intents ) { - // Skip if the status is pending or action required. - if ( in_array( $status, [ Pending::SLUG, Action_Required::SLUG ], true ) ) { - continue; - } - foreach( $intents as $intent ) { // This payment intent has already been processed and updated. if ( $payment_intent_received['id'] === $intent['id'] ) { diff --git a/src/Tribe/Main.php b/src/Tribe/Main.php index 33475c1537..fab30dba4d 100644 --- a/src/Tribe/Main.php +++ b/src/Tribe/Main.php @@ -17,7 +17,7 @@ class Tribe__Tickets__Main { /** * Current version of this plugin. */ - const VERSION = '5.18.0'; + const VERSION = '5.18.0.1'; /** * Used to store the version history. diff --git a/tests/_data/ft_smoketest.sql b/tests/_data/ft_smoketest.sql index 215e94ff0d..b7c015bbe0 100644 --- a/tests/_data/ft_smoketest.sql +++ b/tests/_data/ft_smoketest.sql @@ -1157,4 +1157,4 @@ UNLOCK TABLES; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2024-12-20 15:44:21 +-- Dump completed on 2025-01-06 12:37:04