Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ Product configuration
Changelog
---------

v4.5.5 (04 May 2026)
~~~~~~~~~~~~~~~~~~~~

- Extract subscription ID from `order.completed` events only for WIRE payments


v4.5.4 (15 Apr 2026)
~~~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_install_requires(path):

setup(
name="kiwitcms-github-marketplace",
version="4.5.4",
version="4.5.5",
description="GitHub Marketplace integration for Kiwi TCMS",
long_description=get_long_description(),
author="Kiwi TCMS",
Expand Down
8 changes: 7 additions & 1 deletion tcms_github_marketplace/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,13 @@ def purchase_subscription(self, event):
if isinstance(subscription, dict):
subscription = subscription["id"]
elif "order" in data:
subscription = data["order"]
# extract subscription ID only for order.completed events which are related to
# WIRE payments b/c for subscriptions we also receive such an event and that
# messes up the ViewSubscription view b/c subscription ID is different from the ID
# received in the 'purchased' event
event_as_string = json.dumps(event)
if "-for-1-year" in event_as_string or "-for-3-years" in event_as_string:
subscription = data["order"]

return f"fs-{subscription}"

Expand Down
Loading