# Set up WHITELABEL on VTEX

This page walks you through every step needed to start accepting payments with WHITELABEL on your VTEX store. The setup happens in two places. Your **VTEX dashboard** is where you register WHITELABEL as a payment provider, install the Payment App, and activate payment methods. Your **WHITELABEL dashboard** is where you configure the webhook that keeps order status in sync.

### Before you start

Have the following ready:
*   A user with administrator access to your VTEX dashboard.
*   Your WHITELABEL credentials, which you can find in your WHITELABEL dashboard under **Developers → API Credentials**: **Account ID**, **Public API Key**, and **Private Secret Key**.

---

<Steps>
  <Step title="Configure WHITELABEL as a payment provider">
    1.  In the **VTEX dashboard**, open the left-hand menu and go to **Store Settings → Payment → Providers**, then click **New Provider** at the top right.

    <Frame>
      <img src="/images/plugins/vtex/image-065c1400.png" alt="New Provider in VTEX" />
    </Frame>

    2.  In the **Select a provider** dialog, type `Whitelabel` in the search box and select **WHITELABEL** from the results.

    <Frame>
      <img src="/images/plugins/vtex/image-d4b7cb65.png" alt="Search for WHITELABEL provider" />
    </Frame>

    3.  Fill in the provider configuration form and save. Once saved, the provider is registered, but no payment methods are active yet.

    <Accordion title="Field reference">
      | Field | Required | What it does |
      | :--- | :--- | :--- |
      | **Application Key / Application Token** | Yes | VTEX admin credentials the plugin uses to interact with VTEX on your behalf. See VTEX's guide on [generating Application Keys](https://help.vtex.com/docs/tutorials/api-keys#generating-internal-application-keys). |
      | **Automatic Settlement** | Yes | Defines when the payment is captured automatically after authorization. Applies to card and wallet payments only. |
      | **Affiliation Name** | Yes | A human-readable name for this WHITELABEL integration. |
      | **Account ID** | Yes | Your WHITELABEL **Account ID**, available in your WHITELABEL dashboard. |
      | **Public API Key** | Yes | Your WHITELABEL **Public API Key**. The prefix determines the environment. |
      | **Private Secret Key** | Yes | Your WHITELABEL **Private Secret Key**. |
      | **Main Account Name** | Optional | For multi-account setups. |
      | **Main Account App key** | Optional | Application Key of the main VTEX account. |
      | **Main Account App token** | Optional | Application Token of the main VTEX account. |
      | **Soft Descriptor** | Optional | Custom text that appears on the shopper's card statement. |
      | **Create Customer** | Optional | When set to **Yes**, the plugin creates a corresponding customer record in WHITELABEL. |
      | **VTEX IO orderPlaced page URL** | Optional | A custom URL where shoppers should be redirected after payment. |
      | **Payment Mode** | Optional | **Payment App** (modern) or **Legacy** (redirect). |
      | **Transaction Identification From** | Optional | **WHITELABEL TID** or **Provider TID**. |
      | **Antifraud Providers for Split Orders** | Optional | Comma-separated antifraud providers (`RISKIFIED`, `CYBERSOURCE`, `SIGNIFYD`, `CIELO_CYBERSOURCE_FRAUD`) that receive the shared session for split orders. On plugin **4.2.362 or later**, all four providers receive it when left empty; on earlier versions, it defaults to `RISKIFIED` + `CYBERSOURCE`. If you fill it in, only the providers you list receive it. |
      | **Vault Card for Order Modification** | Optional | When set to **Yes** (and **Create Customer** is also **Yes**), the plugin securely stores the card used on each order and allows the additional amount to be charged automatically if the order total later increases. This is the only field that authorizes additional charges: when it is **No**, an order-total increase is declined even if the card was stored for network tokens. See [Order modifications](/docs/plugins/vtex/advanced-features#order-modifications-changed-order-totals). |
      | **Enable Network Tokens** | Optional | When set to **Yes** (and **Create Customer** is also **Yes**), the plugin securely stores each card on its first purchase and recognizes it on later purchases by the same customer, so WHITELABEL can process repeat purchases with a network token instead of the card number. **The toggle has no effect until WHITELABEL activates network tokens on the routes your store uses**: until then cards are stored but no tokens are issued. Contact your WHITELABEL KAM or support to activate it. See [Network tokens](/docs/plugins/vtex/advanced-features#network-tokens-repeat-card-purchases). |
      | **Use Corporate Buyer Data** | Optional | Brazil only. When set to **Yes**, orders placed by a shopper checking out as a company (*pessoa jurídica*) are paid under the company's legal name and **CNPJ** instead of the shopper's personal name and CPF, on every payment method. Default **No**. See [Corporate purchases](/docs/plugins/vtex/advanced-features#corporate-purchases-brazil). |
    </Accordion>

    <Accordion title="Settlement Options">
      The **Automatic Settlement** field determines the timing of the capture for card and wallet payments. 

      | Option | Practical Behavior |
      | :--- | :--- |
      | **Use behavior recommended by payment processor** | **Immediate Capture**: The transaction is captured immediately after authorization. (Default) |
      | **Automatic capture immediately after payment authorization** | **Immediate Capture**: The transaction is captured immediately after authorization. Same as default. |
      | **Automatic capture immediately after anti-fraud analysis** | **Immediate Capture**: The transaction is captured immediately after authorization. |
      | **Disabled** | **Authorize Only**: The transaction is only authorized. Capture happens later when the order is **invoiced**. |
    </Accordion>

    <Note>
      **Environments**: The WHITELABEL environment is determined by the prefix of your **Public API Key**: `dev_`, `staging_`, `sandbox_`, or `prod_`.
    </Note>

    <Tip>
      We suggest using **Use behavior recommended by payment processor** unless your business specifically requires capture after invoicing.
    </Tip>
  </Step>

  <Step title="Install the WHITELABEL Payment App">
    After saving the provider configuration, install the WHITELABEL Payment App from your VTEX dashboard.

    1.  In the **VTEX dashboard**, go to **Apps → App Management**.
    2.  Search for **WHITELABEL** and select the **WHITELABEL Payment App** in the list of available apps and open its **Settings**.

    <Frame>
      <img src="/images/plugins/vtex/image-c64bef9b.png" alt="Install WHITELABEL Payment App" />
    </Frame>

    3.  Click **Install** to complete the setup.

    Once installed, the Payment App takes care of rendering the WHITELABEL checkout experience inside your VTEX checkout.
  </Step>

  <Step title="Activate payment methods">
    Now choose which payment methods you want to offer to your shoppers and route them through WHITELABEL.

    1.  In the **VTEX dashboard**, go to **Store Settings → Payment → Settings → Payment Conditions**. Click the **+** button to add a payment condition.

    <Frame>
      <img src="/images/plugins/vtex/image-68c9e7f2.png" alt="Add Payment Condition" />
    </Frame>

    2.  Select the payment method you want to activate (for example, Visa, Mastercard, Pix, Apple Pay, Samsung Pay, or any of the generic **WHITELABEL** methods, such as WHITELABEL Card or WHITELABEL Wallet).

    <Frame>
      <img src="/images/plugins/vtex/image-309cec4b.png" alt="Select Payment Method" />
    </Frame>

    3.  In the **Process with provider** field, select the WHITELABEL affiliation you configured in Step 1. Set the **Status** to **Active** and save.

    <Frame>
      <img src="/images/plugins/vtex/image-73d8fe62.png" alt="Configure Payment Affiliation" />
    </Frame>

    <Note>
      Repeat for every method you want to offer. You can review the full list of available methods in the [Overview](/docs/plugins/vtex) page.
    </Note>
  </Step>

  <Step title="Configure the webhook in your WHITELABEL dashboard">
    The webhook keeps your VTEX orders in sync with WHITELABEL's payment status updates. 

    1.  In the **WHITELABEL dashboard**, open **Developers → Webhooks** and click **Add webhook**.
    2.  Fill in the form:
        *   **Name**: For example `VTEX webhook`.
        *   **Endpoint URL**: `https://{store_name}.myvtex.com/_v/yunopartnerbr.yuno/v4/webhook`, replacing `{store_name}` with your VTEX account name.
        *   **x-api-key** and **x-secret**: Enter any placeholder value (for example, `VTEX`).
    3.  Select all events and click **Add**.
  </Step>
</Steps>

---

## Advanced Scenarios

The scenarios that go beyond the basic setup — multi-affiliation, multi-account, split orders, antifraud sessions, order modifications, network tokens, and corporate purchases — are covered on their own page.

<CardGroup cols={1}>
  <Card title="Advanced Features" icon="list" href="/docs/plugins/vtex/advanced-features">
    Multi-affiliation, multi-account, split orders, antifraud sessions, order modifications, network tokens, and corporate purchases.
  </Card>
</CardGroup>