A .NET MAUI project demonstrating native library interoperability with the Square Mobile Payments SDK for Android and iOS. This repository provides a working example of integrating Square’s native Mobile Payments SDK into cross-platform .NET MAUI applications using bindings and P/Invoke.
- ✅ Native bindings for Square Mobile Payments SDK on Android (Java/Kotlin) and iOS (Objective-C/Swift)
- ✅ End-to-end example of invoking Square payment workflows from a .NET MAUI app
- ✅ Handles payments, card readers, and transaction flows through native SDK integration
- ✅ Clean and reusable interop patterns for extending .NET MAUI apps with native functionality
- ✅ Documentation and samples for secure, seamless, in-person payments
Simplify and document the process of integrating Square’s Mobile Payments SDK into .NET MAUI apps by leveraging native library interop techniques.
Enable developers to deliver secure, cross-platform in-person payment solutions using Square hardware and services.
- .NET MAUI (tested with .NET 9)
- Visual Studio 2022 (17.8+) with MAUI workload
- Android Studio (for Android bindings)
- Xcode (for iOS bindings)
- Square Developer Account
➡️ Sign up here
git clone https://github.com/yourusername/MauiSquare.NativeLibraryInterop.git