add route to payment's details

This commit is contained in:
2026-01-13 04:03:09 -03:00
parent da10a36a1d
commit 7e09e49ed8
5 changed files with 84 additions and 13 deletions

View File

@@ -77,7 +77,7 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
transact.put(
item={
'id': order_id,
'sk': f'TRANSACTION#ATTEMPTS#{now_.isoformat()}',
'sk': f'TRANSACTION#ATTEMPT#{now_.isoformat()}',
'brand': credit_card.brand,
'last4': credit_card.last4,
'status': 'SUCCEEDED',
@@ -88,7 +88,7 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
transact.put(
item={
'id': order_id,
'sk': f'TRANSACTION#ATTEMPTS#{now_.isoformat()}',
'sk': f'TRANSACTION#ATTEMPT#{now_.isoformat()}',
'brand': credit_card.brand,
'last4': credit_card.last4,
'status': 'FAILED',