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’sFrameworks
folder - In your .xcodeproj configuration, do the following
- Create Production and Development targets for your project if you don’t have them already
- For both targets, do the following:
- In
Build Phases > Dependencies
, add the OloPaySDK Framework to both targets - In
Build Phases > Link Binary With Libraries
- Add OloPaySDK.framework
- 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
- Specify the environment in
OPSetupParameters
- Specify the environment in
- Add a payment input control to your app
See
SeeOPPaymentCardDetailsView
See
SeeOPPaymentCardDetailsForm
See
SeeOPApplePayContext
- Create a payment method
- Each payment input control provides a way to get an instance of
OPPaymentMethodParamsProtocol
- Get an
OPPaymentMethodProtocol
instance by callingOloPayAPI.createPaymentMethod(with:completion:)
- Each payment input control provides a way to get an instance of
- Submit the
OPPaymentMethodProtocol
data to the Basket Submit endpoint of Olo’s Ordering API