- 🇮🇪Ireland marksmith
Coming back to this issue upon an update of the Stripe payment method, which also affects Commerce Ticketing. I'm not sure where the problem may be. Sorry if choosing the wrong forum.
Having Commerce Stripe 8.x-1.0 as the payment gateway, the commerce tickets were created as expected, but failed to be activated on order completion (even if this was the expected behaviour set on the product variation page, the ticket state remained: Created).
After updating to the recent Commerce Stripe 8.x-1.1 the tickets are indeed activated (!) on order completion, but each ticket is created (and activated) twice.
- 🇮🇪Ireland marksmith
On a closer look, this has nothing to do with Stripe (although it appeared on my site after I deleted and recreated a Stripe payment gateway). It duplicates tickets with any (including Manual) payment method.
When the option “Automatically create a ticket for every order line item” is enabled, a ticket is generated automatically at order placement.
At the same time, a subscriber on ORDER_PAID also creates tickets.
When the invoice is marked as paid, the ORDER_PAID event is triggered again, creating another set of tickets.
This leads to duplicate tickets for the same order.This patch fixes the problem.
Reroll of the patch for the 2.x branch.