Skip to content

Getting Started

Rotimi Joshua edited this page Sep 10, 2023 · 2 revisions

Flutterwave Logo

Getting Started with the Flutterwave iOS SDK

Prerequisites

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

Installation

Using CocoaPods

  1. Add the following line to your Podfile:
    pod 'FlutterwaveSDK'
  2. Run the following command in your terminal:
pod install

Using Carthage

  1. Add the following line to your Cartfile:
     github "Flutterwave/iOS-v3"
    
  2. Run the following command in your terminal:
     carthage update
    

Initialization

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.

Further Documentation

If you require more detailed instructions or information, please refer to the relevant sections in our comprehensive documentation.

Examples

The SDK also includes an 'Examples' folder that you can explore to help you get up to speed.