Can you build a complete checkout experience with product summary, payment options, and order confirmation using SwiftUI or UIKit within an hour?
For grading, implement the checkout behavior as a pure function that processes cart items, available payment options, and user actions. Return the final screen state, calculated total, selected payment method, confirmation status, and validation error.
The function signature and input/output shapes below model the UI behavior without requiring a platform framework.
def checkout_flow(items, payment_options, actions):