Skip to main content
This article explains how to import the Payment Links SDK for iOS. You can install it via CocoaPods or manually.

Requirements

iOS13.0 or higher
FrameworkStatic .xcframework
Swift5.7 – 5.10
Xcode15.0 or higher
If using CocoaPods:
DistributionCocoaPods
CocoaPods1.16.0 or higher

Import the SDK via CocoaPods

  1. If your project doesn’t already use CocoaPods, you need to install it:
    sudo gem install cocoapods
    
  2. Run --version to determine you current pods version:
    pod --version
    
  3. Initialize pods:
    pod init
    
  4. Install pods:
    pod repo update
    pod install
    
  5. Open your workspace:
    YourApp.xcworkspace
    
  6. Add the Appcharge Payment Links SDK via your Podfile:
    platform :ios, '13.0'
    target 'YourApp' do
        // Import the latest version, or
        pod 'ios-payment-links'
        // Import a specific version 
        pod 'ios-payment-links', '~> <version>'
    end
    
  7. Last, run the following:
    pod repo update
    pod install
    

Import the SDK manually

Manual installation requires the .xcframework folder. Contact your account manager to obtain it.
To import the Payment Links SDK for iOS manually:
  1. Drag the provided .xcframework file into your Xcode project navigator.
  2. In the popup, make sure Copy items if needed is checked.
  3. Select your target and go to the General tab -> Frameworks, Libraries, and Embedded Content. Set the SDK to Embed & Sign.