feat: added new setting to debug redsys
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user