-
Notifications
You must be signed in to change notification settings - Fork 6
Getting Started
Rotimi Joshua edited this page Sep 10, 2023
·
2 revisions
Before you start using the Flutterwave iOS SDK, ensure you have the following prerequisites in place:
- iOS version 11.0 or later
- Swift version 5.3 or later
- Dependency management using CocoaPods or Carthage
- Add the following line to your
Podfile
:pod 'FlutterwaveSDK'
- Run the following command in your terminal:
pod install
- Add the following line to your Cartfile:
github "Flutterwave/iOS-v3"
- Run the following command in your terminal:
carthage update
Before you can start using the SDK, you need to initialize it with your API keys. Here's how you can do it in your Swift code:
import FlutterwaveSDK
let config = FlutterwaveConfig()
config.publicKey = "[YOUR_PUBLIC_KEY]"
config.encryptionKey = "[YOUR_ENCRYPTION_KEY]"
You can access your public key and encryption key on the Flutterwave Dashboard here.
If you require more detailed instructions or information, please refer to the relevant sections in our comprehensive documentation.
The SDK also includes an 'Examples' folder that you can explore to help you get up to speed.