Overview
The iOS / Swift SDK is designed for Bolt Managed Checkout and SSO Login. It handles the full checkout experience: including shipping, payment, and order completion: as well as Bolt account authentication via OAuth 2.0 with optional PKCE.
BoltInternal) provides a streamlined integration for launching Bolt’s managed checkout flow and SSO login from your iOS app. The SDK handles the complete checkout UI, payment authorization, and Bolt account login, so you can focus on your app experience.
Completing the integration requires three primary steps:
- Initialize the SDK with your publishable key.
- Configure a checkout session with an order token from your backend.
- Launch the checkout flow and handle the result.
Installation
Swift Package Manager
Add the Bolt SDK via Xcode:- Go to File > Add Package Dependencies…
- Enter the repository URL:
https://github.com/BoltApp/bolt-ios-checkout-sdk - Select the version rule (e.g. “Up to Next Major”) and click Add Package.
Package.swift:
SDK Initialization
The SDK must be initialized exactly once during your application’s lifecycle. The best place to do this is in yourAppDelegate or SwiftUI App entry point.
UIKit (AppDelegate)
SwiftUI
Configuration Requirements
To use the SDK, ensure you have the following credentials properly configured:API Quick Reference
Next Steps
- Checkout Flow: Generate order tokens and launch the managed checkout experience.
- SSO Login: Authenticate users with their Bolt account via OAuth 2.0 and PKCE.
- Custom Checkout: Build a custom checkout using the payment flow and authorization APIs.
- API Reference: Full reference for all delegates, result types, and callbacks.