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

# Create Tokens

> Learn how to create tokens with your online payments integration.

To tokenize your shopper's payment details, you need to include additional fields when you make an API request to create a payment session or make a payment. When the details are successfully tokenized, you receive a webhook that contains the token you can use for subsequent payments.

You can tokenize your shopper's payment details when they pay for a purchase, or with a [zero-value auth](https://adyen-preview.mintlify.site/get-started-with-adyen/adyen-glossary.md#zero-value-auth).

If you already have existing recurring contracts with another payment service provider, you can [import the stored payment details](#import-stored-payment-details) to Adyen.

## Requirements

Before you begin, take into account the following requirements, limitations, and preparations.

| Requirement | Description |
| - | - |
| **Integration type** | An [online payments integration](https://adyen-preview.mintlify.site/online-payments/build-your-integration). |
| **[API credential roles](https://adyen-preview.mintlify.site/development-resources/api-credentials/roles.md)** | Make sure that you have the following roles: **Checkout webservice role** **Merchant Recurring role**Only if you want to use the [/storedPaymentMethods](https://docs.adyen.com/api-explorer/Checkout/latest/post/storedPaymentMethods) endpoint: **API tokenise payment details** |
| **[Webhooks](https://adyen-preview.mintlify.site/development-resources/webhooks.md)** | Subscribe to the [**Recurring tokens life cycle events** webhook](https://adyen-preview.mintlify.site/development-resources/webhooks/webhook-types#other-webhooks). |
| **Limitations** | With the [/sessions](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions) endpoint, you can create tokens for all [recurring payment types](https://adyen-preview.mintlify.site/online-payments/tokenization#recurring-payment-types), but making subsequent subscription or unscheduled card-on-file payments require using the [/payments](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments) endpoint. |
| **Setup steps** | Before you begin: [Add the payment methods](https://adyen-preview.mintlify.site/payment-methods/add-payment-methods) that [support recurring payments](https://adyen-preview.mintlify.site/payment-methods) in your Customer Area. Set up your [online payments integration](https://adyen-preview.mintlify.site/online-payments/build-your-integration). If you are implementing 3D Secure for PSD2 SCA compliance, [use our self-service guide](https://adyen-preview.mintlify.site/online-payments/psd2-sca-compliance-and-implementation-guide#are-my-payments-affected) to find out about the PSD2 SCA compliance rules that apply to your business when tokenizing shopper payment details. Review [additional SCA requirements based on business models](https://docs.adyen.com/online-payments/psd2-sca-compliance-and-implementation-guide/business-models-overview) that can apply to you, depending on your tokenization implementation. |

## How it works

To store your shoppers payment details and get a token that you can use for future payments:

1. [Enable the **Recurring tokens life cycle events** webhook](#enable-the-webhook).

2. Before the shopper pays on your website or app, ask for their consent to store their payment details for future payments. You must inform the shopper about the payment schedule and the amount that you will charge to reduce the risk of chargebacks.

3. In your payment request, include [tokenization parameters](#set-parameters-to-flag-transactions) to [create a token](#create-a-token) with the shopper's payment details. Multiple endpoints support tokenizing your shopper's payment details:

   * **POST** [/sessions](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions): the simplest way to create tokens. The payment session contains all the information needed to collect payment details securely. This reduces your [PCI scope to the simplest level (SAQ A)](https://adyen-preview.mintlify.site/development-resources/pci-dss-compliance-guide/saq-a-eligibility.md).
   * **POST** [/payments](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments): lets you have more control over the checkout experience, and lets you handle more complex payment flows where you need to manage the state and data flow yourself.
   * **POST** [/storedPaymentMethods](https://docs.adyen.com/api-explorer/Checkout/latest/post/storedPaymentMethods): Only available on Checkout API v70 and later. Lets you create tokens without an authorization. We recommend to create tokens with an authorization, to make sure the tokens you create are linked to active, chargeable accounts.

4. After the transaction is authorized, get the unique identifier and other information about the token from the [recurring.token.created](https://docs.adyen.com/api-explorer/Tokenization-webhooks/latest/post/recurring.token.created) webhook.

## Enable the webhook

To get updates when a token is created, updated, or disabled, enable the [Recurring tokens life cycle events](https://adyen-preview.mintlify.site/development-resources/webhooks/webhook-types#other-webhooks) webhook.

This webhook includes:

* `data.storedPaymentMethodId`: the ID of the token that was created, updated, or disabled.

* `data.shopperReference:`: your unique shopper reference.

* `eventId`: the `pspReference` for the transaction made to store the shopper's payment details.

* `type`: the type of webhook. The table below lists the possible values.

  | `type` | Description |
  | - | - |
  | [recurring.token.created](https://docs.adyen.com/api-explorer/Tokenization-webhooks/latest/post/recurring.token.created) | A token was [created](#create-a-token). To use in future recurring payments, store the `storedPaymentMethodId` together with the `shopperReference`, so that you associate the token with the shopper. |
  | [recurring.token.disabled](https://docs.adyen.com/api-explorer/Tokenization-webhooks/latest/post/recurring.token.disabled) | A token was disabled, this can happen when: [You delete stored payment details](#delete-stored-details). A third-party disables the payment details. |
  | [recurring.token.updated](https://docs.adyen.com/api-explorer/Tokenization-webhooks/latest/post/recurring.token.updated) | The stored details for a token were updated. You can [initiate the update](#update-stored-details), but stored details can also be updated by, for example, [card networks](#updates-from-card-networks). |
  | [recurring.token.alreadyExisting](https://docs.adyen.com/api-explorer/Tokenization-webhooks/latest/post/recurring.token.alreadyExisting) | A create or update operation was attempted with details that match an already existing token. The `storedPaymentMethodId` field contains the ID of the existing token. |

We recommend that you [set up the webhook](https://adyen-preview.mintlify.site/development-resources/webhooks.md#set-up-webhooks-in-your-customer-area) with all default events.

**Example token created webhook**

```json theme={null}
{
    "createdAt": "2024-01-14T18:10:49+01:00",
    "environment": "test",
    "type": "recurring.token.created",
    "data": {
        "merchantAccount": "YOUR_MERCHANT_ACCOUNT",
        "storedPaymentMethodId": "M5N7TQ4TG5PFWR50",
        "type": "visa",
        "operation": "created",
        "shopperReference": "YOUR_SHOPPER_REFERENCE"
    },
    "eventId": "QBQQ9DLNRHHKGK38"
}
```

We are no longer working on the development of the [RECURRING\_CONTRACT](https://docs.adyen.com/api-explorer/Webhooks/latest/post/RECURRING_CONTRACT) webhook. We strongly recommend to use the new [Recurring tokens life cycle events](https://adyen-preview.mintlify.site/development-resources/webhooks/webhook-types#other-webhooks) webhook instead, because it keeps you informed of more token lifecycle events. If your integration already uses the [RECURRING\_CONTRACT](https://docs.adyen.com/api-explorer/Webhooks/latest/post/RECURRING_CONTRACT) webhook, the webhook remains available.

## Create a token

Select the endpoint you are using:

> [tab] `/sessions`
>
> When the shopper proceeds to make a payment:
>
> 1. Use your integration to [create a session](https://adyen-preview.mintlify.site/online-payments/build-your-integration/sessions-flow.md). In your [/sessions](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions) request, include the additional parameters for tokenization:
>
>    | Parameter | Description |
>    | - | - |
>    | [recurringProcessingModel](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-recurringProcessingModel) | The type of recurring payment the token is intended for. If you want to use the token for more than one type of recurring payment, use the type that is most appropriate at the time of token creation. In subsequent transactions, you can specify another `recurringProcessingModel`. **Possible values**: **CardOnFile**: A transaction where shopper card details are stored to enable one-click or omnichannel journeys, or to offer a faster checkout later. **UnscheduledCardOnFile**: A transaction that occurs on a non-fixed schedule and/or have variable amounts. **Subscription**: A transaction for a fixed or variable amount, which follows a fixed schedule. |
>    | [shopperInteraction](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-shopperInteraction) | Indicates the sales channel through which the shopper gives their card details, for online transactions, this is **Ecommerce**. |
>    | [shopperReference](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-shopperReference) | Your unique reference for the shopper. Do not include personally identifiable information (PII), such as name or email address. **Format:**- Minimum length: 3 characters. Case-sensitive. |
>    | [storePaymentMethodMode](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions#request-storePaymentMethodMode)Checkout API v70 or later | Indicates if the details of the payment method will be stored for the shopper. **Possible values:**- **disabled** : No details will be stored (default). **askForConsent**: When `shopperReference` is included, the Drop-in/Component shows a checkbox where the shopper can select to store their payment details for card payments. For other payment methods, no checkbox is shown when the field is set to this value, and the payment details are not stored. **enabled**: When `shopperReference` is included, a token is created to store the payment details. The Drop-in/Component does not display a checkbox where the shopper can select to store their payment details. |
>    | [storePaymentMethod](https://docs.adyen.com/api-explorer/Checkout/69/post/sessions#request-storePaymentMethod) Checkout API v69 or earlier | Indicates if the details of the payment method will be stored for the shopper. When set to **true** and `shopperReference` is included, a token is created to store the payment details.If you have a Web Drop-in/Components integration with Checkout API v69 or earlier, set `enableStoreDetails` to **true** in your [Card configuration object](https://adyen-preview.mintlify.site/payment-methods/cards/web-component#optional-configuration) to display a checkbox where the shopper can select to store their payment details. |
>
> 2. If you want to tokenize the shopper's payment details with a zero-value auth, set the `amount.value` to **0**. If you want to tokenize the payment details as part of another transaction, use the amount for the current transaction.
>
>    Some payment methods, like [iDEAL](https://adyen-preview.mintlify.site/payment-methods/ideal) do not allow **0**, and require a minimum amount.
>
>    **Example /sessions request to create a CardOnFile token**
>
>    #### curl
>
>    ```bash theme={null}
>    curl https://checkout-test.adyen.com/v71/sessions \
>    -H 'x-api-key: ADYEN_API_KEY' \
>    -H 'content-type: application/json' \
>    -d '{
>       "merchantAccount": "YOUR_MERCHANT_ACCOUNT",
>       "amount": {
>          "value": 100,
>          "currency": "EUR"
>       },
>       "shopperReference": "YOUR_SHOPPER_REFERENCE",
>       "returnUrl": "https://your-company.example.com/checkout?shopperOrder=12xy..",
>       "reference": "YOUR_PAYMENT_REFERENCE",
>       "countryCode": "NL",
>       "storePaymentMethodMode": "enabled",
>       "shopperInteraction": "Ecommerce",
>       "recurringProcessingModel": "CardOnFile"
>    }'
>    ```
>
>    #### Java
>
>    ```java theme={null}
>    // Adyen Java API Library v26.3.0
>    import com.adyen.Client;
>    import com.adyen.enums.Environment;
>    import com.adyen.model.checkout.*;
>    import java.time.OffsetDateTime;
>    import java.util.*;
>    import com.adyen.model.RequestOptions;
>    import com.adyen.service.checkout.*;
>
>    // For the live environment, additionally include your liveEndpointUrlPrefix.
>    Client client = new Client("ADYEN_API_KEY", Environment.TEST);
>
>    // Create the request object(s)
>    Amount amount = new Amount()
>      .currency("EUR")
>      .value(100L);
>
>    CreateCheckoutSessionRequest createCheckoutSessionRequest = new CreateCheckoutSessionRequest()
>      .reference("YOUR_PAYMENT_REFERENCE")
>      .storePaymentMethodMode(CreateCheckoutSessionRequest.StorePaymentMethodModeEnum.ENABLED)
>      .amount(amount)
>      .merchantAccount("YOUR_MERCHANT_ACCOUNT")
>      .countryCode("NL")
>      .recurringProcessingModel(CreateCheckoutSessionRequest.RecurringProcessingModelEnum.CARDONFILE)
>      .shopperInteraction(CreateCheckoutSessionRequest.ShopperInteractionEnum.ECOMMERCE)
>      .returnUrl("https://your-company.example.com/checkout?shopperOrder=12xy..")
>      .shopperReference("YOUR_SHOPPER_REFERENCE");
>
>    // Send the request
>    PaymentsApi service = new PaymentsApi(client);
>    CreateCheckoutSessionResponse response = service.sessions(createCheckoutSessionRequest, new RequestOptions().idempotencyKey("UUID"));
>    ```
>
>    #### PHP
>
>    ```php theme={null}
>    // Adyen PHP API Library v18.2.1
>    use Adyen\Client;
>    use Adyen\Environment;
>    use Adyen\Model\Checkout\Amount;
>    use Adyen\Model\Checkout\CreateCheckoutSessionRequest;
>    use Adyen\Service\Checkout\PaymentsApi;
>
>    $client = new Client();
>    $client->setXApiKey("ADYEN_API_KEY");
>    // For the live environment, additionally include your liveEndpointUrlPrefix.
>    $client->setEnvironment(Environment::TEST);
>
>
>    // Create the request object(s)
>    $amount = new Amount();
>    $amount
>      ->setCurrency("EUR")
>      ->setValue(100);
>
>    $createCheckoutSessionRequest = new CreateCheckoutSessionRequest();
>    $createCheckoutSessionRequest
>      ->setReference("YOUR_PAYMENT_REFERENCE")
>      ->setStorePaymentMethodMode("enabled")
>      ->setAmount($amount)
>      ->setMerchantAccount("YOUR_MERCHANT_ACCOUNT")
>      ->setCountryCode("NL")
>      ->setRecurringProcessingModel("CardOnFile")
>      ->setShopperInteraction("Ecommerce")
>      ->setReturnUrl("https://your-company.example.com/checkout?shopperOrder=12xy..")
>      ->setShopperReference("YOUR_SHOPPER_REFERENCE");
>
>    $requestOptions['idempotencyKey'] = 'UUID';
>
>    // Send the request
>    $service = new PaymentsApi($client);
>    $response = $service->sessions($createCheckoutSessionRequest, $requestOptions);
>    ```
>
>    #### C\#
>
>    ```cs theme={null}
>    // Adyen .net API Library v17.0.0
>    using Adyen;
>    using Environment = Adyen.Model.Environment;
>    using Adyen.Model;
>    using Adyen.Model.Checkout;
>    using Adyen.Service.Checkout;
>
>    // For the live environment, additionally include your liveEndpointUrlPrefix.
>    var config = new Config()
>    {
>        XApiKey = "ADYEN_API_KEY",
>        Environment = Environment.Test
>    };
>    var client = new Client(config);
>
>    // Create the request object(s)
>    Amount amount = new Amount
>    {
>      Currency = "EUR",
>      Value = 100
>    };
>
>    CreateCheckoutSessionRequest createCheckoutSessionRequest = new CreateCheckoutSessionRequest
>    {
>      Reference = "YOUR_PAYMENT_REFERENCE",
>      StorePaymentMethodMode = CreateCheckoutSessionRequest.StorePaymentMethodModeEnum.Enabled,
>      Amount = amount,
>      MerchantAccount = "YOUR_MERCHANT_ACCOUNT",
>      CountryCode = "NL",
>      RecurringProcessingModel = CreateCheckoutSessionRequest.RecurringProcessingModelEnum.CardOnFile,
>      ShopperInteraction = CreateCheckoutSessionRequest.ShopperInteractionEnum.Ecommerce,
>      ReturnUrl = "https://your-company.example.com/checkout?shopperOrder=12xy..",
>      ShopperReference = "YOUR_SHOPPER_REFERENCE"
>    };
>
>    // Send the request
>    var service = new PaymentsService(client);
>    var response = service.Sessions(createCheckoutSessionRequest, requestOptions: new RequestOptions { IdempotencyKey = "UUID"});
>    ```
>
>    #### Go
>
>    ```go theme={null}
>    // Adyen Go API Library v10.4.0
>    import (
>      "context"
>      "github.com/adyen/adyen-go-api-library/v9/src/common"
>      "github.com/adyen/adyen-go-api-library/v9/src/adyen"
>      "github.com/adyen/adyen-go-api-library/v9/src/checkout"
>    )
>    // For the live environment, additionally include your liveEndpointUrlPrefix.
>    client := adyen.NewClient(&common.Config{
>      ApiKey:      "ADYEN_API_KEY",
>      Environment: common.TestEnv,
>    })
>
>    // Create the request object(s)
>    amount := checkout.Amount{
>      Currency: "EUR",
>      Value: 100,
>    }
>
>    createCheckoutSessionRequest := checkout.CreateCheckoutSessionRequest{
>      Reference: "YOUR_PAYMENT_REFERENCE",
>      StorePaymentMethodMode: common.PtrString("enabled"),
>      Amount: amount,
>      MerchantAccount: "YOUR_MERCHANT_ACCOUNT",
>      CountryCode: common.PtrString("NL"),
>      RecurringProcessingModel: common.PtrString("CardOnFile"),
>      ShopperInteraction: common.PtrString("Ecommerce"),
>      ReturnUrl: "https://your-company.example.com/checkout?shopperOrder=12xy..",
>      ShopperReference: common.PtrString("YOUR_SHOPPER_REFERENCE"),
>    }
>
>    // Send the request
>    service := client.Checkout()
>    req := service.PaymentsApi.SessionsInput().IdempotencyKey("UUID").CreateCheckoutSessionRequest(createCheckoutSessionRequest)
>    res, httpRes, err := service.PaymentsApi.Sessions(context.Background(), req)
>    ```
>
>    #### Python
>
>    ```py theme={null}
>    # Adyen Python API Library v12.5.1
>    import Adyen
>
>    adyen = Adyen.Adyen()
>    adyen.client.xapikey = "ADYEN_API_KEY"
>    # For the live environment, additionally include your liveEndpointUrlPrefix.
>    adyen.client.platform = "test" # The environment to use library in.
>
>    # Create the request object(s)
>    json_request = {
>      "merchantAccount": "YOUR_MERCHANT_ACCOUNT",
>      "amount": {
>        "value": 100,
>        "currency": "EUR"
>      },
>      "shopperReference": "YOUR_SHOPPER_REFERENCE",
>      "returnUrl": "https://your-company.example.com/checkout?shopperOrder=12xy..",
>      "reference": "YOUR_PAYMENT_REFERENCE",
>      "countryCode": "NL",
>      "storePaymentMethodMode": "enabled",
>      "shopperInteraction": "Ecommerce",
>      "recurringProcessingModel": "CardOnFile"
>    }
>
>    # Send the request
>    result = adyen.checkout.payments_api.sessions(request=json_request, idempotency_key="UUID")
>    ```
>
>    #### Ruby
>
>    ```rb theme={null}
>    # Adyen Ruby API Library v9.5.1
>    require "adyen-ruby-api-library"
>
>    adyen = Adyen::Client.new
>    adyen.api_key = 'ADYEN_API_KEY'
>    # For the live environment, additionally include your liveEndpointUrlPrefix.
>    adyen.env = :test # Set to "live" for live environment
>
>    # Create the request object(s)
>    request_body = {
>      :merchantAccount => 'YOUR_MERCHANT_ACCOUNT',
>      :amount => {
>        :value => 100,
>        :currency => 'EUR'
>      },
>      :shopperReference => 'YOUR_SHOPPER_REFERENCE',
>      :returnUrl => 'https://your-company.example.com/checkout?shopperOrder=12xy..',
>      :reference => 'YOUR_PAYMENT_REFERENCE',
>      :countryCode => 'NL',
>      :storePaymentMethodMode => 'enabled',
>      :shopperInteraction => 'Ecommerce',
>      :recurringProcessingModel => 'CardOnFile'
>    }
>
>    # Send the request
>    result = adyen.checkout.payments_api.sessions(request_body, headers: { 'Idempotency-Key' => 'UUID' })
>    ```
>
>    #### NodeJS (TypeScript)
>
>    ```ts theme={null}
>    // Adyen Node API Library v17.3.0
>    // Require the parts of the module you want to use
>    import { Client, CheckoutAPI, Types } from "@adyen/api-library";
>    // Initialize the client object
>    // For the live environment, additionally include your liveEndpointUrlPrefix.
>    const client = new Client({apiKey: "ADYEN_API_KEY", environment: "TEST"});
>
>    // Create the request object(s)
>    const amount: Types.checkout.Amount = {
>      currency: "EUR",
>      value: 100
>    };
>
>    const createCheckoutSessionRequest: Types.checkout.CreateCheckoutSessionRequest = {
>      reference: "YOUR_PAYMENT_REFERENCE",
>      storePaymentMethodMode: Types.checkout.CreateCheckoutSessionRequest.StorePaymentMethodModeEnum.Enabled,
>      amount: amount,
>      merchantAccount: "YOUR_MERCHANT_ACCOUNT",
>      countryCode: "NL",
>      recurringProcessingModel: Types.checkout.CreateCheckoutSessionRequest.RecurringProcessingModelEnum.CardOnFile,
>      shopperInteraction: Types.checkout.CreateCheckoutSessionRequest.ShopperInteractionEnum.Ecommerce,
>      returnUrl: "https://your-company.example.com/checkout?shopperOrder=12xy..",
>      shopperReference: "YOUR_SHOPPER_REFERENCE"
>    };
>
>    // Send the request
>    const checkoutAPI = new CheckoutAPI(client);
>    const response = checkoutAPI.PaymentsApi.sessions(createCheckoutSessionRequest, { idempotencyKey: "UUID" });
>    ```
>
>    The token is created after a successful payment authorization to ensure that the payment details the shopper provided are linked to an active, chargeable account. The token will be linked to the `shopperReference` you provided in your [/sessions](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions) request. If you have previously used the same`shopperReference` value, the token will be associated with the existing shopper.
>
>    **Example response after the request to create a token**
>
>    ```bash theme={null}
>    {
>       "amount": {
>         "currency": "EUR",
>         "value": 100
>       },
>       "countryCode": "NL",
>       "expiresAt": "2022-01-11T13:56:05+01:00",
>       "id": "FJM726V375BV9D82",
>       "merchantAccount": "YOUR_MERCHANT_ACCOUNT",
>       "recurringProcessingModel": "CardOnFile",
>       "reference": "YOUR_PAYMENT_REFERENCE",
>       "returnUrl": "https://your-company.example.com/checkout?shopperOrder=12xy..",
>       "shopperInteraction": "Ecommerce",
>       "storePaymentMethod": true,
>       "sessionData": "Ab02b4c0!BQABAgBfYI29..."
>    }
>    ```
>
> 3. Depending on the `recurringProcessingModel`, [Strong Customer Authentication (SCA)](https://adyen-preview.mintlify.site/get-started-with-adyen/adyen-glossary.md#strong-customer-authentication-sca) may be required. The [/sessions](https://docs.adyen.com/api-explorer/Checkout/latest/post/sessions) endpoint supports [native 3D Secure authentication](https://adyen-preview.mintlify.site/online-payments/3d-secure).
>
>    * **CardOnFile**: regulations and scheme rules may require SCA.
>    * **Subscription** and **UnscheduledCardOnFile**: SCA is required for the initial payment.
>
> 4. Get the token you can use for future payments in an asynchronous [Recurring tokens life cycle events](#enable-the-webhook) webhook with `type`: [recurring.token.created](https://docs.adyen.com/api-explorer/Tokenization-webhooks/latest/post/recurring.token.created).

> [tab] `/payments`
>
> When your shopper proceeds to pay:
>
> 1. Use your integration to [make a payment](https://adyen-preview.mintlify.site/online-payments/build-your-integration/advanced-flow.md). In your [/payments](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments) request, include the additional parameters for tokenization:
>
>    | Parameter | Description |
>    | - | - |
>    | [recurringProcessingModel](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#request-recurringProcessingModel) | When you first create a token, indicates what type of recurring payment the token is intended for. If you want to use the type that is most appropriate at the time of token creation. In subsequent transactions, you can specify another `recurringProcessingModel`. For subsequent payments, indicates the type of recurring payment. **Possible values:**- **CardOnFile**: A transaction where shopper card details are stored to enable one-click or omnichannel journeys, or to offer a faster checkout later. **UnscheduledCardOnFile**: A transaction that occurs on a non-fixed schedule and/or have variable amounts. **Subscription**: A transaction for a fixed or variable amount, which follows a fixed schedule. |
>    | [shopperInteraction](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#request-shopperInteraction) | Indicates the sales channel through which the shopper gives their card details, for online transactions, this is **Ecommerce**. |
>    | [shopperReference](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#request-shopperReference) | Your unique reference for the shopper. Do not include personally identifiable information (PII), such as name or email address. **Format:**- Minimum length: 3 characters. Case-sensitive. |
>    | [storePaymentMethod](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#request-storePaymentMethod) | When you first create a token, set to **true** to store the shopper's payment details. For subsequent payments, this parameter is not required. |
>
>    **Checkout API v69 or earlier**\
>    If the **Recurring toggle** is enabled in your [Customer Area](https://ca-test.adyen.com/) > **Settings** > **Checkout settings** > **Tokenization**, you tokenize payment details automatically when [shopperReference](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#request-shopperReference) is included. If you do not want this behavior, disable the toggle.
>
> 2. If you want to tokenize the shopper's payment details with a zero-value auth, set the `amount.value` to **0**. If you want to tokenize the payment details as part of another transaction, use the amount for the current transaction.
>
>    Keep in mind that some payment methods, like [iDEAL](https://adyen-preview.mintlify.site/payment-methods/ideal) do not allow **0**, and require a minimum amount.
>
>    **Example /payments request to create a CardOnFile token**
>
>    #### curl
>
>    ```bash theme={null}
>    curl https://checkout-test.adyen.com/v72/payments \
>    -H 'x-api-key: ADYEN_API_KEY' \
>    -H 'content-type: application/json' \
>    -d '{
>       "amount":{
>          "value":0,
>          "currency":"USD"
>       },
>       "paymentMethod":{
>          "type":"scheme",
>          "encryptedCardNumber": "test_4111111111111111",
>          "encryptedExpiryMonth": "test_03",
>          "encryptedExpiryYear": "test_2030",
>          "encryptedSecurityCode": "test_737",
>          "holderName":"John Smith"
>       },
>       "reference":"YOUR_ORDER_REFERENCE",
>       "shopperInteraction": "Ecommerce",
>       "recurringProcessingModel": "CardOnFile",
>       "storePaymentMethod": "true",
>       "merchantAccount":"YOUR_MERCHANT_ACCOUNT",
>       "shopperReference":"YOUR_SHOPPER_REFERENCE",
>       "returnUrl":"https://your-company.example.com/..."
>    }'
>    ```
>
>    #### Java
>
>    ```java theme={null}
>    // Adyen Java API Library v39.3.0
>    import com.adyen.Client;
>    import com.adyen.enums.Environment;
>    import com.adyen.model.checkout.*;
>    import java.time.OffsetDateTime;
>    import java.util.*;
>    import com.adyen.model.RequestOptions;
>    import com.adyen.service.checkout.*;
>
>    // For the LIVE environment, also include your liveEndpointUrlPrefix.
>    Client client = new Client("ADYEN_API_KEY", Environment.TEST);
>
>    // Create the request object(s)
>    Amount amount = new Amount()
>      .currency("USD")
>      .value(0L);
>
>    CardDetails cardDetails = new CardDetails()
>      .encryptedCardNumber("test_4111111111111111")
>      .holderName("John Smith")
>      .encryptedSecurityCode("test_737")
>      .encryptedExpiryYear("test_2030")
>      .encryptedExpiryMonth("test_03")
>      .type(CardDetails.TypeEnum.SCHEME);
>
>    PaymentRequest paymentRequest = new PaymentRequest()
>      .reference("YOUR_ORDER_REFERENCE")
>      .amount(amount)
>      .storePaymentMethod(true)
>      .merchantAccount("YOUR_MERCHANT_ACCOUNT")
>      .recurringProcessingModel(PaymentRequest.RecurringProcessingModelEnum.CARDONFILE)
>      .paymentMethod(new CheckoutPaymentMethod(cardDetails))
>      .shopperInteraction(PaymentRequest.ShopperInteractionEnum.ECOMMERCE)
>      .returnUrl("https://your-company.example.com/...")
>      .shopperReference("YOUR_SHOPPER_REFERENCE");
>
>    // Send the request
>    PaymentsApi service = new PaymentsApi(client);
>    PaymentResponse response = service.payments(paymentRequest, new RequestOptions().idempotencyKey("UUID"));
>    ```
>
>    #### PHP
>
>    ```php theme={null}
>    <?php
>    // Adyen PHP API Library v28.2.0
>    use Adyen\Client;
>    use Adyen\Environment;
>    use Adyen\Model\Checkout\Amount;
>    use Adyen\Model\Checkout\CheckoutPaymentMethod;
>    use Adyen\Model\Checkout\PaymentRequest;
>    use Adyen\Service\Checkout\PaymentsApi;
>
>    $client = new Client();
>    $client->setXApiKey("ADYEN_API_KEY");
>    // For the LIVE environment, also include your liveEndpointUrlPrefix.
>    $client->setEnvironment(Environment::TEST);
>
>
>    // Create the request object(s)
>    $amount = new Amount();
>    $amount
>      ->setCurrency("USD")
>      ->setValue(0);
>
>    $checkoutPaymentMethod = new CheckoutPaymentMethod();
>    $checkoutPaymentMethod
>      ->setEncryptedCardNumber("test_4111111111111111")
>      ->setHolderName("John Smith")
>      ->setEncryptedSecurityCode("test_737")
>      ->setEncryptedExpiryYear("test_2030")
>      ->setEncryptedExpiryMonth("test_03")
>      ->setType("scheme");
>
>    $paymentRequest = new PaymentRequest();
>    $paymentRequest
>      ->setReference("YOUR_ORDER_REFERENCE")
>      ->setAmount($amount)
>      ->setStorePaymentMethod(true)
>      ->setMerchantAccount("YOUR_MERCHANT_ACCOUNT")
>      ->setRecurringProcessingModel("CardOnFile")
>      ->setPaymentMethod($checkoutPaymentMethod)
>      ->setShopperInteraction("Ecommerce")
>      ->setReturnUrl("https://your-company.example.com/...")
>      ->setShopperReference("YOUR_SHOPPER_REFERENCE");
>
>    $requestOptions['idempotencyKey'] = 'UUID';
>
>    // Send the request
>    $service = new PaymentsApi($client);
>    $response = $service->payments($paymentRequest, $requestOptions);
>    ```
>
>    #### C\#
>
>    ```cs theme={null}
>    // Adyen .net API Library v32.1.1
>    using Adyen;
>    using Environment = Adyen.Model.Environment;
>    using Adyen.Model;
>    using Adyen.Model.Checkout;
>    using Adyen.Service.Checkout;
>
>    // For the LIVE environment, also include your liveEndpointUrlPrefix.
>    var config = new Config()
>    {
>        XApiKey = "ADYEN_API_KEY",
>        Environment = Environment.Test
>    };
>    var client = new Client(config);
>
>    // Create the request object(s)
>    Amount amount = new Amount
>    {
>      Currency = "USD",
>      Value = 0
>    };
>
>    CardDetails cardDetails = new CardDetails
>    {
>      EncryptedCardNumber = "test_4111111111111111",
>      HolderName = "John Smith",
>      EncryptedSecurityCode = "test_737",
>      EncryptedExpiryYear = "test_2030",
>      EncryptedExpiryMonth = "test_03",
>      Type = CardDetails.TypeEnum.Scheme
>    };
>
>    PaymentRequest paymentRequest = new PaymentRequest
>    {
>      Reference = "YOUR_ORDER_REFERENCE",
>      Amount = amount,
>      StorePaymentMethod = true,
>      MerchantAccount = "YOUR_MERCHANT_ACCOUNT",
>      RecurringProcessingModel = PaymentRequest.RecurringProcessingModelEnum.CardOnFile,
>      PaymentMethod = new CheckoutPaymentMethod(cardDetails),
>      ShopperInteraction = PaymentRequest.ShopperInteractionEnum.Ecommerce,
>      ReturnUrl = "https://your-company.example.com/...",
>      ShopperReference = "YOUR_SHOPPER_REFERENCE"
>    };
>
>    // Send the request
>    var service = new PaymentsService(client);
>    var response = service.Payments(paymentRequest, requestOptions: new RequestOptions { IdempotencyKey = "UUID"});
>    ```
>
>    #### NodeJS (JavaScript)
>
>    ```js theme={null}
>    // Adyen Node API Library v29.0.0
>    const { Client, CheckoutAPI } = require('@adyen/api-library');
>
>    // For the LIVE environment, also include your liveEndpointUrlPrefix.
>    const config = new Config({
>      apiKey: "ADYEN_API_KEY",
>      environment: EnvironmentEnum.TEST
>    });
>
>    const client = new Client(config);
>
>    // Create the request object(s)
>    const paymentRequest = {
>      amount: {
>        value: 0,
>        currency: "USD"
>      },
>      paymentMethod: {
>        type: "scheme",
>        encryptedCardNumber: "test_4111111111111111",
>        encryptedExpiryMonth: "test_03",
>        encryptedExpiryYear: "test_2030",
>        encryptedSecurityCode: "test_737",
>        holderName: "John Smith"
>      },
>      reference: "YOUR_ORDER_REFERENCE",
>      shopperInteraction: "Ecommerce",
>      recurringProcessingModel: "CardOnFile",
>      storePaymentMethod: "true",
>      merchantAccount: "YOUR_MERCHANT_ACCOUNT",
>      shopperReference: "YOUR_SHOPPER_REFERENCE",
>      returnUrl: "https://your-company.example.com/..."
>    }
>
>    // Send the request
>    const checkoutAPI = new CheckoutAPI(client);
>    const response = checkoutAPI.PaymentsApi.payments(paymentRequest, { idempotencyKey: "UUID" });
>    ```
>
>    #### Go
>
>    ```go theme={null}
>    // Adyen Go API Library v21.0.0
>    import (
>      "context"
>      "github.com/adyen/adyen-go-api-library/v21/src/common"
>      "github.com/adyen/adyen-go-api-library/v21/src/adyen"
>      "github.com/adyen/adyen-go-api-library/v21/src/checkout"
>    )
>    // For the LIVE environment, also include your liveEndpointUrlPrefix.
>    client := adyen.NewClient(&common.Config{
>      ApiKey:      "ADYEN_API_KEY",
>      Environment: common.TestEnv,
>    })
>
>    // Create the request object(s)
>    amount := checkout.Amount{
>      Currency: "USD",
>      Value: 0,
>    }
>
>    cardDetails := checkout.CardDetails{
>      EncryptedCardNumber: common.PtrString("test_4111111111111111"),
>      HolderName: common.PtrString("John Smith"),
>      EncryptedSecurityCode: common.PtrString("test_737"),
>      EncryptedExpiryYear: common.PtrString("test_2030"),
>      EncryptedExpiryMonth: common.PtrString("test_03"),
>      Type: common.PtrString("scheme"),
>    }
>
>    paymentRequest := checkout.PaymentRequest{
>      Reference: "YOUR_ORDER_REFERENCE",
>      Amount: amount,
>      StorePaymentMethod: common.PtrBool(true),
>      MerchantAccount: "YOUR_MERCHANT_ACCOUNT",
>      RecurringProcessingModel: common.PtrString("CardOnFile"),
>      PaymentMethod: checkout.CardDetailsAsCheckoutPaymentMethod(&cardDetails),
>      ShopperInteraction: common.PtrString("Ecommerce"),
>      ReturnUrl: "https://your-company.example.com/...",
>      ShopperReference: common.PtrString("YOUR_SHOPPER_REFERENCE"),
>    }
>
>    // Send the request
>    service := client.Checkout()
>    req := service.PaymentsApi.PaymentsInput().IdempotencyKey("UUID").PaymentRequest(paymentRequest)
>    res, httpRes, err := service.PaymentsApi.Payments(context.Background(), req)
>    ```
>
>    #### Python
>
>    ```py theme={null}
>    # Adyen Python API Library v13.6.0
>    import Adyen
>
>    adyen = Adyen.Adyen()
>    adyen.client.xapikey = "ADYEN_API_KEY"
>    # For the LIVE environment, also include your liveEndpointUrlPrefix.
>    adyen.client.platform = "test" # The environment to use library in.
>
>    # Create the request object(s)
>    json_request = {
>      "amount": {
>        "value": 0,
>        "currency": "USD"
>      },
>      "paymentMethod": {
>        "type": "scheme",
>        "encryptedCardNumber": "test_4111111111111111",
>        "encryptedExpiryMonth": "test_03",
>        "encryptedExpiryYear": "test_2030",
>        "encryptedSecurityCode": "test_737",
>        "holderName": "John Smith"
>      },
>      "reference": "YOUR_ORDER_REFERENCE",
>      "shopperInteraction": "Ecommerce",
>      "recurringProcessingModel": "CardOnFile",
>      "storePaymentMethod": "True",
>      "merchantAccount": "YOUR_MERCHANT_ACCOUNT",
>      "shopperReference": "YOUR_SHOPPER_REFERENCE",
>      "returnUrl": "https://your-company.example.com/..."
>    }
>
>    # Send the request
>    result = adyen.checkout.payments_api.payments(request=json_request, idempotency_key="UUID")
>    ```
>
>    #### Ruby
>
>    ```rb theme={null}
>    # Adyen Ruby API Library v10.4.0
>    require "adyen-ruby-api-library"
>
>    adyen = Adyen::Client.new
>    adyen.api_key = 'ADYEN_API_KEY'
>    # For the LIVE environment, also include your liveEndpointUrlPrefix.
>    adyen.env = :test # Set to "live" for live environment
>
>    # Create the request object(s)
>    request_body = {
>      :amount => {
>        :value => 0,
>        :currency => 'USD'
>      },
>      :paymentMethod => {
>        :type => 'scheme',
>        :encryptedCardNumber => 'test_4111111111111111',
>        :encryptedExpiryMonth => 'test_03',
>        :encryptedExpiryYear => 'test_2030',
>        :encryptedSecurityCode => 'test_737',
>        :holderName => 'John Smith'
>      },
>      :reference => 'YOUR_ORDER_REFERENCE',
>      :shopperInteraction => 'Ecommerce',
>      :recurringProcessingModel => 'CardOnFile',
>      :storePaymentMethod => 'true',
>      :merchantAccount => 'YOUR_MERCHANT_ACCOUNT',
>      :shopperReference => 'YOUR_SHOPPER_REFERENCE',
>      :returnUrl => 'https://your-company.example.com/...'
>    }
>
>    # Send the request
>    result = adyen.checkout.payments_api.payments(request_body, headers: { 'Idempotency-Key' => 'UUID' })
>    ```
>
>    #### NodeJS (TypeScript)
>
>    ```ts theme={null}
>    // Adyen Node API Library v29.0.0
>    import { Client, CheckoutAPI, Types } from "@adyen/api-library";
>
>    // For the LIVE environment, also include your liveEndpointUrlPrefix.
>    const config = new Config({
>      apiKey: "ADYEN_API_KEY",
>      environment: EnvironmentEnum.TEST
>    });
>
>    const client = new Client(config);
>
>    // Create the request object(s)
>    const amount: Types.checkout.Amount = {
>      currency: "USD",
>      value: 0
>    };
>
>    const cardDetails: Types.checkout.CardDetails = {
>      encryptedCardNumber: "test_4111111111111111",
>      holderName: "John Smith",
>      encryptedSecurityCode: "test_737",
>      encryptedExpiryYear: "test_2030",
>      encryptedExpiryMonth: "test_03",
>      type: Types.checkout.CardDetails.TypeEnum.Scheme
>    };
>
>    const paymentRequest: Types.checkout.PaymentRequest = {
>      reference: "YOUR_ORDER_REFERENCE",
>      amount: amount,
>      storePaymentMethod: true,
>      merchantAccount: "YOUR_MERCHANT_ACCOUNT",
>      recurringProcessingModel: Types.checkout.PaymentRequest.RecurringProcessingModelEnum.CardOnFile,
>      paymentMethod: cardDetails,
>      shopperInteraction: Types.checkout.PaymentRequest.ShopperInteractionEnum.Ecommerce,
>      returnUrl: "https://your-company.example.com/...",
>      shopperReference: "YOUR_SHOPPER_REFERENCE"
>    };
>
>    // Send the request
>    const checkoutAPI = new CheckoutAPI(client);
>    const response = checkoutAPI.PaymentsApi.payments(paymentRequest, { idempotencyKey: "UUID" });
>    ```
>
>    The token is created after a successful payment authorization to ensure that the payment details the shopper provided are linked to an active, chargeable account.
>
> 3. Depending on the `recurringProcessingModel`, [Strong Customer Authentication (SCA)](https://adyen-preview.mintlify.site/get-started-with-adyen/adyen-glossary.md#strong-customer-authentication-sca) may be required. Use your [Advanced flow integration](https://adyen-preview.mintlify.site/online-payments/build-your-integration/advanced-flow.md) to handle the authentication.
>
>    * **CardOnFile**: regulations and scheme rules may require SCA.
>    * **Subscription** and **UnscheduledCardOnFile**: SCA is required for the initial payment.
>
> 4. Wait for the [/payments](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments) or [/payments/details](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments/details) response to learn whether the payment is successfully authorized. The [`resultCode` ](https://adyen-preview.mintlify.site/online-payments/build-your-integration/payment-result-codes)informs you whether the payment authorization was successful.
>
>    | Result code | Description | Action |
>    | - | - | - |
>    | **Authorised** | The payment was successful, and the payment details were tokenized. | For some payment methods, the API response includes the token in `additionalData.tokenization.storedPaymentMethodId` and [AUTHORISATION](https://docs.adyen.com/api-explorer/Webhooks/latest/post/AUTHORISATION) webhook. We recommend to always get the token from the **recurring.token.created** webhook. |
>    | **Pending** | The payment is pending, and the payment details haven not been tokenized yet. | Wait for the **recurring.token.created** webhook that you get when the payment reaches the **Authorised** status. |
>    | **Refused** | The payment was refused, and the payment details were not tokenized. | Make another payment request to try tokenizing again. |
>
>    For payments where authorization happens asynchronously, the response does not include a token. To make sure you do not miss an update when a token is created, we recommend to always listen to the [recurring.token.created](https://docs.adyen.com/api-explorer/Tokenization-webhooks/latest/post/recurring.token.created) webhook.
>
>    **Authorized payment response including the token**
>
>    ```json theme={null}
>    {
>        "additionalData": {
>            "tokenization.shopperReference": "YOUR_SHOPPER_REFERENCE",
>            "tokenization.storedPaymentMethodId": "M5N7TQ4TG5PFWR50",
>            "tokenization.store.operationType": "created"
>        },
>        "pspReference": "DZ4DPSHB4WD2WN82",
>        "resultCode": "Authorised",
>        "amount": {
>            "currency": "USD",
>            "value": 0
>        },
>        "merchantReference": "YOUR_ORDER_REFERENCE"
>    }
>    ```
>
> 5. Get the token you can use for future payments from the asynchronous [Recurring tokens life cycle events](#enable-the-webhook) webhook with `type`: [recurring.token.created](https://docs.adyen.com/api-explorer/Tokenization-webhooks/latest/post/recurring.token.created).

> [tab] `/storedPaymentMethods`
>
> This endpoint is only available on [Checkout API v70](https://docs.adyen.com/api-explorer/Checkout/70/overview) or later.
>
> We recommend that you store payment details by making a zero-auth transaction, because a successful authorization indicates that the payment details were validated by the card scheme.
>
> If you validated a shopper's payment details in a different way, you can store payment details without making a zero-auth transaction.
>
> To store your shopper's payment details:
>
> 1. From your server, make a POST [/storedPaymentMethods](https://docs.adyen.com/api-explorer/Checkout/latest/post/storedPaymentMethods) request including:
>
>    | Parameter | Required | Description |
>    | - | - | - |
>    | `merchantAccount` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | Your merchant account. |
>    | `shopperReference` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | Your unique reference for the shopper. Do not include personally identifiable information (PII), such as name or email address. **Format:**- Minimum length: 3 characters. Case-sensitive. |
>    | `paymentMethod.type` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The payment method type. Set to **scheme**. |
>    | `paymentMethod.encryptedCardNumber` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The encrypted card number. |
>    | `paymentMethod.encryptedExpiryMonth` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The encrypted card expiry month. |
>    | `paymentMethod.encryptedExpiryYear` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The encrypted card expiry year. |
>    | `paymentMethod.holderName` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The name of the card holder. |
>    | `recurringProcessingModel` | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The type of recurring payment the token is intended for. If you want to use the token for more than one type of recurring payment, use the type that is most appropriate at the time of token creation. In subsequent transactions, you can specify another `recurringProcessingModel`. **Possible values**: **CardOnFile**: A transaction where shopper card details are stored to enable one-click or omnichannel journeys, or to offer a faster checkout later. **UnscheduledCardOnFile**: A transaction that occurs on a non-fixed schedule and/or have variable amounts. **Subscription**: A transaction for a fixed or variable amount, which follows a fixed schedule. |
>    | `shopperEmail` | | The shopper's email address. |
>    | `shopperIP` | | The shopper's IP address. |
>
>    If you are [fully PCI compliant](https://adyen-preview.mintlify.site/development-resources/pci-dss-compliance-guide), and use [unencrypted card data](https://adyen-preview.mintlify.site/payment-methods/cards/raw-card-data#recurring-payments), use the raw card data fields instead:
>
>    * `paymentMethod.number`
>
>    * `paymentMethod.expiryMonth`
>
>    * `paymentMethod.expiryYear`
>
>    * `paymentMethod.holderName`
>
>    **Example request to store encrypted card details**
>
>    ```bash theme={null}
>    curl https://checkout-test.adyen.com/v71/storedPaymentMethods \
>    -H 'x-api-key: ADYEN_API_KEY' \
>    -H 'content-type: application/json' \
>    -d '{
>       "merchantAccount":"YOUR_MERCHANT_ACCOUNT",
>       "shopperReference":"YOUR_SHOPPER_REFERENCE",
>       "paymentMethod":{
>          "type":"scheme",
>          "encryptedCardNumber":"test_4111111111111111",
>          "encryptedExpiryMonth":"test_03",
>          "encryptedExpiryYear":"test_2030",
>          "encryptedSecurityCode":"test_737",
>          "holderName":"John Smith"
>       },
>       "recurringProcessingModel":"Subscription",
>       "shopperEmail":"s.hopper@test.com",
>       "shopperIP":"192.0.2.1"
>    }'
>    ```
>
> 2. From the response, note the `id` field. This is the token that you need to make subsequent payment with the token. If you store tokens on your server, associate the `id` with the `shopperReference`.
>
>    **Example response including the token id**
>
>    ```bash theme={null}
>    {
>        "expiryMonth": "03",
>        "expiryYear": "2030",
>        "holderName": "John Smith",
>        "id": "KHQC5N7G84BLNK43",
>        "lastFour": "1111",
>        "shopperReference": "YOUR_SHOPPER_REFERENCE",
>        "type": "scheme"
>    }
>    ```
>
> ## Import stored payment details
>
> If you have existing recurring contracts with another payment service provider, you can migrate and [import stored payment details](https://adyen-preview.mintlify.site/development-resources/migrating-payment-data/import-payment-details-for-recurring-payments.md) to Adyen. When you import the data, you do not need to collect your shoppers' payment details again to create a token.
>
> When the stored payment details are successfully migrated, you receive an [output file](https://adyen-preview.mintlify.site/development-resources/migrating-payment-data/import-payment-details-for-recurring-payments.md#output-file-reference). From this file you can get the parameters that you need to use the tokens in future payments.
>
> ## Test and go live
>
> Follow our [testing guide for tokenization](https://adyen-preview.mintlify.site/development-resources/testing/tokenization.md) and make sure that you receive the [recurring.token.created](https://docs.adyen.com/api-explorer/Tokenization-webhooks/latest/post/recurring.token.created) webhook when you store payment details.
>
> When you are ready to go live:
>
> * Enable the **Recurring tokens life cycle events** webhooks in your [live Customer Area](https://ca-live.adyen.com/).
> * Follow the [Tokenization end-to-end testing checklist](https://adyen-preview.mintlify.site/online-payments/go-live-checklist.md#tokenization).
>
> ## Next steps
>
> > [card] [Make token payments](https://adyen-preview.mintlify.site/online-payments/tokenization/make-token-payments.md)
> >
> > Make one-click, subscription, or unscheduled card-on-file payments with the tokens you created.
>
> > [card] [Manage tokens](https://adyen-preview.mintlify.site/online-payments/tokenization/managing-tokens.md)
> >
> > Retrieve, update, and disable tokens you stored with Adyen.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.