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 OloPaySDKfolder and run./carthage-update.sh
- Drag the following frameworks from OloPaySDK/Carthage/Buildto your Xcode project’sFrameworksfolder- Stripe.xcframework
- StripeCore.xcframework
- StripeUICore.xcframework
- Stripe3DS2.xcframework
- StripeApplePay.xcframework
 
- Drag OloPaySDK/OloPaySDK.xcodeprojto 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 Copyis selected for all frameworks
 
 
- In 
 
SDK Updates
- From a terminal navigate to the OloPaySDKfolder 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 SeeOPPaymentCardDetailsViewSee SeeOPPaymentCardDetailsFormSee SeeOPApplePayContext
- Using the OPPaymentMethodParamsProtocolinstance from the payment control, create anOPPaymentMethodProtocolinstance
- Submit the OPPaymentMethodProtocoldata to the Basket Submit endpoint of Olo’s Ordering API
 Reference
          Reference