SWIFT SDK · MIT
Swift payments for your iOS app.
Connect to your Wholly Crypto API with async/await. A Swift Package targeting iOS 15+ and macOS 12+, without third-party dependencies.
Install in Xcode.
Open File → Add Package Dependencies. Paste this URL, select Branch and enter main.
https://github.com/whollycrypto-com/whollycrypto-swift-sdk.gitBuilt for exact amounts.
Create invoices, read payments and wallets, and use the separate Operator client. Amounts stay decimal strings.
Includes invoice, checkout and notification examples. Build and test your integration before accepting live payments.
Keep API keys off customer devices.
Your backend creates the invoice. Your app opens its checkout URL in Safari. Never ship merchant or Operator keys in a customer app; a success redirect is not payment proof.
A merchant-owned management app can use a runtime, project-restricted credential stored in Keychain. Use read-only access when possible.
Verify IPN and webhook signatures on your backend. The package includes Apple CryptoKit helpers and guidance on avoiding duplicate order fulfillment.