Skip to content

Need to add Native Checkout to your iOS Application? We can help!

License

Notifications You must be signed in to change notification settings

stechiu/paypalcheckout-ios

 
 

Repository files navigation

Native Checkout for iOS

Platform Pod version Carthage version SPM version

Welcome to PayPal iOS Checkout SDK!

This framework allows you to provide a native PayPal checkout experience from within your iOS app.

Prerequisites

  • 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.

Docs

To get started, first checkout out our quickstart integration guide!

You can also find our reference documentation here

Installation

Carthage

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" 

CocoaPods

To install the SDK via CocoaPods, add the following to your Podfile:

pod 'PayPalCheckout'

Swift Package Manager

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.

3DS Support

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.

OTP Support

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.

Feedback

The PayPal Native Checkout SDK is in active development, we welcome your feedback!

To get in touch with us:

License

See the LICENSE file for more info.

About

Need to add Native Checkout to your iOS Application? We can help!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 92.7%
  • Swift 7.3%