The Moyasar iOS SDK provides a streamlined way to integrate Moyasar's payment solutions into your iOS applications. With support for CocoaPods, Swift Package Manager (SPM), and manual integration, developers have flexibility in how they incorporate the SDK into their projects.
You can integrate the Moyasar SDK into your project using one of the following methods:
- Add the following line to your
Podfile
:pod 'MoyasarSdk', git: 'https://github.com/moyasar/moyasar-ios-pod.git'
- Install the dependency:
pod install
Swift Package Manager (SPM) is a tool for managing the distribution of Swift code. Starting from version 1.0.5, the Moyasar SDK supports integration via SPM. Here’s how you can add it to your project:
- In Xcode, open your project and navigate to the project settings.
- Select your target, then go to the "Package Dependencies" tab.
- Click the "+" button to add a new package.
- In the package repository URL field, enter:
https://github.com/moyasar/moyasar-ios-sdk.git
- Choose the branch
master
.
For more details, refer to the official documentation.
To migrate from version 1.0.5 to 2.0.0, please follow the migration guide.
To use an older version, add the tag for it like this:
pod 'MoyasarSdk', :git => 'https://github.com/moyasar/moyasar-ios-pod.git', :tag => 'v1.0.5'
You can specify the versioning in SPM as flow:
- For version 2.0.1:
https://github.com/moyasar/moyasar-ios-sdk.git, version: 2.0.1
By following these steps, you can easily integrate and migrate the Moyasar iOS SDK into your project. For any further details and documentation, visit Moyasar's official documentation.