How upaymentskwt/uinterface-ios works
uInterfaceSDK is an iOS payment-integration SDK distributed as a prebuilt XCFramework, accompanied here by a sample app. The sample configures the SDK at launch, gathers payment and customer details, and invokes payment, invoice, refund, and card APIs; it also demonstrates customer-token handling. The SDK implementation is not present in the tree, so its internal processing and backend calls cannot be traced. The graph separates documented payment stages from the sample app’s visible API calls and utilities.
Main entry points: ViewController.swift Payment demo · uInterfaceSDK.xcframework Payment API · AppDelegate.swift App startup · JSONUtilities.swift JSON utilities
Components 16
Sample iOS app
- App startup
UInterfaceIOS/AppDelegate.swift - Payment demo
UInterfaceIOS/ViewController.swift - JSON utilities
UInterfaceIOS/Utilities/JSONUtilities.swift - Alert presentation
UInterfaceIOS/Extensions/UIViewController+Alerts.swift
Payment workflow
- Product and order
UInterfaceSDK_Framework/uInterfaceSDK.xcframework - Gateway and tokens
UInterfaceSDK_Framework/uInterfaceSDK.xcframework - Payment request
UInterfaceSDK_Framework/uInterfaceSDK.xcframework
Customer and cards
- Customer details
UInterfaceSDK_Framework/uInterfaceSDK.xcframework - Customer token
UInterfaceIOS/ViewController.swift - Local preferences
SDK integration
- Payment API
UInterfaceSDK_Framework/uInterfaceSDK.xcframework - Invoice API
UInterfaceSDK_Framework/uInterfaceSDK.xcframework - Refund APIs
UInterfaceSDK_Framework/uInterfaceSDK.xcframework - Card APIs
UInterfaceSDK_Framework/uInterfaceSDK.xcframework
Other components
- App user
- Payment backend
Connections 18
- App user → Payment demo: uses
- App startup → Payment API: sets environment
UInterfaceIOS/AppDelegate.swift - Payment demo → Product and order: builds details
UInterfaceIOS/ViewController.swift - Payment demo → Gateway and tokens: builds details
UInterfaceIOS/ViewController.swift - Payment demo → Payment request: creates request
UInterfaceIOS/ViewController.swift - Payment demo → Payment API: creates payment
UInterfaceIOS/ViewController.swift - Payment demo → Invoice API: creates invoice
UInterfaceIOS/ViewController.swift - Payment demo → Refund APIs: manages refunds
UInterfaceIOS/ViewController.swift - Payment demo → Card APIs: manages cards
UInterfaceIOS/ViewController.swift - Payment demo → Customer details: builds details
UInterfaceIOS/ViewController.swift - Payment demo → Customer token: retrieves token
UInterfaceIOS/ViewController.swift - Customer token → Local preferences: reads and writes
UInterfaceIOS/ViewController.swift - Payment demo → JSON utilities: converts JSON
UInterfaceIOS/ViewController.swift - Payment demo → Alert presentation: presents alerts
UInterfaceIOS/Extensions/UIViewController+Alerts.swift - Payment API → Payment backend: processes payments
- Invoice API → Payment backend: submits invoice
- Refund APIs → Payment backend: requests refunds
- Card APIs → Payment backend: manages card data