Affirm-developers

Processing transactions in Shopify

Overview

When a customer completes a checkout with Affirm as the payment method, we authorize a charge for the amount of the order. The charge enters a pending state on the customer's Affirm account. Authorized charges expire if you do not 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 perform the following actions on it in Shopify:

Capture

Capturing a charge does the following:

  • 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

Merchants typically capture a charge after fulfilling the order. We recommend auto-capturing if you usually fulfill orders within 5 business days so that the customer receives their purchase before their first bill.

You can configure Shopify to auto-capture orders by setting Payment Authorization to Automatically capture payment for orders.

When a customer completes checkout with Affirm as the payment method, a new order appears in Shopify order your list. This charge appears in the customer's Affirm account with a Payment Status of Pending.

To capture the charge:

1. On the main page, click Orders.
2. Click on the order number.

3. Click Capture Payment.

4. Click Accept.

Auto-Capture

If your Shopify payment settings for Payment Authorization is set to Automatically capture payment for orders, Affirm will capture the transaction the moment it is authorized. Shopify will capture the order and order will be marked as Paid in the Shopify dashboard.

Void

If you haven't yet captured a charge, you can cancel its authorization by voiding it. Voiding a charge is irreversible and Affirm is unable to reinstate those funds.

Visit Shopify for information on voiding charges.

Refund

If you've already captured a charge, you can reverse it and refund the amount to the customer's Affirm account. You can only process a refund within 120 days of capturing the charge. Refunding a charge is irreversible.

Visit Shopify for information on refunding charges.

Partial refund

If you've already captured a charge, you can reverse part of the charge and refund the specified amount to the customer's Affirm account. You can only process a partial refund within 120 days of capturing the charge. Partially refunding a charge is irreversible.

Visit Shopify for information on refunding charges.

Updated 3 months ago


Related topics

If you have some additional questions, head over to our FAQ!

Shopify FAQ

Processing transactions in Shopify


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.