Qattah Pay iOS SDK Library

Qattah Pay iOS SDK Library is a payment integration library that allows merchants to accept payments in their iOS applications.

Getting Started

To include the Qattah Pay iOS SDK Library in your iOS application, follow these steps:

  1. Open your Xcode project, navigate the File tab within the macOS bar, and click on “Add Packages”.

  1. In the Add New Package window, you can search for a package via the URL to the Github page (https://github.com/QattahPay/qattahpay-ios-sdk/).

Usage

To use the QattahPay iOS SDK Library, you need to import the qattahpay_ios_sdk to your project by:

And then create a new QattahPaySDK object where you want as in the below example: Note: you have to put your API key in the initiation phase.

To make a payment request, you need to create a PaymentRequest object and call the startPayment() method:

After starting a new payment session with Qattah Pay, you will get a new qattahResponse object in the onSuccess callback of the startPaymentSession function, by this object you can navigate to the QattahWebView which is built using SwiftUI as follows:

And you can handle all callbacks by creating a new class that implements the protocol PaymentCallback for the Qattah Pay Callback Service by following the below steps:

License

This library is licensed under the MIT License.

Last updated