> ## Documentation Index
> Fetch the complete documentation index at: https://wpay-feat-edp-guide.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Step 2: Create a checkout sessions

Before you can use Secure Fields in your web checkout we will need to create a
checkout session.

<Snippet file="quickstarts/sdks.mdx" />

## Generate a checkout session

The final step is to create a new checkout session for use by **Secure Fields**.

<CodeGroup>
  ```js Node
  const response = await client.addCheckoutSession();
  const sessionId = response.data.id;
  ```

  ```python Python
  session = client.create_new_checkout_session()
  ```

  ```php PHP
  $apiInstance = new CheckoutSessionApi(new Client(),$config->getConfig());
  $session = $client->addCheckoutSession();
  ```

  ```java Java
  CheckoutSessionsApi checkoutInstance = new CheckoutSessionsApi(gr4vyClient.getClient());
  CheckoutSession response = checkoutInstance.addCheckoutSession();
  ```
</CodeGroup>

The `id` if this session can now be passed to your checkout page, where it can
be used by Secure Fields.

## Summary

In this step you:

* Installed the SDK
* Created a new checkout session.
* Passed the `id` if this session your front-end application, where it will be
  used by Secure Fields.
