Mobile SDKs

Native Mobile SDKs

Build seamless payment experiences in your iOS and Android applications with our native SDKs.

Platform Support

iOS SDK
Native Swift and Objective-C support
  • • iOS 12.0+ support
  • • Swift Package Manager
  • • CocoaPods integration
  • • Apple Pay support
  • • SwiftUI components
A
Android SDK
Native Java and Kotlin support
  • • Android 5.0+ (API 21+)
  • • Gradle integration
  • • Maven Central
  • • Google Pay support
  • • Jetpack Compose

SDK Features

Quick Integration
Get up and running in minutes
  • • Pre-built UI components
  • • Drop-in payment forms
  • • Customizable themes
  • • One-line integration
Secure by Default
PCI compliant out of the box
  • • End-to-end encryption
  • • Tokenization
  • • Biometric authentication
  • • Device fingerprinting
Mobile Optimized
Built for mobile-first experiences
  • • Touch-friendly interfaces
  • • Camera card scanning
  • • Offline support
  • • Push notifications

Implementation Examples

iOS Swift Example
Initialize PayAiML in your iOS app
import PayAiML

class ViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        
        // Configure PayAiML
        PayAiMLAPI.defaultPublishableKey = "pk_test_..."
        
        // Create payment sheet
        let paymentSheet = PaymentSheet(
            paymentIntentClientSecret: clientSecret,
            configuration: configuration
        )
        
        // Present payment sheet
        paymentSheet.present(from: self) { result in
            switch result {
            case .completed:
                print("Payment completed!")
            case .canceled:
                print("Payment canceled")
            case .failed(let error):
                print("Payment failed: \(error)")
            }
        }
    }
}
Android Kotlin Example
Initialize PayAiML in your Android app
import com.payaiml.android.PaymentConfiguration
import com.payaiml.android.paymentsheet.PaymentSheet

class MainActivity : AppCompatActivity() {
    private lateinit var paymentSheet: PaymentSheet
    
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        
        // Configure PayAiML
        PaymentConfiguration.init(
            applicationContext,
            "pk_test_..."
        )
        
        // Initialize payment sheet
        paymentSheet = PaymentSheet(this) { result ->
            when (result) {
                is PaymentSheetResult.Completed -> {
                    Log.d("PayAiML", "Payment completed!")
                }
                is PaymentSheetResult.Canceled -> {
                    Log.d("PayAiML", "Payment canceled")
                }
                is PaymentSheetResult.Failed -> {
                    Log.e("PayAiML", "Payment failed", result.error)
                }
            }
        }
        
        // Present payment sheet
        paymentSheet.presentWithPaymentIntent(clientSecret)
    }
}

Digital Wallet Integration

Apple Pay
  • • Touch ID / Face ID authentication
  • • Express checkout
  • • In-app and web support
  • • Automatic card updates
G
Google Pay
  • • Biometric authentication
  • • One-tap payments
  • • Cross-platform support
  • • Loyalty card integration

Start building mobile payments

Download our native SDKs and integrate payments into your mobile app today.