Integrating the SDK
Please Note: As an ISV / Paysafe Partner, you will need to complete all of the below "merchant" steps on behalf of the Parent Merchant Legal Entity (PMLE) that your merchants will be operating under.
Follow the below steps to integrate with our iOS mobile SDK:
- Add the iOS SDK to your app
- Apple Pay Setup
- 3DS Setup
Add the iOS SDK to your Application
You can add the iOS SDK in two ways:
- Git Hub: The iOS SDK is available in GitHub. There is also a sample application available for your reference.
- Cocoapod: The iOS SDK is published and available as Cocoapod to simplify the process of integration.
After installation, you need to set up pods for your application.
- Open the terminal and navigate to the application folder.
Create an empty Podfile.
$ touch podfile
Open the Podfile.
$ open -a xcode podfile
Add the Paysafe iOS SDK pod to your Podfile. You can specify which version you want – if you do not mention a specific version, it will take the latest version of the SDK.
Install the Paysafe iOS SDK pod in your application.
$ pod install
Once the pod is installed in your application, you have to use workspace to use the installed SDK along with your application.
To integrate iOS Paysafe SDK into your Xcode project using CocoaPods, specify it in your Podfile:
pod 'Paysafe_SDK', '<latest_published_version>'