separated clients handlers, cart->checkout ppline

This commit is contained in:
2026-02-11 20:53:47 +07:00
parent 6409d66dfd
commit a3aaafd7ac
20 changed files with 658 additions and 369 deletions

10
misc/utils.py Normal file
View File

@@ -0,0 +1,10 @@
import phonenumbers
from phonenumbers import NumberParseException
def is_valid_phone(phone: str, region="RU") -> bool:
try:
parsed = phonenumbers.parse(phone, region)
return phonenumbers.is_valid_number(parsed)
except NumberParseException:
return False