Welcome to the PayPal iOS SDK Messages Module. This package facilitates rendering PayPal messages to promote offers such as Pay Later and PayPal Credit to customers. It is recommended to integrate this package using the PayPal iOS SDK.
The PayPalMessages package permits a deployment target of iOS 14.0 or higher. It requires Xcode 14.3+ and Swift 5.8+.
This SDK supports Swift 5.8+. This SDK is written in Swift.
This SDK module supports:
- CocoaPods
- Swift Package Manager
- Carthage
This package supports:
- UIKit
- SwiftUI
In order to display PayPal messages within your iOS application, a Client ID is required. This can be found in your PayPal Developer Dashboard.
- Open the
PayPalMessages.xcworkspace
in Xcode - Resolve the Swift Package Manager packages if needed:
File
>Packages
>Resolve Package Versions
or by runningswift package resolve
in Terminal - Update the placeholder
clientID
in the default message configuration found inDemo/DefaultMessageConfig
to your sandbox client ID. - Select the
Demo
scheme, and then run.
Xcode 14.3+ is required to run the demo app.
This project uses the XCTest
framework provided by Xcode.
To run tests in Xcode, select the PayPalMessagesTest
scheme and then run.
GitHub Actions CI will run all tests and build commands on each PR. This project also takes advantage of Fastlane
to run tests, lint via SwiftLint
, build, and release.
This SDK follows Semantic Versioning through the use of Semantic Release. The release process will be automated via GitHub Actions.
PayPal iOS SDK Messages is in active development and we welcome your feedback! Submit feedback or report an issue.