Shopify Customer Account

The Shopify Customer Account feature allows a user to log into an existing account using the Shopify Passwordless login.

When the Shopify Customer Account feature is added to the project, some default screens are modified to show or hide certain content. See the details below:

  • The default login screen is replaced with a WebView that displays the login page configured in Shopify. Without any customisation, the login screen appears as follows:

    Shopify Customer Account Login
    Shopify Customer Account Login

  • The default Launch Pages - Account screen and My Account - Login/Register component will not display the Register button when Shopify Customer Account is enabled.

Start using the Shopify Customer Account SDK

To start using the Shopify Customer Account SDK, you need to:

  1. Add the feature module to your build.gradle:
    implementation ("com.poqstudio:account.shopify:$VERSION_NAME")
  2. Configure the Shopify Account settings: Modify the ShopifyAccountSettings object if necessary.

Shopify Customer Account SDK is composed of these modules:

Koin modules

The Shopify Customer Account SDK dependencies are injected using Koin. Shopify Customer Account SDK provides the default dependencies definitions via this Koin module:

Poq Settings

The Shopify Customer Account SDK is configurable via ShopifyAccountSettings. Through ShopifyAccountSettings you can configure:

  • authorizationCallback: This is the string pattern the Login WebView looks for in redirect URLs. Once this pattern is detected, the authentication process continues. The default value is shopify/authorize-callback.

Login Gate

The Shopify Customer Account SDK does not alter the Login Gate feature. If the Login Gate is enabled, the default screens will still be displayed.