feat: added new setting to debug redsys

This commit is contained in:
2025-02-19 18:44:37 +01:00
parent 44b1efd0ee
commit 52493f6368
3 changed files with 21 additions and 1 deletions
+2 -1
View File
@@ -30,7 +30,8 @@ class RedsysClient:
return self.PROD_ENVIRONMENT_URL
def get_rest_target_url(self):
if settings.REDSYS_DEBUG:
shop_settings = ShopSettings.load()
if shop_settings.debug:
return self.REST_DEBUG_ENVIRONMENT_URL
return self.REST_PROD_ENVIRONMENT_URL