# Configure Checkout for Storefront Next

Streamline the checkout experience for shoppers in Storefront Next for B2C Commerce. When a first-time shopper checks out, they can save their checkout information for future use. If the shopper selects Save for Future Use, a one-time password (OTP) window appears where they can enter the code sent to their email address. After the shopper verifies their email address, the system creates an account for them with your store and saves their shipping and payment information for future use.

![Create an account for faster checkout.](https://a.sfdcstatic.com/developer-website/sfdocs/commerce-cloud/media/sfnext/sfnext-one-click-checkout.png)

If a registered shopper returns to make another purchase, the shopper only has to enter their email address and a verification code to check out. B2C Commerce automatically fills in the shopper’s default or first saved shipping address and payment information.

Shoppers always have the option to check out as a guest. Additionally, shoppers can log into their account to view their saved shipping and payment information.

Prerequisites:

- Set up Storefront Next.

  To create a storefront with a GitHub repository, see [Create a Storefront in Business Manager with a GitHub Repository](/docs/commerce/b2c-commerce/guide/sfnext-quick-start-create-bm-github.md). To create a storefront with local code, see [Create a Storefront in Business Manager with Local Code](/docs/commerce/b2c-commerce/guide/sfnext-quick-start-create-bm.md).

- Create a SLAS private client.

  See [Configure a SLAS Private Client](https://developer.salesforce.com/docs/commerce/commerce-api/guide/slas-passwordless-login.md?q=passwordless#configure-a-slas-private-client).

- Set up Passwordless Login for Storefront Next.

  See [Passwordless Login for Storefront Next](/docs/commerce/b2c-commerce/guide/sfnext-passwordless-login.md).

1. To allow OTP-based logins, enable email verification.

   a. In Business Manager, click App Launcher, and then select **Merchant Tools** | **Site** | **Site Preferences** | **Storefront Login Preferences**.

   b. Turn on Enable Email Verification.

   c. Click **Apply**.

   ![Create an account for faster checkout.](https://a.sfdcstatic.com/developer-website/sfdocs/commerce-cloud/media/sfnext/sfnext-checkout-email-verification.png)

   See [OTP-Based Email Verification with SLAS](https://developer.salesforce.com/docs/commerce/commerce-api/guide/slas-otp-email-verification.md).

2. To protect passwordless login and account registration from bots, in `.env`, configure   Turnstile bot protection.

   a. Enable Turnstile and map your Cloudflare site key to your domain.

   ```
   PUBLIC__app__security__turnstile__enabled=true
   PUBLIC__app__security__turnstile__sites={"production":[{"siteKey":"0x4AAAAAAA...","domains":["www.mystore.com"]}]}
   ```

   b. To validate the challenge token against Cloudflare’s Siteverify API before processing the request, enable server-side verification.

   ```
   TURNSTILE_VERIFICATION_ENABLED=true
   TURNSTILE_SECRET_KEYS={"0x4AAAAAAA...":"0x4AAAAAAB..."}
   ```

   See [eCDN Turnstile](https://developer.salesforce.com/docs/commerce/commerce-api/guide/cdn-zones-turnstile.md).
