add filter to test_mode

This commit is contained in:
2026-01-27 10:26:05 -03:00
parent a9d5ba1352
commit 5ca514095a
5 changed files with 233 additions and 60 deletions

View File

@@ -184,6 +184,7 @@ def checkout(payload: Checkout):
if payload.installments
else {}
)
| ({'test_mode': True} if 'iugu_api_token' in settings else {})
| payload.model_dump()
)