---
updatedAt: 2026-04-07T16:22:13.000Z
agentTools:
  siteIndex: https://docs.affirm.com/llms.txt
  projectIndex: https://docs.affirm.com/platforms/llms.txt
---

# Configuring Affirm for SFCC

Learn how to add Affirm as a payment method in Salesforce Commerce Cloud (SFCC).

<HTMLBlock>{`
<style>
  .dropdown-menu {
    font-family: Arial, sans-serif;
    max-width: 250px;
    margin-left: auto; /* Align to the right */
  	margin-right: 0; /* Ensure it's flush to the right */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #4A4AF4;
    overflow: hidden; /* Ensure the container grows with content */
  }

  .dropdown-item {
    margin-bottom: 10px;
  }

  .dropdown-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
  }

  .dropdown-toggle:hover {
    background: #f0f0f0;
  }

  .dropdown-content {
    display: none;
    margin-top: 5px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
  }

  .dropdown-item.open .dropdown-content {
    display: block;
  }

  .flag-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }

  .product-item {
    margin-bottom: 5px;
  }

  .product-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }
  
  .country-title {
    font-family: Arial, sans-serif;
    font-size:20px;
    text-align: center;
    font-weight: bold;
    color: #ffffff;
  } 

</style>
  <div class="dropdown-menu">
    <p class="country-title" alt="Countries where this product is available">Country Availability</p>

    <div class="dropdown-item">
      <button class="dropdown-toggle" onclick="toggleDropdown(event)" alt="Drop down menu displaying the available countries for this product">
        <b>Country List</b> ⬇️
      </button>
      <div class="dropdown-content">
        <div class="product-item">
          <img src="https://files.readme.io/a4c8b3d6596d943e2b93c82cb1d432a2edaf6998667835c2e97ef4a31d460c7e-us-circle-01.png" alt="USA" class="flag-icon">

          USA
        </div>
        <div class="product-item">
          <img src="https://files.readme.io/3ca294a1b4b8b8506c3ff32876abc6e3e33d0e65a509dab81398915094bdbc5c-61TcZ33ZrJL._AC_UY1000_.jpg" alt="Canada" class="flag-icon">

          Canada
        </div>
      </div>
    </div>

  </div>
`}</HTMLBlock>

<br />

> 🚧 Supported Versions
>
> In-line checkout is only available on version 20.1.0 and above.

## Prerequisites

* <Anchor label="Install Affirm on SFCC" target="_blank" href="https://docs.affirm.com/platforms/docs/sfcc-installation">Install Affirm on SFCC</Anchor>

***

## Steps

### 1. Enable Affirm as a payment method

Update these configurations:

1. In the **Business Manager** go to **Merchant Tools > Site Preferences > Custom Preferences > AFFIRM\_PAYMENT**.
2. Set **Affirm Online Status** to Yes.
3. Enter the **Affirm Public Key** and **Affirm Private Key** that you retrieved from the Affirm sandbox merchant dashboard.
4. Set the:
   1. **Affirm Mode** to Sandbox for testing.
   2. **Affirm Payment Country Code** to the country for which your account is enabled.
5. If your checkout process automatically captures the charge, set **Affirm Payment Action** to Authorize and Capture.
6. Enter the dollar amount values for **Payment Min Total** and **Payment Max Total** that displays Affirm as a payment option to your customers when checking out.
7. Set **Checkout Flow** to Redirect (default) or to Modal to control the Affirm checkout flow.
8. Set **Enable Affirm Analytics** to Yes to enable analytics tracking for the order confirmation page.

> 📘 Additional Settings
>
> * We recommend disabling the VCN Payment Instrument, unless the virtual card integration is enabled for your merchant account.
> * Leave the Financing program fields blank. This is managed by Affirm, unless you offer multiple financing programs on a SKU, category, or product level. To learn more about MFPs and how to set them up in Commerce Cloud, contact your Client Success Manager.

![](https://files.readme.io/bac87c3-sfcc_8_financing_porgram.png "sfcc_8_financing_porgram.png")

9. In the **Business Manager**, go to **Administration > Operations > Services > Service Credentials**.

10. Choose **New**.
11. Enter the following details:
    1. **Name**: Affirm
    2. **User**: Add your Affirm Public Key.
    3. **Password**: Add your Affirm Private Key.

![](https://files.readme.io/27793fe-sfcc_11_service_credentials.png "sfcc_11_service_credentials.png")

<br />

### 2. (Optional) Inline Checkout

With Inline Checkout, you can highlight Affirm’s value props early on in the checkout flow to set clear expectations with your customers. #When a customer selects Affirm as a payment option, the view expands and renders the following information in your site:

* **Value props:** Highlights some of the benefits of paying with Affirm.
* **Learn more about Affirm:** A learn more link that opens our educational modal.
* **Payment timelines:** The timeline and amount for each payment.

<Image align="center" alt={1038} caption="This image displays the Inline flow for <Glossary>Pay in 4</Glossary> and Installment options." title="Inline.png" src="https://files.readme.io/9a37c6a-Inline.png" width="auto" />

#### Enable Inline Checkout

1. In the **Business Manager**, go to **Merchant Tools > Site Preferences > Custom Site Preferences > Affirm**.
2. Set the **Show Affirm Inline Checkout Messaging** to Yes.

![](https://files.readme.io/8a5af68-SFCC_inline.png "SFCC_inline.png")

<br />

### 3. (Optional) Multiple Financing Programs

[Multiple Financing Programs (MFPs)](https://docs.affirm.com/platforms/docs/salesforce-commerce-cloud-multiple-financing-programs) enable you to offer custom financing programs to your customers based on rules you define in Salesforce Commerce Cloud (SFCC). To learn more about MFPs and how to set them up in SFCC, contact your Client Success Manager.

***

## What's next?

* <Anchor label="Add Promotional Messaging to SFCC" target="_blank" href="https://docs.affirm.com/platforms/docs/add-promotional-messaging-to-sfcc">Add Promotional Messaging to SFCC</Anchor>

# Sibling pages

* [Install Affirm on SFCC](https://docs.affirm.com/platforms/docs/sfcc-installation.md)
* [Add Promotional Messaging to SFCC](https://docs.affirm.com/platforms/docs/add-promotional-messaging-to-sfcc.md)
* [Transaction Management with Jobs in SFCC](https://docs.affirm.com/platforms/docs/transaction-management-with-jobs.md)
* [Using Partial Capture in SFCC](https://docs.affirm.com/platforms/docs/using-partial-capture.md)
* [SFCC FAQ](https://docs.affirm.com/platforms/docs/sfcc-faqs.md)
* [Express Checkout on SFCC](https://docs.affirm.com/platforms/docs/express-checkout-on-sfcc.md)