Order Ahead

For order ahead, we need to include a UI component that allows the shopper to view their current order status after an order has been placed. We've created a component that you can drop into the appropriate layout within your app:

<fragment
    android:id="@+id/activeOrderAheadCartFragment"
    android:name="com.goskip.skipsdk_ui.orderAhead.orderPlaced.SkipSDKActiveCartFragment"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:layout_constraintBottom_toBottomOf="parent"/>

Skip Shopper with Skip Wallet

  • If shopper details are available

private fun startSkipExperienceWithShopperDetails() {
    val shopper = SkipSDKUser(
        firstName = "John",
        lastName = "Doe",
        phoneNumber = "+12345678910",
        email = "johndoe@email.com"
    )
    
    val config = SkipSDKConfig(
        launchType = SkipSDKLaunchType.store(
            storeId = "Insert your store Id here",
            retailerID = "Insert your retailer Id here",
            shoppingTripType = SkipSDKShoppingTripType.order_ahead,
        ),
        walletType = SkipSDKWalletType.skip_wallet,
        shopperType = SkipSDKShopperType.skip_shopper,
        introType = SkipIntroType.simple("Order Ahead"),
        environment = SkipSDKEnvironment.sandbox,
        skipSDKUser = shopper,
        skipSDKCallbacks = this
    )

    SkipUISDK.launchSkip(
        context = this,
        config = config
    )
}
  • If loyalty number is available

private fun startSkipExperienceWithShopperDetailsAndLoyaltyNumber() {
    val shopper = SkipSDKUser(
        firstName = "John",
        lastName = "Doe",
        phoneNumber = "+12345678910",
        email = "johndoe@email.com"
    )
    
    val config = SkipSDKConfig(
        launchType = SkipSDKLaunchType.store(
            storeId = "Insert your store Id here",
            retailerID = "Insert your retailer Id here",
            shoppingTripType = SkipSDKShoppingTripType.order_ahead,
        ),
        loyalty = SkipSDKLoyaltyInfo.memberId("Insert the member Id here"),
        walletType = SkipSDKWalletType.skip_wallet,
        shopperType = SkipSDKShopperType.skip_shopper,
        introType = SkipIntroType.simple("Order Ahead"),
        environment = SkipSDKEnvironment.sandbox,
        skipSDKUser = shopper,
        skipSDKCallbacks = this
    )

    SkipUISDK.launchSkip(
        context = this,
        config = config
    )
}
  • If shopper details are NOT available

private fun startSkipExperienceWithoutShopperDetails() {
    
    val config = SkipSDKConfig(
        launchType = SkipSDKLaunchType.store(
            storeId = "Insert your store Id here",
            retailerID = "Insert your retailer Id here",
            shoppingTripType = SkipSDKShoppingTripType.order_ahead,
        ),
        walletType = SkipSDKWalletType.skip_wallet,
        shopperType = SkipSDKShopperType.skip_shopper,
        introType = SkipIntroType.simple("Order Ahead"),
        environment = SkipSDKEnvironment.sandbox,
    )
        
    SkipUISDK.launchSkip(
        context = this,
        config = config
    )
}

Anonymous Shopper Example

Order Ahead is currently only available for Skip Shoppers.