Welcome to the Olo Pay SDK
PCI compliance is your responsibility. The Olo Pay SDK enables simplifies your process of maintaining PCI compliance by doing the heavy lifting of processing sensitive credit card data for you. See below for details on adding the SDK to your project and integrating it into your app to submit payments to Olo’s Ordering API.
Useful Links
First Time Setup
- Install Carthage
- From a terminal navigate to the
OloPaySDK
folder and run./carthage-update.sh
- Drag the following frameworks from
OloPaySDK/Carthage/Build
to your Xcode project’sFrameworks
folder- Stripe.xcframework
- StripeCore.xcframework
- StripeUICore.xcframework
- Stripe3DS2.xcframework
- StripeApplePay.xcframework
- Drag
OloPaySDK/OloPaySDK.xcodeproj
to your Xcode project - In your .xcodeproj configuration, do the following
- Create Production and Development targets for your project if you don’t have them already
- In
Build Phases > Dependencies
, do the following:- Add OloPaySDK to your production target
- Add OloPaySDK-Dev to your development target
- For both targets, do the following:
- In
Build Phases > Link Binary With Libraries
- Add OloPaySDK.framework from the appropriate SDK target (OloPaySDK or OloPaySDK-Dev)
- Add all the Stripe frameworks listed above
- In
Build Phases > Embed Frameworks
, do the following:- Add OloPaySDK.framework
- Add all the Stripe frameworks listed above
- Ensure
Code Sign On Copy
is selected for all frameworks
- In
SDK Updates
- From a terminal navigate to the
OloPaySDK
folder and run./carthage-update.sh
- Add any missing Stripe frameworks listed above
Getting Started
- Initialize the SDK on application startup
- Add a payment input control to your app
See
SeeOPPaymentCardDetailsView
See
SeeOPPaymentCardDetailsForm
See
SeeOPApplePayContext
- Using the
OPPaymentMethodParamsProtocol
instance from the payment control, create anOPPaymentMethodProtocol
instance - Submit the
OPPaymentMethodProtocol
data to the Basket Submit endpoint of Olo’s Ordering API