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

Shopify

Connect Shopify to The Wallet Crew to create or update customers and deliver wallet passes from in-store QR flows or online “Add to Wallet” buttons.

Shopify can be connected to The Wallet Crew through two complementary paths. One path focuses on in-store enrolment and customer creation/update in Shopify. The other path focuses on adding an “Add to Wallet” button to the online storefront.

Illustration of a My Account page with an Add to Wallet button on a loyalty card, linked to the Shopify connector
The online path: an “Add to Wallet” block in the customer account of the online store.

The Shopify integration is different from SFCC / Adobe Commerce (Magento) / PrestaShop integrations. Those platforms typically rely on a custom storefront implementation of the browser SDK (see How the Add to Wallet button works). Shopify offers a maintained integration surface through a dedicated connector and app, which reduces custom code and long-term maintenance.

  • In-store QR registration (The Wallet Crew hosted flow). A QR code opens a registration layout of The Wallet Crew. The flow can create or update the Shopify customer, then issue a wallet pass.

  • Online store “Add to Wallet” button (The Wallet Crew Shopify app). The Shopify app exposes a theme block that renders an “Add to Wallet” CTA on selected pages.

Real-world examples
  • A retail brand places a QR code near checkout. The flow creates the Shopify customer and issues a loyalty pass.

  • A DTC brand adds an “Add to Wallet” CTA in the account area after login.

  • A gift card program shows an “Add to Wallet” CTA on the gift card page after purchase.

  • A store uses a QR-driven form to capture consent in-store, then pushes the first pass immediately.

When only the storefront button is needed, jump to Online store “Add to Wallet” button.

In-store QR registration (The Wallet Crew hosted flow)

This setup connects The Wallet Crew enrolment flow to the Shopify Admin API. It is typically used when the in-store journey should create or update a Shopify customer record while issuing a wallet pass in the same scan.

Prerequisites

  • Admin access to the Shopify store.

  • Access to The Wallet Crew admin console.

  • A pass template already configured in The Wallet Crew.

  • A registration layout (the page shown after scanning the QR code).

1

Create a Shopify Admin API token (custom app)

  1. In Shopify Admin, go to Settings → Apps and sales channels.

  2. Click Develop apps, then open the existing custom app.

  3. Open Configuration → Admin API integration.

  4. Add scopes:

    • read_customers

    • write_customers

  5. Install the app in the store.

  6. Copy the Admin API access token.

2

Configure Shopify in The Wallet Crew

  1. In the admin console, go to Data & integrations → Connectors → POS → Shopify, Settings tab.

  2. Paste:

    • Shopify URL (example: https://your-shop.myshopify.com)

    • Access token: the Admin API access token

  3. Save.

3

Enable Shopify in /server/flows.yml

In the admin console, go to Settings → Advanced → Advanced configuration.

Edit /server/flows.yml and ensure:

  • The provider is enabled in customerProviders.

  • The shopify step runs before the pass step.

passType: user is a sample. Use the name of the pass template that the flow issues.

YAML indentation must be exact. One wrong indent can break the whole flow.

4

Create the in-store QR code (Redirect)

  1. In the admin console, go to Enrollments → Links & QR codes.

  2. Create a redirect pointing to the registration layout.

  3. Copy the URL or render the QR code.

  4. Display it in-store.

Validate the integration

Validation should cover both Shopify customer sync and pass delivery.

  1. Scan the QR code from a phone.

  2. Complete the registration.

  3. Confirm the customer exists (or is updated) in Shopify.

  4. Confirm the pass is created and can be added to Apple Wallet or Google Wallet.

Troubleshooting

401 / 403 from Shopify

  • Re-check the app scopes. read_customers and write_customers are required.

  • Re-install the custom app after changing scopes.

  • Ensure the value pasted is an Admin API access token (not a storefront token).

The flow runs, but no Shopify customer is created

  • Ensure - type: shopify is in the userRegistration flow.

  • Ensure customerProviders includes - type: shopify.

  • Validate YAML indentation.

Online store “Add to Wallet” button (Shopify app)

The Wallet Crew Shopify app exposes an “Add to Wallet” block in the theme editor. This path is often used when an “Add to Wallet” entry point is needed without building a custom module or cartridge.

Prerequisites

  • The Wallet Crew Shopify app installed and enabled.

  • A working pass issuance setup in The Wallet Crew (so the button has something to deliver).

1

Enable the theme block

  1. Go to Shopify Admin → Online Store → Themes.

  2. Click Customize for the theme to edit.

  3. Navigate to the page/template where the button should appear.

  4. Click Add section or Add block.

  5. Under Apps, select Add to Wallet Button - The Wallet Crew.

  6. Save.

2

Test

  • On desktop, scan the QR code with a phone.

  • On mobile, tap Add to Apple Wallet or Add to Google Wallet.

Troubleshooting

The theme block does not appear

  • Ensure the app is installed and enabled.

  • Try adding the block on a different template (product vs page vs account).

  • Check the theme editor Apps section (not Sections).

Liquid code snippet (without the app)

The Shopify connector also ships a ready-made Liquid snippet. In the admin console, go to Data & integrations → Connectors → POS → Shopify, Code snippet tab, select the pass template, then copy the snippet into the Shopify theme.

The snippet signs customer.id in Liquid (hmac_sha256) and passes it to the SDK as the external identifier shopifyId. On desktop, it shows a QR code to scan; on mobile, it renders the Add to Wallet button.

The Code snippet tab shows the snippet only to users whose role can read general secrets.

FAQ

Can both the in-store QR flow and the online button be used together?

Yes. The in-store flow is typically used for enrolment and customer creation/update. The storefront button is typically used as an additional entry point in the online journey, often in the account area or post-purchase pages.

Is the Shopify app required for the in-store QR registration flow?

No. The in-store QR flow relies on a hosted layout of The Wallet Crew and the Shopify Admin API token configured in the connector settings. The Shopify app is only required for the theme block (“Add to Wallet” button) scenario.

Last updated