Swiftpack.co - square/in-app-payments-ios as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by square.
square/in-app-payments-ios push
Public repository that hosts the Square In-App Payments SDK iOS binaries
⭐️ 12
🕓 1 year ago
.package(url: "https://github.com/square/in-app-payments-ios.git", from: "push")

Cocoapods Carthage compatible

Square In-App Payments iOS SDK

Build remarkable payments experiences in your own apps with Square’s In-App Payments SDK. Use our pre-built UI to collect sensitive credit card details from your customers, while matching the look and feel of your app. Square takes care of all the complexity of payments - security, risk, and PCI compliance are managed for you, so that you can focus on building the rest of your application.

You can also pair our Square In-App Payments SDK with Square’s Online Payments APIs and Reader SDK to accept payments across all channels - online, in-person and in-app - while keeping your back office reporting unified in a single system.


Add frameworks


Swift Package Manager support is available for Swift 5.3 and above. Simply add the following to your top-level dependencies block within your Package.swift:

dependencies: [
    .package(url: "https://github.com/square/in-app-payments-ios", .upToNextMajor(from: "1.6.0")),


Install with CocoaPods by adding the following to your Podfile:

pod "SquareInAppPaymentsSDK"
pod "SquareBuyerVerificationSDK"


Install with Carthage by adding the following to your Cartfile:

github "square/in-app-payments-ios"

Add build phase to setup the SquareInAppPaymentsSDK and/or SquareBuyerVerificationSDK framework

After adding the framework using any of the above methods, follow the below instructions to complete the setup.

On your application targets’ Build Phases settings tab, click the + icon and choose New Run Script Phase. Create a Run Script in which you specify your shell (ex: /bin/sh), add the following contents to the script area below the shell:


Getting Started

For more information and setup instructions, please visit the Square In-App Payments iOS SDK page.


Stars: 12
Last commit: 10 hours ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

2 weeks ago

Updates the version to 1.6.0 Changes include:

  • An important update to SquareBuyerVerificationSDK that mitigates the risk of declining 3-D Secure (3DS) payments.
  • Various bug fixes

If you are using SquareBuyerVerificationSDK earlier than 1.6.0 for iOS, please upgrade to 1.6.0 so that the SDK can process 3DS-enabled payments. The SDK will decline 3DS-enabled payments made after March 31, 2023 if the SDK version is earlier than 1.6.0.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics