Restrict Check-out to a specific domain email address

Topic summary

A user is seeking a solution to restrict checkout access to customers with specific email domains (e.g., only @microsoft.com addresses).

Two approaches are suggested:

Login-based restriction: Instead of blocking checkout, implement a login system that hides the entire store unless the customer’s email matches the required domain.

B2B app solution: Use a dedicated B2B app (such as those available in the Shopify App Store at https://apps.shopify.com/partners/goldj) that can handle domain-based access control.

Custom code: Both solutions would require custom development work to implement properly.

The discussion remains open with a follow-up question requesting more details on how to achieve this using custom code. No specific app recommendations or code examples have been provided yet.

Summarized with AI on November 11. AI used: claude-sonnet-4-5-20250929.

Hi There!

Does anyone know an app (and/or coding instructions) to restrict shopify check-out to only be permitted to specific email domains? As an example, if we are building a custom site and only want people to be able to check-out that have a @microsoft.com email address.

What would you do with all the others? Wouldn’t it be a better solution if you’d just offer a login to you store and hide everything unless the customer’s email address is '@microsoft? This would have to be developed with some custom code.

The other option is to use a B2B app like one of those: https://apps.shopify.com/partners/goldj

Can you please tell more how we can achieve this using code