---
title: Install and configure AuthorizeTokenEx
slug: commerce-connect-14/docs/authorizetokenex-installation-and-configuration
docTags: 
createdAt: 2026-07-23T10:25:35.210Z
---

:::hint{type="info"}
**Note**
The AuthorizationTokenEx payment provider is not yet available for subscriptions (payment plans).
:::

Follow the steps below to install and deploy the [AuthorizeTokenEx payment provider](https://www.authorize.net/).

## Download file packages

[Download or clone the Customized Commerce Payment Providers repository from Github](https://github.com/episerver/CommercePaymentGateways). This contains open-sourced payment gateways for Optimizely Commerce Connect, including the AuthorizeTokenEx payment provider projects described below.

:::hint{type="info"}
**Note**
The AuthorizeTokenEx payment provider requires Commerce Connect version 13.29.0 or higher.
:::

The repository contains the following AuthorizeTokenEx projects:

- `EPiServer.Commerce.Payment.AuthorizeTokenEx` – Contains `AuthorizeTokenExpayment` and `AuthorizeTokenExgateway` and will be deployed to both Commerce Manager and the front-end site.
- `EPiServer.Commerce.Payment.AuthorizeTokenEx.CSR` – Contains API controller and React components, and will be deployed to the front-end site.

Follow the steps below to add the projects to your solution.

## Build the AuthorizeTokenEx project

1. Open the **AuthorizeTokenEx** project and save the solution.
2. Rebuild the solution and make sure the packages `AuthorizeNet` and `EPiServer.Commerce.Core`are installed successfully from NuGet. You can also install the packages manually as follows:
   - Install the `AuthorizeNet` NuGet package by executing this command in the Package Manager Console:
     `Install-Package AuthorizeNet -version 1.9.4`
     - Install the `EPiServer.Commerce.Core` NuGet package by executing this command in the Package Manager Console:
       `Install-Package EPiServer.Commerce.Core`
3. Rebuild the `AuthorizeTokenEx project`. You should now have the `EPiServer.Commerce.Payment.AuthorizeTokenEx.dll` and `AuthorizeNet.dll` assemblies.

### Project structure

The project package contains the files and folders described in the following.

![](https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/RS1S9pS_CIWcKZB_1acLa-20260723-094600.png)

| File                                    | Description                                                                                   |
| --------------------------------------- | --------------------------------------------------------------------------------------------- |
| `AuthorizeTokenExService.cs`            | Contains all the functions needed to perform operations of Authorize integrated with TokenEx. |
| `AuthorizeNetTokenExCimBasedManager.cs` | Contains all the functions needed to perform operations for AuthorizeTokenExGateway.          |
| `AuthorizeTokenExGateway.cs`            | Main business payment gateway.                                                                |
| `ConfigurePayment.ascx`                 | Commerce Manager payment editor.                                                              |

## Build the AuthorizeTokenEx.CSR project

1. Open the **AuthorizeTokenEx.CSR** project and save the solution.
2. Rebuild the solution and make sure the packages `AuthorizeNet` and `EPiServer.Commerce.Core` are installed successfully from NuGet. These should be installed automatically after rebuilding, if not, you can install them manually as follows:
   - Install the `AuthorizeNet` NuGet package by executing this command in the Package Manager Console: `Install-Package AuthorizeNet -version 1.9.4`
   - Install the `EPiServer.Commerce.Core` package by executing this command in the Package Manager Console: `Install-Package EPiServer.Commerce.Core`
3. Rebuild the `EPiServer.Commerce.Payment.AuthorizeTokenEx.CSR` project. You should now have the `EPiServer.Commerce.Payment.AuthorizeTokenEx.CSR.dll`.

The important file in `CSRExtensibility\react-app\dist\tokenExPayment.min.js`, which is deployed to the front-end site. It contains the TokenEx payment method component for the Order Management (CSR) user interface, and the `TokenExConfiguration`. 

![](https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/OdpoAXPihOVATDoQgq6pN-20260723-094600.png)

### Project structure

The project package contains the files and folders described in the following.

![](https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/nNp5ky18zvreNKS-WzYw8-20260723-094600.png)

| File                                             | Description                                                                                                                                                |
| ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Controllers\ TokenExApiController.cs`           | Controller for generating TokenEx configuration, see [TokenEx configuration object](https://docs.tokenex.com/reference#building-the-configuration-object). |
| `Controllers\ TokenExPaymentsControllerBase.cs`  | Controller base for handling the payment.                                                                                                                  |
| `Controllers\ OrderTokenExPaymentsController.cs` | Controller for handling payment for an *order*. **Note** that currently TokenEx is not supported for subscriptions.                                        |
| `CSRExtensibility` folder                        | Contains a React application for the TokenEx component, based on the CSR/Order Management extensibility feature.                                           |
| `Models\ TokenExIframeConfigModel.cs`            | TokenEx configuration model.                                                                                                                               |
| `Models\ TokenizationPaymentModel.cs`            | Tokenization payment model.                                                                                                                                |
| `TokenExConfiguration.cs`                        | Contains configuration for TokenEx for the CSR/Order Management user interface.                                                                            |

## Commerce Manager setup

1. Find the `Commerce Manager Apps` folder, located in the `Optimizely Commerce Manager` project folder.
2. Deploy the `ConfigurePayment.ascx` file to the `Apps\Order\Payments\Plugins\ AuthorizeTokenEx` folder. If the `AuthorizeTokenEx` folder does not exist, create it.
3. Deploy `AuthorizeNet.dll` and `EPiServer.Business.Commerce.Payment.Authorize.dll`  to the `bin` folder of your Commerce Manager site.
4. In your solution's Commerce Manager project, add references to the deployed .dll's and rebuild.

### Configure AuthorizeTokenEx

After deploying all necessary files, open the Commerce Manager back-end site and follow these steps.

1. Go to **Administration > Order System > Payments > English (United States)**. The last option is the language in which you want to make the AuthorizeTokenEx payment available.
2. Click **New**to create a new payment method.
   - For **System Keyword**, select **AuthorizeTokenEx**, the name of the folder created during deployment.
   - For **Class Name**, select `EPiServer.Business.Commerce.Payment.Authorize.AuthorizeTokenizationGateway`.
   - For **Payment Class**, select `EPiServer.Commerce.Order.Payments.Internal.TokenizationPayment`.

![](https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/ylbp2VpUSaGqkXX2lpX9o-20260723-094600.png)

3. Click **OK** to save the AuthorizeTokenEx payment method.
4. Open the AuthorizeTokenEx payment method for additional editing.
5. Go to the **Parameters**tab and enter the following:
   - **API UserId** - the API **user name** Authorize.Net provides when you register to use Authorize.Net’s API calls.
   - **Transaction Key** - your Authorize.Net API **user password**.

## Configure AuthorizeTokenEx on the front-end site

1. Go to the front-end site.
2. Deploy `AuthorizeNet.dll`, `EPiServer.Commerce.Payment.Authorize.dll`, and `EPiServer.Commerce.Payment.AuthorizeTokenEx.CSR.dll` to the `bin` folder of your front-end site.
3. In your front-end site project of your solution, add references to the deployed .dll's and rebuild.
4. In the *root folder* of the front-end site project, create a folder with the path `CSRExtensibility\react-app\dist` and copy the file `tokenExPayment.min.js` to this folder.

:::hint{type="info"}
**Note**

You can change the location for `tokenExPayment.min.js`, but remember to update the `TokenExConfiguration.cs` correspondingly.
:::

5. Edit the `appSettings` section in `web.config` as follows:

| # | Name                                     | Description                                                 |
| - | ---------------------------------------- | ----------------------------------------------------------- |
| 1 | `episerver:tokenization.TokenizationId`  | Your TokenEx account ID.                                    |
| 2 | `episerver:tokenization.ClientSecretKey` | TokenEx client secret key.                                  |
| 3 | `episerver:tokenization.ApiKey`          | TokenEx API key.                                            |
| 4 | `episerver:tokenization.TestMode`        | Specific production or test environment. Value: true/false. |

:::hint{type="info"}
**Note**
The front-end site must run on HTTPS to use the AuthorizeTokenEx payment provider.
:::
