Skip to main content

Affirm

Quick Start
  1. Sign up at affirm.com and obtain API credentials
  2. Create a terminal in the Admin Console with the parameters below
  3. Start processing — the adapter is pre-built and ready to use

Go to Affirm →

Overview

Affirm — Installment purchase financing

Provider IDaffirm
CategoryBuy Now, Pay Later
Websiteaffirm.com

Supported operations: Create Checkout Get Transaction Refund


Authentication

Method: Basic Auth (public_key:private_key) Header format:

Authorization: Basic {base64(public_key:private_key)}

Configuration

Required Parameters

ParameterDescription
base_urlBase API URL
public_keyPublic Key
private_keyPrivate Key

Payment Flow

  1. Creation checkout → redirect_url
  2. Redirect on Affirm
  3. User selects a plan installment plan
  4. Check creditworthiness
  5. Confirmation
  6. Webhook/redirect → status check

Status Mapping

Provider Status4pay StatusDescription
capturedcharged
partially_capturedcharged
authorizedcharging
confirmedcharging
createdcharging
declinedfailed
canceledfailed
voidedfailed
auth_expiredfailed
event: capturecharged
event: confirmcharged
event: refundrefunded
capturedcharged
partially_capturedcharged
authorized/confirmed/createdcharging
declined/canceled/voided/auth_expiredfailed
refunded/partially_refundedrefunded

Resources