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

# Transaction Management with Jobs in SFCC

Learn about managing transactions with jobs 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>

## Overview

[Processing orders (authorize, void, refund)](https://docs.affirm.com/platforms/docs/processing-affirm-transactions-in-salesforce-commerce-cloud-sfcc) in SFCC updates the order status in the Affirm dashboard. While you can process orders in the dashboard, we strongly recommend using SFCC to keep your order statuses synced with Affirm.

***

## Setting up order management functions

To set up your order management functions, you must import XML files from the downloaded cartridge and enable each job (function).

1. Confirm if you imported XML files from the downloaded cartridge.
2. You would have uploaded the files, which are included in `affirm.zip`, during <Anchor label="Install Affirm on SFCC" target="_blank" href="https://docs.affirm.com/platforms/docs/sfcc-installation">Install Affirm on SFCC</Anchor>.
3. If you didn’t, go to <Anchor label="Import the XML" target="_blank" href="https://docs.affirm.com/platforms/docs/sfcc-installation#step-2-import-thexml-files">Import the XML</Anchor> files to complete the steps. Note: Some functions might not be available in older versions of the cartridge.
4. In the **Business Manager**, go to **Administration > Operations > Jobs**.
5. Verify that each imported job was created.

![jobs page](https://files.readme.io/fe0aa77-jobs-verify.png "jobs-verify.png")

3. For each job, confirm that the **Enabled** checkbox is selected, and set the interval.

![schedule and history tab](https://files.readme.io/ed7333d-jobs-capture.png "jobs-capture.png")

4. In the **Job Steps** tab, ensure your site is included in the **Scope** field.

![job steps tab](https://files.readme.io/6f3b1d6-jobs-capture2.png "jobs-capture2.png")

> 📘 Process transactions in the Dashboard
>
> Learn more about processing transactions in the <Anchor label="Merchant Dashboard" target="_blank" href="https://businesshub.affirm.com/hc/en-us/articles/10892735988116-Understanding-the-Merchant-Portal-Charges">Merchant Dashboard</Anchor>.

***

## Using external interfaces

Commutation between Affirm and SFCC is based on the Affirm REST API. All outside traffic from the SFCC instance is handled by HTTPS protocol. In the SFCC Platform, each API call to Affirm is wrapped into a Service that handles monitoring and logging functionality.

***

## Processing transactions

When a customer completes a checkout with Affirm as the payment method, Affirm authorizes a charge for the amount of the order. The charge enters a pending state on the customer's Affirm account. Authorized charges expire when you don’t capture them before the capture deadline, which is a period specified in your partnership agreement with Affirm. If you didn’t define your authorization timing requirements because of inventory, pre-orders, or shipping time in your onboarding form, please contact your Client Success Manager.

After Affirm authorizes a charge, you can capture, void, and refund in SFCC.

### Capture

When you capture a charge, the system:

* Charges the authorized amount to the customer's Affirm account.
* Begins the customer's billing cycle.
* Triggers the transfer process of funds from Affirm to the merchant.

Typically, merchants capture a charge after fulfilling the order. If you usually fulfill orders within 5 business days, we recommend auto-capturing orders so that the customer receives their purchase before their first bill.

1. In the **Business Manager,** go to **Merchant Tools > Ordering > Orders**.
2. Click on the order.
3. Set **Shipping Status** to Shipped.

A manually run or periodically running job captures the charge.

<br />

### Void and refund

When you haven’t yet captured a charge, you can cancel its authorization by voiding it. If you already captured a charge, you can reverse it and refund the amount to the customer's Affirm account. Note: Voiding or refunding a charge is irreversible and Affirm is unable to reinstate those funds.

1. In the **Business Manager,** go to **Merchant Tools > Ordering > Orders**.
2. Click on the order.
3. Set the **Order Status** to Canceled.

To refund or void a charge, you can run a batch job based on the Affirm Status of the order before cancelation.

<br />

### Set up recurring jobs

SFCC can perform the Capture, Void, Refund actions based on either manual or recurring jobs.

To create recurring jobs:

1. [Configure Affirm services and jobs](https://docs.affirm.com/platforms/docs/sfcc-overview).
2. In the **Business Manager**, go to **Administration > Operations > Jobs**.
3. Click the specific order management function (job) you wish to configure (e.g., `AffirmCapture`, `AffirmRefund`, or `AffirmVoid`).

   <Image align="center" alt="screenshot of the Jobs tab" border={true} src="https://files.readme.io/0ee951a67794e181ab757710cd8626ddd931508042cefe9b554c2fc9be8fd43f-Screenshot_2026-04-07_at_9.37.25_AM.png" className="border" />
4. Select the **Job Steps** tab to ensure the parameters are correct.
5. Select the **Schedule and History** tab to set your **Recurring Interval** and enter your timing preferences.
6. Ensure the job is set to **Enabled** and click **Run** or **Save** to activate the schedule.

   <Image align="center" alt="screenshot of the Schedule and History tab" border={true} src="https://files.readme.io/43d2d4bad210ab42bc51ecea47b03c4978879ac3728c514b0eb25e0946c6adb6-Screenshot_2026-04-07_at_9.38.20_AM.png" className="border" />

***

## Viewing processed transactions

In **Business Manager**, go to **Merchant Tools > Ordering** to view all processed orders. For orders bought with Affirm as the payment method:

* **Attributes Tab**: The Attributes tab contains the Affirm payment details.

![SFCC Attributes tab](https://files.readme.io/d2aeb27-SFCC_attributes_tab.png)

* **Payments Tab**:
  * The order payment shows as Not Paid (pre-capture).
  * If you configure auto-capture, the payment shows as Paid.

![sfcc payment tab](https://files.readme.io/2e99ca4-sfcc_payments_tab.png)

# Sibling pages

* [Install Affirm on SFCC](https://docs.affirm.com/platforms/docs/sfcc-installation.md)
* [Configuring Affirm for SFCC](https://docs.affirm.com/platforms/docs/sfcc-configuring-affirm.md)
* [Add Promotional Messaging to SFCC](https://docs.affirm.com/platforms/docs/add-promotional-messaging-to-sfcc.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)