For the complete documentation index, see llms.txt. This page is also available as Markdown.

Link to Webstore checkout on iOS - US 🇺🇸

iOS in the US permits the use of standard "naked" hyperlinks without requiring integration with Apple's StoreKit APIs for external linkouts. Thus, launching Coda Links in iOS is a highly streamlined process.

Below is the step-by-step guide for linking US users to from an iOS App to your Coda-powered Webstore:

Prerequisites

Ensure that you have followed the Steps to Launch your Web Store, and published your Coda Webstore.

This is the standard integration that allows users to purchase items on the web store and have the items fulfilled in-app. If you already have this set up with Coda, no further modifications are required.

Step 1: Client-Side Implementation (iOS App)

When you want to present a linkout offer to a user, your app simply needs to programmatically construct the correct Coda Links destination URL. When the user clicks the link or button with this URL, you can open it in the user's external browser (e.g., Safari).

1. Construct the checkout URL: Build the destination URL dynamically. It must append your new transaction token alongside the standard Coda parameters. Your final URL should include:

  • sessionToken (for extracting the user's UID)

  • skuId (the specific item selected, exactly as configured on the Coda web store)

  • mode (e.g., mode=lite to indicate the simple checkout page)

  • utm parameters (source, medium, campaign)

For example:

2. Launch the URL: Simply invoke standard iOS networking methods to launch the URL in an external browser.

For optimal functionality, open the URL in an external browser rather than an in-app webview, as certain e-wallet payment features may be limited in webviews.

SwiftUI Sample
UIKit Sample

Step 2: Post-Purchase UX & Deep Linking

  1. Item Fulfillment: When the payment succeeds, Coda Webstore completes the payment and automatically sends a server-to-server item fulfillment request to your backend. This should already be covered in the Webstore basic setup. No changes required here

  1. User can click to go back to App via deep link: To ensure this redirection happens smoothly, you must provide Coda with a deep link that can redirect users back to your iOS app upon a successful purchase.

    • Once the user is deep-linked back to your app, they should seamlessly receive their items. In addition, your app can display a purchase success screen with confetti animations!

    • Refer to Redirecting users from Coda Links back to your appto learn how to setup back-to-app redirection correctly for your iOS App.

  2. User can explore Webstore's offers & LiveOps campaigns The post-purchase screen will automatically display your Webstore offers to the user, encouraging them to explore & become a loyal Webstore user

seedling

Last updated

Was this helpful?