iOS SDK
Official Autlantic Billing mobile Checkout presenter for iOS. Part of the Autlantic Payments SDK · Languages.
USDC on Base · never put API keys or webhook secrets in the app.
Uses Swift Package Manager (not CocoaPods). Tag: sdks/ios/v0.1.0.
Install (SPM)
- Xcode → File → Add Package Dependencies…
- URL:
https://github.com/Autlantic/payments-sdk.git - Dependency rule: tag
sdks/ios/v0.1.0(or branchmain) - Add product AutlanticCheckout
The package lives at sdks/ios in the repo. If Xcode asks for a package path during local development, select that folder.
API
swift
import AutlanticCheckout
AutlanticCheckout.present(
url: checkoutURL, // from YOUR backend
returnURLScheme: "myapp", // Info.plist URL scheme
from: self
) { result in
switch result {
case .completed(let callbackURL):
// Refresh entitlement from YOUR backend
break
case .canceled:
break
case .failed(let error):
break
}
}| Piece | Role |
|---|---|
present(url:returnURLScheme:from:completion:) | Opens hosted checkout via ASWebAuthenticationSession |
AutlanticCheckoutResult | .completed / .canceled / .failed |
Backend contract
- Your server creates a session with Node/Python/Go (
successUrl/cancelUrllikemyapp://billing/success). - App calls
presentwith the returnedcheckoutUrl. - After return, poll your access API. Unlock only after a verified webhook on the server.
Sample: examples/mobile-checkout (pnpm example:mobile) and openable app ios-sample/CheckoutSample.xcodeproj.