Jul 9, 2024
purchase or refund).process_purchase and process_refund.**Creating Lambda Functions:
process_purchase and process_refund.Writing Lambda Code (process_purchase):
transaction_type set to input value.timestamp using current date/time.Duplicate for Refund Function:
process_refund with identical logic, named accordingly.**process_transaction) routes to correct Lambda based on event type.transaction_type set to purchase or refund).