Skip to content

Flizpay/flizpay-ios

Repository files navigation

FLIZpay iOS SDK

Platform Swift SPM Compatible Version iOS SDK Tests Coverage Status License

Welcome to the FLIZpay iOS SDK! Easily integrate secure, seamless, and user-friendly payments directly into your iOS app.

🚀 Overview

The FLIZpay SDK simplifies accepting payments by managing the entire payment flow via an integrated webview, securely and intuitively within your app.

Get started with our 📚 integration guide


📦 Requirements

The FLIZpay iOS SDK requires Xcode 15 or later and is compatible with apps targeting iOS 13 or above.

⚡️ Quick Start

After installing the SDK, initiate payments effortlessly by:

  • authorizing your transaction with the API_KEY in your backend to obtain a token
  • use it to load the FLIZPay environment in your application
import FlizpaySDK

FlizpaySDK.initiatePayment(
    from: currentViewController,
    token: token,
    amount: userAmount
) { error in
    // Handle any error returned from the SDK.
    print("Payment failed: \(error)")
}

Parameters

  • from (UIViewController, required): The Presenting View Controller where the webview is going to be attached
  • token (String, required): JWT authentication token obtained from your backend (Check our docs on how to authenticate).
  • amount (String, required): The payment amount.
  • @closure onFailure (Function, optional): Block that receives an error param to be called when the webview can't be opened

📖 Detailed Integration Guide

For comprehensive integration details, API authentication steps, obtaining JWT tokens, and additional examples, see our Integration Documentation.


📄 License

FLIZpay SDK is available under the MIT license. See the LICENSE file for more details.


🛟 Support

Need assistance?

👉 Talk to our devs


Happy coding! 🚀🎉