Skip to main content

iOS and SwiftUI demo

Build a SwiftUI storefront that opens Inttegro’s native payment sheet. The app receives an order ID from your backend—never an API key.

See the flow

These captures show the payment-ready and completed states on iOS.

iOS
2 steps

React Native and Flutter use these same native payment sheets instead of reimplementing checkout. The Android robot is reproduced from work created and shared by Google and used according to the Creative Commons 3.0 Attribution License.

What you’ll build

  • A native SwiftUI product detail experience
  • An Inttegro SDK dependency resolved with Swift Package Manager
  • Native payment-sheet presentation and return handling
  • A backend boundary that keeps credentials off-device

Run the demo

Install Xcode and XcodeGen, generate the project, set the backend URL, and run an iPhone simulator. The released README has the exact commands.

Key files

  1. DemoBackend.swift requests the order ID from your backend.
  2. CheckoutView.swift presents the payment sheet and handles its lifecycle.

Before you ship

Authenticate calls to your backend and create the complete order there. Verify payment on the server before fulfillment.

Next