Install the SDK


Installing the SDK

Select one of the following to install the Native Checkout SDK for iOS:

Note: For the easiest installation, we recommend using CocoaPods.

CocoaPods

  1. Add the following to your Podfile:

    pod 'PayPalCheckout'
    
  2. Run pod install or pod update.

Carthage

  1. Add the following to your Cartfile:

    binary "https://github.com/paypal/paypalcheckout-ios/raw/main/Carthage/PayPalCheckout.json"
    
  2. Download the binaries using the following command:

    carthage update --platform iOS
    
  3. Link the .framework file from the /Carthage/Build/iOS directory into your specified target:

Linked Frameworks

Note: This embeds PayPalCheckout.

Swift Package Manager

If you're working in the context of another package, you can add the SDK as a dependency in your Package.swift file by:

let package = Package(
    name: "MyPackage",
    dependencies: [
        .package(url: "https://github.com/paypal/paypalcheckout-ios.git", from: "0.42.0"),
    ],
    ...
)

If you're adding the SDK into a standalone project, follow Apple's package integration guide, while specifying https://github.com/paypal/paypalcheckout-ios.git as the source Git repository.

GitHub

If you prefer to install the SDK without using a package manager, retrieve the framework and xcframework binaries from the release tags in our GitHub repository.

Next steps

Configure the SDK