add support to milti transaction

This commit is contained in:
2026-01-13 03:18:05 -03:00
parent ad23e9aa51
commit da10a36a1d
11 changed files with 287 additions and 56 deletions

View File

@@ -40,7 +40,7 @@ class PaymentMethod(str, Enum):
PIX = 'PIX'
CREDIT_CARD = 'CREDIT_CARD'
BANK_SLIP = 'BANK_SLIP'
MANUAL = 'MANUAL'
# MANUAL = 'MANUAL'
class User(BaseModel):
@@ -213,8 +213,8 @@ def checkout(payload: Checkout):
)
transact.put(
item={
'id': 'TRANSACTION',
'sk': order_id,
'id': order_id,
'sk': 'CREDIT_CARD#PAYMENT_INTENT',
'ttl': ttl(start_dt=now_, minutes=5),
'created_at': now_,
}