Skip to content

Affirm payments

Affirm lets a US buyer pay for a purchase in installments. The buyer approves a plan on Affirm's site or app, you receive the full amount, and Affirm collects the installments from the buyer. On Flint, Affirm is the affirm payment option. It uses the same PaymentIntent, order, Refund, and Dispute resources as a card, and the same webhooks.

Two things make it different from a card:

  • The buyer leaves your page. They approve the plan at Affirm and come back to a return page you name. The return itself tells you nothing about the outcome, so your backend reads the payment to find out.
  • Affirm decides each purchase. It can decline a buyer after every Flint check passes. Always offer card next to Affirm.

How much you build depends on where the buyer pays:

Where the buyer paysWhat you build
Flint Checkout or a payment linkNothing beyond turning Affirm on. Flint runs the redirect, the return, and retries.
Your page, with a PaymentIntent your server createsThe five steps below and a return page.
Your own checkout on a headless checkout session or an orderThe same browser steps, paid through the order. See Affirm on an order.

How an Affirm payment flows#

An Affirm payment on a standalone PaymentIntentResponse
BrowserYour serverFlintAffirmPOST /v1/payment-intents with payment_return_urlpayment_collection with Flint's return_urlConfirmationToken with that return_urlPOST /confirm with the tokenrequires_action and current_payment_actionOpen the Flint URL to redirect the buyerbuyer decides, returns to the relay303 to your payment_return_urlread the PaymentIntentthe outcome, also sent by webhook
  1. Your server sends POST /v1/payment-intents with payment_return_url to Flint
  2. Flint returns payment_collection with Flint's return_url to Your server
  3. Browser sends ConfirmationToken with that return_url to Your server
  4. Your server sends POST /confirm with the token to Flint
  5. Flint returns requires_action and current_payment_action to Your server
  6. Browser sends Open the Flint URL to redirect the buyer to Affirm
  7. Affirm sends buyer decides, returns to the relay to Flint
  8. Flint returns 303 to your payment_return_url to Browser
  9. Your server sends read the PaymentIntent to Flint
  10. Flint returns the outcome, also sent by webhook to Your server

The steps build on the collect-and-confirm flow in Server-confirmed payments. Affirm adds the return URL, the redirect, and the return page.

Turn on Affirm#

Affirm is off by default. To turn it on, you need Affirm pricing on your Flint plan, an active Affirm capability on your payment account, and card payments turned on, which Stripe requires for Affirm. Outstanding onboarding requirements don't turn Affirm off by themselves. Read your merchant to see which of these is missing:

cURL
curl https://api.withflintpay.com/v1/merchant \
  -H "Authorization: Bearer YOUR_API_KEY"

Find the entry with capability: "accept_affirm_payments" in readiness.capabilities. When its status is ready, you can turn Affirm on. Otherwise status_reason names the first blocker:

status_reasonWhat it meansWhat to do
payment_option_not_in_planYour Flint plan doesn't include Affirm.Contact Flint support to add it.
payment_option_access_not_provisionedAffirm pricing isn't set up for this environment.Contact Flint support.
payment_option_activation_pendingFlint is reviewing billing and eligibility for Affirm.Contact Flint support to check on the review.
payment_option_not_availableAffirm isn't available for this environment.Contact Flint support to review eligibility.
requirements_dueStripe turned Affirm off until the payment account has more details.Complete requirements in a merchant account session.

next_actions on the entry says who acts on each blocker. Other reasons mean what Going live lists.

Once the capability is ready, add Affirm to your checkout payment options in the dashboard. With the API, read the current options first.

cURL
curl https://api.withflintpay.com/v1/settings/effective \
  -H "Authorization: Bearer YOUR_API_KEY"

PATCH /v1/settings replaces the entire checkout.enabled_payment_options list. Send affirm and every option you want to keep from the effective settings. This example adds Affirm to the default list of card, Apple Pay, and Google Pay.

cURL
curl -X PATCH https://api.withflintpay.com/v1/settings \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"checkout": {"enabled_payment_options": ["card", "apple_pay", "google_pay", "affirm"]}}'
Warning:

Turning Affirm on before the capability is ready fails with 409 PAYMENT_OPTION_UNAVAILABLE. The error's reason names the blocker, and its next action points back to GET /v1/merchant. Clear the blocker, confirm status: "ready", then try again.

Turning Affirm on makes it available to your account. Flint still checks each payment on its own, as the next section describes.

Eligibility#

Flint checks every Affirm payment against the facts it can see and rejects it when one of these rules fails:

  • The currency is USD, and the amount is within the limits for where the buyer pays.
  • Your payment account, the buyer's billing address, and any shipping address are in the US.
  • The payment is one-time and made with the buyer present. A ConfirmationToken that asks to save the payment method is rejected.
  • One payment covers the full balance. Affirm can't share an order with a gift card, another payment, or a manual payment. The one exception is Return credit applied to an exchange's replacement order.
  • The surface offers Affirm, as Where Affirm is offered lists.

Some rules depend on facts Flint never receives, so your integration enforces them by not offering Affirm:

Amount limits#

The minimum is $50.00 everywhere. The maximum depends on where the buyer pays:

Where the buyer paysMinimumMaximum
Standalone PaymentIntent, Flint Checkout, or invoice$50.00$30,000.00
Payment link$50.00$25,000.00, or up to $30,000.00 when Flint support raises it

A limit you configure yourself can narrow this range but not widen it. An amount outside the range fails when you create the payment with 409 PAYMENT_OPTION_UNAVAILABLE, reason amount_out_of_range, and param amount_money.amount. Above the maximum, the error also carries maximum_money. The message names the payment option and surface that set the limit. Flint checks the amount again at confirmation, so an amount that changed between the two calls is caught there.

Where Affirm is offered#

OfferedNot offered
Flint Checkout, hosted or headlessSubscriptions and invoice autopay
Fixed-price payment linksDonation, event, and buyer-chosen-amount payment links
Standalone PaymentIntentsCharges to a saved payment method, or without the buyer present
One-time invoices, paid on the hosted invoice page or an invoice checkout sessionVirtual terminal
Collecting a Return's balanceAny split payment

Asking for Affirm where it isn't offered fails with 400 INVALID_REQUEST and detail code NOT_ALLOWED. The message says which rule blocked it, such as the surface or a split payment.

Accept an Affirm payment#

These steps take a standalone PaymentIntent from creation to the redirect. You need an API key with payments.payment_intents.write.

  1. Create the PaymentIntent with a return URL#

    When payment_options includes affirm, send payment_return_url: the page on your site where the buyer lands after Affirm. It must be an absolute HTTPS URL with no credentials, query string, or fragment. Test mode also accepts http://localhost and other loopback URLs. Put your own reference, such as your order number, in the path, because Flint adds nothing to the URL. The PaymentIntent doesn't exist yet when you choose the URL, and you can't change the URL later, so send the same reference as external_reference_id and store the returned payment_intent_id with it.

    cURL
    curl -X POST https://api.withflintpay.com/v1/payment-intents \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: affirm-order-1042" \
      -d '{
        "amount_money": {"amount": 9900, "currency": "USD"},
        "payment_options": ["card", "affirm"],
        "external_reference_id": "1042",
        "payment_return_url": "https://shop.example.com/orders/1042/payment-return"
      }'
    
    Response
    {
      "data": {
        "payment_intent_id": "pi_1kmn0aExample",
        "status": "requires_payment_method",
        "amount_money": {"amount": 9900, "currency": "USD"},
        "payment_options": ["card", "affirm"],
        "payment_collection": {
          "stripe": {
            "account_id": "acct_Example",
            "publishable_key": "pk_test_Example",
            "return_url": "https://api.withflintpay.com/payment-returns/prtn_1kmn0aExample",
            "elements": {
              "next_step": "create_confirmation_token",
              "submit_to": "confirm_payment_intent",
              "mode": "payment",
              "amount_money": {"amount": 9900, "currency": "USD"},
              "payment_options": ["card", "affirm"],
              "payment_method_creation": "manual"
            }
          }
        }
      }
    }
    

    payment_collection.stripe is everything the browser needs. Its return_url is Flint's return relay, not your page. Flint keeps your payment_return_url and never sends it to Stripe or Affirm.

    Leaving out payment_return_url returns 400 INVALID_REQUEST with detail code REQUIRED and param payment_return_url. A URL that breaks the rules returns 400 INVALID_REQUEST on the same param. Don't send transaction_purpose: it's for ACH debit, and without ach_debit in payment_options it returns 400 INVALID_REQUEST with detail code NOT_ALLOWED.

  2. Mount the Payment Element#

    Load Stripe.js for the connected account in payment_collection.stripe, and build Elements from elements as returned. Use this one Stripe instance for the Payment Element and the ConfirmationToken.

    JavaScript
    const response = await fetch("/api/orders/1042/payment", {method: "POST"});
    if (!response.ok) throw new Error("Could not start the payment.");
    
    const {data} = await response.json(); // your backend relays the create response
    const collection = data.payment_collection.stripe;
    const stripe = Stripe(collection.publishable_key, {
      stripeAccount: collection.account_id,
    });
    
    // Stripe Elements takes processor method types. Apple Pay and Google Pay ride on card.
    const STRIPE_METHOD_TYPES = {card: "card", apple_pay: "card", google_pay: "card", affirm: "affirm", ach_debit: "us_bank_account"};
    const paymentMethodTypes = [...new Set(collection.elements.payment_options.flatMap((option) => STRIPE_METHOD_TYPES[option] ?? []))];
    
    const elements = stripe.elements({
      mode: collection.elements.mode,
      amount: collection.elements.amount_money.amount,
      currency: collection.elements.amount_money.currency.toLowerCase(),
      paymentMethodCreation: collection.elements.payment_method_creation,
      paymentMethodTypes,
    });
    
    elements
      .create("payment", {layout: "tabs", paymentMethodOrder: ["card", "affirm"]})
      .mount("#payment-element");
    

    If the buyer comes back to this page later, read the PaymentIntent again. While it is requires_payment_method, the read returns a current payment_collection.

  3. Create the ConfirmationToken with Flint's return URL#

    After elements.submit(), create the token with return_url set to exactly collection.return_url from step 1.

    JavaScript
    const {error: submitError} = await elements.submit();
    if (submitError) throw submitError;
    
    const {error, confirmationToken} = await stripe.createConfirmationToken({
      elements,
      params: {
        return_url: collection.return_url,
        payment_method_data: {
          billing_details: {
            name: buyer.name,
            email: buyer.email,
            address: buyer.billingAddress, // must include country: "US"
          },
        },
        ...(order.shipping ? {shipping: order.shipping} : {}),
      },
    });
    if (error) throw error;
    
    await fetch("/api/orders/1042/payment/confirm", {
      method: "POST",
      headers: {"Content-Type": "application/json"},
      body: JSON.stringify({confirmation_token: confirmationToken.id}),
    });
    

    Flint checks the token when you confirm:

    • return_url must be this payment's relay URL. A missing, malformed, or different URL returns 400 INVALID_REQUEST. Create a new token with the exact payment_collection.stripe.return_url.
    • The billing address must be in the US.
    • Send shipping only when the purchase ships to a real recipient, and never copy the billing address into it. When the payment belongs to an order with a delivery destination, shipping is required and must match that destination, or the confirmation fails with 400 INVALID_REQUEST and detail code NOT_ALLOWED.
  4. Confirm from your backend#

    cURL
    curl -X POST https://api.withflintpay.com/v1/payment-intents/pi_1kmn0aExample/confirm \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: affirm-confirm-1042" \
      -d '{"payment_source": {"credential_type": "stripe_confirmation_token", "stripe": {"confirmation_token": "ctoken_Example"}}}'
    
    Response
    {
      "data": {
        "payment_intent_id": "pi_1kmn0aExample",
        "status": "requires_action",
        "selected_payment_option": "affirm",
        "current_payment_action": {
          "pending_action_id": "pendact_1kmn0aExample",
          "subject": {"payment_intent": {"payment_intent_id": "pi_1kmn0aExample"}},
          "action_type": "payment_authentication",
          "expires_at": "2026-11-12T00:00:00Z",
          "client_action": {
            "type": "url",
            "url": "https://payment-returns.example/payment-returns/actions/pendact_1kmn0aExample/bearer-token"
          }
        }
      }
    }
    

    An Affirm confirmation returns requires_action with a payment_authentication action in current_payment_action. Only confirm responses carry the action; a read of the PaymentIntent leaves it out. Pass client_action.url to the browser. The URL action is the default; open it before expires_at.

  5. Send the buyer to Affirm#

    Open the returned Flint URL. It redirects the buyer to Affirm:

    JavaScript
    window.location.assign(currentPaymentAction.client_action.url);
    

    If you use Stripe.js instead, explicitly send client_action_type: "stripe" on confirm and pass the returned secret only to handleNextAction. That secret can also confirm the underlying payment with another card. Flint's API returns no Stripe client secret for URL actions; Stripe's hosted authentication page can receive it during authentication. Flint returns charges made with a payment method it didn't approve.

    When the redirect starts, the browser leaves your page. The buyer comes back through your return page whatever the outcome.

Handle the return#

Affirm sends the buyer back to Flint's relay. The relay drops every query parameter Affirm added and answers with a 303 to your payment_return_url, exactly as you gave it. Look up the payment_intent_id you stored for the reference in your path, or list GET /v1/payment-intents?external_reference_id=1042, and check the payment from your backend:

cURL
curl https://api.withflintpay.com/v1/payment-intents/pi_1kmn0aExample \
  -H "Authorization: Bearer YOUR_API_KEY"

If status is still requires_action, Flint may not have heard from Stripe yet. Confirm again with the payment already attached. Flint checks the payment with Stripe and returns its current state:

cURL
curl -X POST https://api.withflintpay.com/v1/payment-intents/pi_1kmn0aExample/confirm \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: affirm-return-1042" \
  -d '{}'
Response
{
  "data": {
    "payment_intent_id": "pi_1kmn0aExample",
    "status": "succeeded",
    "selected_payment_option": "affirm",
    "payment_source": {"type": "affirm"},
    "support_reference": "N7XBTQJ4KMEXAMPLE",
    "current_payment_action": null
  }
}

Then act on status:

statusWhat happenedWhat to do
succeededAffirm approved the plan and the payment is complete.Show the confirmation. Fulfill once, from the webhook or this result.
requires_captureAffirm approved a manual-capture hold.Capture in full before authorization_expires_at.
requires_actionThe buyer hasn't finished at Affirm, or closed the tab.Show that the payment is waiting. To continue, run the returned current_payment_action again.
requires_payment_methodAffirm declined, or the buyer left or ran out of time.Read last_payment_error.code and offer another try.

A confirm with an omitted payment_source after the status has moved past requires_action returns 409 ACTION_NOT_ALLOWED. Read the PaymentIntent first, as above, and confirm only while it's requires_action.

Don't create a second PaymentIntent or ConfirmationToken because the buyer came back. They may still be inside Affirm's flow, and a lost redirect is recovered by reading the existing payment. Server-confirmed payments gives the full recovery order.

Fulfill from webhooks#

Affirm adds no event types. It sends the usual PaymentIntent events:

  1. What happens: You confirm with an Affirm ConfirmationToken
  2. Flint sends: payment_intent.requires_action
    The buyer is being sent to Affirm.
  3. What happens: Affirm approves
  4. Flint sends: payment_intent.succeeded
    Automatic capture. The payment is complete.
  5. Flint sends: payment_intent.requires_capture
    Manual capture. The hold is in place.
  6. Flint sends: order.paid
    The payment belongs to an order, such as Flint Checkout or a payment link, and the order is fully paid.
  7. What happens: Affirm declines, or the buyer leaves
  8. Flint sends: payment_intent.payment_failed
    Carries last_payment_error.

Fulfill from payment_intent.succeeded, or from order.paid for an order, after you check dispute_status, never from the buyer's return. Webhooks covers signatures and retries.

Failures and retries#

A failed Affirm attempt leaves the PaymentIntent in requires_payment_method, with one of these codes in last_payment_error.code:

CodeWhat happenedFlint Checkout's retry
payment_method_declinedAffirm declined the buyer for this purchase.Checkout hides Affirm and keeps every other eligible method, with card first when available.
payment_method_temporarily_unavailableAffirm couldn't take the payment right now.Checkout hides Affirm and keeps every other eligible method, with card first when available.
payment_not_completedThe buyer left Affirm without approving a plan.Card first, Affirm still offered.
payment_action_expiredThe buyer didn't finish at Affirm in time.Card first, Affirm still offered.
payment_method_unavailableAffirm isn't available for this payment.Card first, Affirm still offered.

The failed attempt is over. To retry, create a new ConfirmationToken and confirm the same PaymentIntent again. On your own page you choose what to offer, because Flint doesn't change payment_options on a PaymentIntent after a failure. Following Flint Checkout's pattern is a good default.

Affirm on an order#

When the payment belongs to an order, such as a headless checkout session you build on or an order your server pays, the browser steps are the same and the payment runs through the order:

  • Return URL. On a headless checkout session, send payment_return_url when you create the session. A session that offers Affirm without it fails with 400 INVALID_REQUEST and detail code REQUIRED. The same URL rules apply. An order your server pays takes payment_return_url on POST /v1/payment-intents instead.
  • Collection. Read payment_collection from the order. Its stripe.return_url is Flint's relay, and the ConfirmationToken must carry that exact URL.
  • Payment. Pay with POST /v1/orders/{order_id}/pay. The attempt returns requires_action with a pending action that sends the buyer to Affirm. Open its Flint URL as in step 5, or explicitly opt in to the Stripe.js path.
  • Return. On your return page, read the order and its payment attempt. If the attempt is still requires_action, pay again with "action": "resume" and the order_payment_attempt_id. Finish 3D Secure shows the resume request, which works the same way for Affirm.
  • Fulfillment. Fulfill from order.paid, after you check the order's dispute_status against the access rules.

A headless session must also leave Affirm enough time. When fewer than 15 minutes remain in the session's payment window, the payment fails with 409 PAYMENT_OPTION_UNAVAILABLE and reason action_window_too_short before the buyer is sent anywhere. Start a new payment attempt or offer card. A standalone PaymentIntent has no such window.

This works for order checkouts, invoice checkout sessions, and a Return's balance collected through a session with "surface": "headless". Build your own checkout walks through the session flow.

Manual capture#

Affirm's authorization window is seven days from the authorized charge's creation time. Creating the PaymentIntent earlier doesn't start that window, and returning from Affirm or refreshing the payment doesn't restart it. Read authorization_expires_at for the deadline and capture before it.

Affirm supports "capture_method": "manual" with one capture for the full hold. Capture with no amount_money, or with the full capturable_money:

cURL
curl -X POST https://api.withflintpay.com/v1/payment-intents/pi_1kmn0aExample/capture \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: affirm-capture-1042"

Any other amount returns 400 INVALID_REQUEST with detail code NOT_ALLOWED and param amount_money. You can't raise, lower, or reauthorize an Affirm hold. Capture before authorization_expires_at. Manual capture covers holds, cancellation, and expiry.

Refunds#

Refund an Affirm payment with the Refunds API, as you would a card. Both full and partial refunds work:

cURL
curl -X POST https://api.withflintpay.com/v1/refunds \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: affirm-refund-1042-1" \
  -d '{
    "payment_intent_id": "pi_1kmn0aExample",
    "refund_type": "amount",
    "amount_money": {"amount": 2500, "currency": "USD"}
  }'

Affirm applies the refund to the buyer's loan. It cancels scheduled installments and returns what the buyer already paid, minus any interest they paid. As with every refund, the original processing fee isn't returned.

Affirm sets three limits:

  • 120 days. Submit refunds within 120 days of the stored capture time. The PaymentIntent's refund_expires_at is the last accepted time; after it, POST /v1/refunds returns 409 ACTION_NOT_ALLOWED with reason refund_window_expired. Later payment-attempt updates do not move this deadline. If the capture time is missing, refund_expires_at is null and Flint lets the provider decide whether the refund is still allowed. Canceled payments have no refund window. Reimburse the buyer another way if the window has ended.
  • Asynchronous. A refund can take up to two days. Wait for refund.succeeded or refund.failed, and don't try to cancel it: an Affirm refund can't be canceled once submitted.
  • One failure ends refunds. If a refund on an Affirm payment fails, the money stays in your balance and the buyer hasn't been paid. Reimburse them outside Flint. Any later refund on that payment returns 409 ACTION_NOT_ALLOWED with reason previous_refund_failed. Reconcile the failed Refund.

A refund that fails during the request still returns 201 and can already carry status: "failed". If the response is pending, follow it with GET /v1/refunds/{refund_id} or refund.* events. A later failure arrives as refund.failed. Check status on every create response.

Disputes#

An Affirm dispute is the same Dispute resource as a card chargeback, with payment_option set to affirm. Buyers sign in to Affirm to approve every payment, and Affirm covers losses from buyer fraud. On Affirm's behalf, Stripe may ask you to pause a shipment before a loss happens. Do so promptly. Handling disputes covers evidence and deadlines.

Read an Affirm payment#

After the buyer chooses Affirm, three fields on the PaymentIntent identify it:

Response
{
  "payment_intent_id": "pi_1kmn0aExample",
  "status": "succeeded",
  "selected_payment_option": "affirm",
  "payment_source": {"type": "affirm"},
  "support_reference": "N7XBTQJ4KMEXAMPLE",
  "risk": null
}
  • support_reference becomes Affirm's transaction reference. Give it to a buyer who contacts Affirm support; it's the value Affirm asks for. Until Affirm issues one, it holds the PaymentIntent ID, so treat it as an opaque string.
  • payment_source.type is affirm, with no card or bank details.
  • risk is null. Flint doesn't risk-assess Affirm payments; Affirm's approval and your own controls apply.

Show Affirm plans before checkout#

Stripe's Payment Method Messaging Element shows the plans a buyer may qualify for on product, cart, and payment pages. Create it on the same connected-account Stripe instance as the Payment Element, with the amount you'll charge:

JavaScript
stripe
  .elements()
  .create("paymentMethodMessaging", {
    amount: order.totalAmount, // minor units, such as 9900 for $99.00
    currency: "USD",
    countryCode: "US",
    paymentMethodTypes: ["affirm"],
  })
  .mount("#affirm-message");

The element shows plans that may be available, not an approval. Don't write your own installment amount, APR, or approval claim next to it; Affirm's marketing compliance guides govern that copy. Stripe uses cookies and IP addresses to record which Elements a buyer saw. Disclose that, and get any consent your page needs.

Test in a sandbox#

With a test API key, make the same calls. payment_return_url can be an http://localhost URL. When the buyer chooses Affirm and submits, Stripe shows a test page in place of Affirm where you approve or fail the payment:

  • Approve to see payment_intent.succeeded, or payment_intent.requires_capture with manual capture.
  • Fail to see payment_intent.payment_failed and exercise your retry path.
  • Close the test page without choosing, then return, to exercise the requires_action branch of your return page.

There are no Affirm test amounts. Any amount within the limits works.

Errors#

  • HTTP 409
    You turned Affirm on in settings before accept_affirm_payments was ready. reason names the blocker: clear it and check GET /v1/merchant again.
  • HTTP 409
    Reason amount_out_of_range: the amount is under $50.00 or over the maximum for the surface. Offer card, or ask Flint support to raise a payment link limit.
  • HTTP 409
    Reason action_window_too_short: fewer than 15 minutes remain in a checkout session's payment window. Start a new attempt or offer card.
  • HTTP 400
    param is payment_return_url, with detail code REQUIRED: a PaymentIntent or headless checkout session offers Affirm without a return URL.
  • HTTP 400
    Detail code NOT_ALLOWED, with param naming the input: Affirm isn't allowed for this payment's currency, country, surface, split payment, or saved credential; shipping doesn't match the order's delivery destination; transaction_purpose was sent without ach_debit; or a capture named less than the full hold.
  • HTTP 400
    param is payment_return_url: the URL isn't absolute HTTPS, or has credentials, a query string, or a fragment.
  • HTTP 400
    param is stripe.confirmation_token: the token's return_url isn't this payment's relay URL. Create a new token with payment_collection.stripe.return_url.
  • HTTP 409
    Reason refund_window_expired: the payment's refund_expires_at, 120 days after it settled, has passed. Reason previous_refund_failed: an earlier refund on this payment failed; reconcile that Refund. For either reason, reimburse the buyer outside Flint.

API calls#

Server-confirmed paymentsThe collect-and-confirm flow Affirm builds on, with recovery after lost responses.Build your own checkoutAffirm in a headless checkout session.Declines and payment attemptsRetrying an order payment that didn't finish.

Was this helpful?