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.

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.

  1. Set up your Apple developer account and Xcode project to accept Apple Pay

    See

    Apple’s official Setting up Apple Pay docs

  2. Create an ODWConfiguration instance to configure Apple Pay payments

  3. Create an ODWApplePayLauncher instance and provide the configuration from the previous step

  4. Create an Apple Pay Button and add it to the app

    See

    ODWApplePayButton (or use PKPaymentButton directly)

  5. 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 time ODWApplePayLauncher.present(...) is called, an exception will be thrown
  6. Retrieve the ODWPaymentDataProtocol created by ODWApplePayLauncher

  7. Submit the ODWPaymentDataProtocol data for payment processing (commonly the Basket Submit endpoint of Olo’s Ordering API)