Skip to the content.

Installation & Setup

Install Square In App Payments SDK Frameworks

YOU MUST INSTALL THE FRAMWORKS FOR THIS PACKAGE TO WORK

  1. Download and unzip the latest SquareInAppPaymentsSDK.zip artifact from the Square In-App Payments Github repository release list.

  2. Add the SquareInAppPaymentsSDK and SquareBuyerVerificationSDK frameworks to your project:

    1. Open the General tab for your application target in Xcode.
    2. Drag SquareInAppPaymentsSDK.xcframework and SquareBuyerVerificationSDK.xcframework from the unzipped folder into the Embedded Binaries section.
    3. Choose Copy Items if Needed, and then choose Finish in the dialog box that appears.

Install Square In App Payments SDK SwiftUI

Xcode 11 integrates with libSwiftPM to provide support for iOS platforms.

  1. The preferred way of installing is via the Swift Package Manager.
    1. In Xcode, open your project and navigate to FileAdd Packages
    2. Paste the repository URL (https://github.com/realashleybailey/in-app-payments-ios-swiftui) in the Search or Enter Package URL field
    3. For Rules, select Branch (with branch set to main).
    4. Click Add Package
    5. Click Add Package again when popup appears