Welcome to the Olo Digital Wallets iOS SDK
The Olo Digital Wallets SDK provides a simple and easy way to add digital wallet (Apple Pay) payments to your app.
The primary purpose of the SDK is to facilitate payments with Olo’s ordering ecosystem. It should be able to facilitate payments with any processor that accepts Apple Pay, but functionality outside of Olo’s ordering ecosystem has not been tested and is not guaranteed.
Useful Links
Setup
Use one of the following guides to add the Olo Digital Wallets SDK to your Xcode project
Getting Started
The Olo Digital Wallets SDK provides a simple way to get payment data needed for processing payments with Apple Pay. This section provides a high-level description of how to use the SDK in your app.
Set up your Apple developer account and Xcode project to accept Apple Pay
Create an
ODWConfigurationinstance to configure Apple Pay paymentsCreate an
ODWApplePayLauncherinstance and provide the configuration from the previous stepCreate an Apple Pay Button and add it to the app
When the button is clicked, present the Apple Pay Sheet using
ODWApplePayLauncher.present(...)Important
If Apple Pay isn’t ready to make payments at the timeODWApplePayLauncher.present(...)is called, an exception will be thrownRetrieve the
ODWPaymentDataProtocolcreated byODWApplePayLauncherSubmit the
ODWPaymentDataProtocoldata for payment processing (commonly the Basket Submit endpoint of Olo’s Ordering API)