Welcome to PayPal iOS Checkout SDK!
This framework allows you to provide a native PayPal checkout experience from within your iOS app.
- Deployment target of iOS 12.0 or higher.
- Xcode version at least Xcode 12.
- The current language version for the SDK is Swift 5.4.1.
To get started, first checkout out our quickstart integration guide!
You can also find our reference documentation here
To install the PayPalCheckout SDK via Carthage, simply add the following line to your Cartfile
:
binary "https://github.com/paypal/paypalcheckout-ios/raw/main/Carthage/PayPalCheckout.json"
To install the SDK via CocoaPods, add the following to your Podfile
:
pod 'PayPalCheckout'
If you are working in the context of another package, you can add the PayPalCheckout SDK as a dependency in your Package.swift
file:
let package = Package(
name: "MyPackage",
dependencies: [
.package(url: "https://github.com/paypal/paypalcheckout-ios.git", from: "0.106.0"),
],
...
)
If you are adding the PayPalCheckout SDK into a standalone project, you can add the PayPalCheckout SDK by following Apple's package integration guide, while specifying https://github.com/paypal/paypalcheckout-ios.git
as the source git repository.
The PayPal Native Checkout SDK supports processing transactions that involve resolving 3D-Secure contingencies. In order to enable 3D-Secure contingency resolution for your users, there are a couple extra steps involved in the PayPalCheckout integration.
First, add PayPalCheckout to your app using any of the steps outlined above. Then, download the CardinalMobile.xcframework.zip
from the Frameworks
directory on this repository.
Unpack the CardinalMobile framework from that .zip, and add it to your application. There is no linking that needs to happen between Cardinal and the PayPalCheckout SDK.
Some users (those in the U.S. with a confirmed phone number associated with their account) will be able to log in to their PayPal account using a one time passcode sent via SMS, instead of via a webview. To test this flow in the sandbox
environment, log in using a sandbox user with a confirmed phone number. The passcode to test a successful flow will be 111111
, while any other passcode will result in a failure response.
The PayPal Native Checkout SDK is in active development, we welcome your feedback!
To get in touch with us:
- Open an issue - for issues, feedback, or to report a bug
See the LICENSE file for more info.