Fix crypto watcher crash by adding missing app property to ShopContextRequestWrapper

The wrapper class wasn't properly exposing the app attribute needed for email
sending during payment finalization. This caused AttributeError crashes when
processing real payments. Added explicit app property to ensure proper access.
This commit is contained in:
Russell Ballestrini 2025-09-23 16:02:15 -04:00
parent 72ac3d29ca
commit 457b13eef1

View file

@ -345,6 +345,11 @@ class ShopContextRequestWrapper:
def host_url(self):
return self._host_url
@property
def app(self):
"""Proxy app attribute from original request."""
return getattr(self._original_request, 'app', {})
def create_shop_context_request(env_request, crypto_payment: CryptoPayment):
"""Create a request wrapper with shop domain context for email generation."""