fix(пополнение): одно кодирование Receipt в подписи и адресе

Пробелы в JSON кодируются %20, как в строке подписи, а не +;
тест проверяет проводной вид Receipt.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
anor
2026-11-20 23:13:02 +10:00
co-authored by Claude Code
parent d5b2d42112
commit f5c4da425b
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ def create(order: dict) -> dict:
"SignatureValue": sig}
if _test_mode():
params["IsTest"] = "1"
return {"provider_id": inv, "pay_url": f"{PAY_URL}?{urlencode(params)}"}
return {"provider_id": inv, "pay_url": f"{PAY_URL}?{urlencode(params, quote_via=quote)}"}
def ip_allowed(ip: str) -> bool: