PayTabs SDK makes the integration with the PayTabs payment gateway very easy by providing a ready-made payment screen that handles the card entry, and billing & shipping information and completes the missing details. 

In this article you will be going to know about:


How to install the SDK?


You can install this SDK using several ways as shown below:


For the version number, please use the latest version according to our latest update on our repository


CocoaPods


CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate PayTabs SDK into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'PayTabsSDK', '~> X.X.XX'


Then after that, you can just run the following command in the project directory

pod install


Generic

Carthage


Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate PayTabs SDK into your Xcode project using Carthage, specify it in your Cartfile:

github "paytabscom/paytabs-ios-library-sample" ~> X.X.XX

Then after that, you can just run the following command, then after this add the installed framework to your XCode:

carthage update


Generic

Manual


To install the SDK manually, simply follow the below steps:

  1. Download the framework.
  2. Navigate to General section of your Target.
  3. Drag PaymentSDK.xcframework file to Frameworks, Libraries, and Embedded Content section.





Prerequisites 


Before starting the integrations with PayTabs SDK you should give our Card Scanner feature access permission to the camera. To perform such a step you should add the following key & value to your app as shown below:

<key>NSCameraUsageDescription</key> 
<string>Write here your message to the user</string>


Generic

How to activate the SDK?


Nothing you have to do from your side in this step as our SDKs don't need activation, once you installed it properly, it will be considered activated automatically and ready for use.





⌂ To get familiar with the whole process and the other steps, kindly navigate to our "The Native IOS SDK Integration Manual" solution article. 

And to get familiar with the rest of the steps regarding the current step "Step 1 - Setup and activate the integration method " click here.

Or you can navigate to the next step in the process "Step 2 - Configure the integration method" kindly click here