The Native iOS SDK (uInterfaceSDK) allows you to integrate UPayments payment processing directly into your iOS applications . It handles checkout UI presentation, 3D Secure bank redirects via WebKit, and native Apple Pay via PassKit
🚀 Key Features & Supported Payment Methods
- Supported Payment Methods (iOS): KNET (Kuwait Debit), Credit/Debit Cards (Visa, Mastercard, Amex), and Apple Pay (Native PassKit or Hosted). (Note: Google Pay and Samsung Pay are not supported on iOS).
- Automated Web Redirection: Manages 3D Secure modal verification cleanly inside an in-app web view.
- Native Apple Pay: Automatically presents the native biometric payment sheet when supported and configured.
- Environment Switching: Easily toggle between
.sandboxand.productionenvironments.
📋 Requirements & Prerequisites
- iOS Deployment Target: iOS 13.0 or higher
- Swift Version: Swift 5.0+
- Xcode Version: Xcode 14.0 or newer
- Frameworks: Native Apple frameworks (UIKit, WebKit, PassKit, Foundation) plus the uInterfaceNative companion dependency.
📦 Installation
Swift Package Manager (SPM)
Swift Package Manager is the primary and recommended distribution method for uInterfaceSDK.
- In Xcode, navigate to File → Add Packages.
- Enter the repository URL: GitHub repository
- Set the Dependency Rule to Up to Next Major Version (e.g., starting from 2.0.0) and select your application target.
Note on CocoaPodsCocoaPods distributions (
uInterfaceSDK.podspec) contain legacy versions (v1.1.2). For all new integrations using v2.0+, please use Swift Package Manager (SPM)
🛠 Workflow & Integration Steps
The native iOS integration follows a streamlined three-phase workflow:
- SDK Initialization: Configure the SDK once during application startup using your API credentials and environment settings.
- Payment Execution: Assemble your order information and launch the payment process directly inside your app. The SDK automatically manages payment method selection, native Apple Pay sheets, and 3D Secure verification pages.
- Result Handling & Verification: Capture the local transaction completion callback to update your frontend user experience.
👉 Implementation Guidelines & Code Samples:
For step-by-step technical guides, complete Swift code samples, and data model references, please refer directly to the official uInterface-iOS GitHub Repository.
CRITICAL: Inspecting Payment Status & Order Fulfillment🚨 IMPORTANT SECURITY WARNING: Receiving a completion callback in your mobile app does NOT automatically mean the payment was captured or paid.
The SDK returns a callback whenever the checkout interaction completes (including when a payment is declined or cancelled by the user). Merchants MUST inspect the transaction status field to confirm whether the status is CAPTURED versus DECLINED or CANCELED.
🔒 Verification & Security Best Practices
Server-Side Source of Truth
To prevent fraud and tampering, never fulfill orders solely based on in-app callbacks:
- Webhook (
notificationURL): Rely on your backend webhook as the primary source of truth for payment status. - Status Inquiry: Query the
/api/v1/get-payment-status/{track_id}endpoint from your backend if a webhook is delayed.
