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’sFrameworksfolder
- 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 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
- Specify the environment in OPSetupParameters
 
- Specify the environment in 
- Add a payment input control to your app
See SeeOPPaymentCardDetailsViewSee SeeOPPaymentCardDetailsFormSee SeeOPApplePayContext
- Create a payment method
- Each payment input control provides a way to get an instance of OPPaymentMethodParamsProtocol
- Get an OPPaymentMethodProtocolinstance by callingOloPayAPI.createPaymentMethod(with:completion:)
 
- Each payment input control provides a way to get an instance of 
- Submit the OPPaymentMethodProtocoldata to the Basket Submit endpoint of Olo’s Ordering API
 Reference
          Reference