Giter VIP home page Giter VIP logo

paypalcheckout-ios's Introduction

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.

paypalcheckout-ios's People

Contributors

vladfilyakov avatar jonathajones avatar minhthenguyen avatar dmikey avatar jaxdesmarais avatar vradopp avatar zkhaider avatar pavillar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.