feat: added new setting to debug redsys

This commit is contained in:
2025-02-19 18:52:19 +01:00
parent 52493f6368
commit 658f5d6749
+2 -1
View File
@@ -25,7 +25,8 @@ class RedsysClient:
self.settings = ShopSettings.load()
def get_target_url(self):
if settings.DEBUG:
shop_settings = ShopSettings.load()
if shop_settings.debug:
return self.DEBUG_ENVIRONMENT_URL
return self.PROD_ENVIRONMENT_URL