Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.appcharge.com/llms.txt

Use this file to discover all available pages before exploring further.

This article explains how to import the Payment Links SDK for iOS. You can install it via Swift Package Manager (SPM) or manually.

Requirements

iOS13.0 or higher
FrameworkStatic .xcframework
Swift5.7 – 5.10
Xcode15.0 or higher

Distribution methods

Import the SDK via SPM

To import the Payment Links SDK for iOS via SPM:
  1. Open your iOS project in Xcode.
  2. Go to File > Add Package Dependencies.
  3. Enter the iOS Payment Links SDK repository URL: https://github.com/Appcharge/ios-payment-links. Add GitHub repository
  4. Use the dropdown-menu to select your Dependency Rule:
    • Up to Next Major Version: for the latest major version. (Recommended) Major version
    • Up to Next Minor Version: for the latest minor version. Major version
  5. Use the Add to Project drop-down menu to select your app target. Add to Project

Import the SDK manually

To import the Payment Links SDK for iOS manually:
  1. Clone the Appcharge Payment Links repository to your local machine.
  2. Drag the ACPaymentLinks.xcframework folder into your Xcode project navigator.
  3. In the popup, make sure Copy items if needed is checked.
  4. Select your target and go to the General tab > Frameworks, Libraries, and Embedded Content. Set the SDK to Embed & Sign.