<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:22535f7c-690b-40fe-98f3-afb2dee83000,g:f17a07fd-400a-4700-94de-45a1f5b6646a-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://www.affirm.com/role/CoverPage" xlink:type="simple" xlink:href="afrm-20251231.xsd#CoverPage"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/CoverPage" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentInformationTable_f7e82e3f-0623-4999-9f02-adea7f0fa46e" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentInformationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_DocumentInformationTable_f7e82e3f-0623-4999-9f02-adea7f0fa46e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_01eb0a68-8268-478f-823d-fda7af6bce69" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_DocumentInformationTable_f7e82e3f-0623-4999-9f02-adea7f0fa46e" xlink:to="loc_us-gaap_StatementClassOfStockAxis_01eb0a68-8268-478f-823d-fda7af6bce69" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_01eb0a68-8268-478f-823d-fda7af6bce69_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_01eb0a68-8268-478f-823d-fda7af6bce69" xlink:to="loc_us-gaap_ClassOfStockDomain_01eb0a68-8268-478f-823d-fda7af6bce69_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_98e3c7c7-3492-48f2-8df6-38bac32d8bde" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_01eb0a68-8268-478f-823d-fda7af6bce69" xlink:to="loc_us-gaap_ClassOfStockDomain_98e3c7c7-3492-48f2-8df6-38bac32d8bde" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassAMember_a5d13b04-2145-4588-98cd-c9f8cb9bb821" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonClassAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_98e3c7c7-3492-48f2-8df6-38bac32d8bde" xlink:to="loc_us-gaap_CommonClassAMember_a5d13b04-2145-4588-98cd-c9f8cb9bb821" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_ad4bce6e-7223-4b58-8924-237e581749b7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_98e3c7c7-3492-48f2-8df6-38bac32d8bde" xlink:to="loc_us-gaap_CommonClassBMember_ad4bce6e-7223-4b58-8924-237e581749b7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentType_d99f89a3-3e37-4182-8e00-a4a41673bd16" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentType"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_DocumentType_d99f89a3-3e37-4182-8e00-a4a41673bd16" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentQuarterlyReport_d16ded12-249e-4095-b363-99638e3e4266" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentQuarterlyReport"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_DocumentQuarterlyReport_d16ded12-249e-4095-b363-99638e3e4266" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentPeriodEndDate_75d2b517-1f33-4f4e-b47b-90a16fe8dc1f" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentPeriodEndDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_DocumentPeriodEndDate_75d2b517-1f33-4f4e-b47b-90a16fe8dc1f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentTransitionReport_2450c41e-c5ce-4701-85b6-f9b86e94f18d" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentTransitionReport"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_DocumentTransitionReport_2450c41e-c5ce-4701-85b6-f9b86e94f18d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityFileNumber_beca341f-4cbe-4a84-a65e-e37ea74a8a7f" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityFileNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_EntityFileNumber_beca341f-4cbe-4a84-a65e-e37ea74a8a7f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityRegistrantName_f8e0962b-6a88-4120-b67f-0a326dccefbc" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityRegistrantName"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_EntityRegistrantName_f8e0962b-6a88-4120-b67f-0a326dccefbc" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityIncorporationStateCountryCode_ea8ec518-cfee-45f2-8ec7-7310cb2fe984" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityIncorporationStateCountryCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_EntityIncorporationStateCountryCode_ea8ec518-cfee-45f2-8ec7-7310cb2fe984" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityTaxIdentificationNumber_98d400b1-42d8-4d41-91c0-ba9473fc5886" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityTaxIdentificationNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_EntityTaxIdentificationNumber_98d400b1-42d8-4d41-91c0-ba9473fc5886" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressAddressLine1_7777df09-b775-444b-99c5-020699b69a1c" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressAddressLine1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_EntityAddressAddressLine1_7777df09-b775-444b-99c5-020699b69a1c" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressCityOrTown_48eadcd7-a177-4786-b222-e09b78752bb6" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressCityOrTown"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_EntityAddressCityOrTown_48eadcd7-a177-4786-b222-e09b78752bb6" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressStateOrProvince_10ca4d6f-4490-427a-8cc1-a049c2b36493" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressStateOrProvince"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_EntityAddressStateOrProvince_10ca4d6f-4490-427a-8cc1-a049c2b36493" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressPostalZipCode_18d359ca-06c8-4805-bf0e-e1e1c82ad44e" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressPostalZipCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_EntityAddressPostalZipCode_18d359ca-06c8-4805-bf0e-e1e1c82ad44e" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_CityAreaCode_cbb0de72-1291-422b-8dbd-d0df08484211" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_CityAreaCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_CityAreaCode_cbb0de72-1291-422b-8dbd-d0df08484211" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LocalPhoneNumber_3cb7dd8a-bcd5-486c-bc8c-1cf68e962ad5" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_LocalPhoneNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_LocalPhoneNumber_3cb7dd8a-bcd5-486c-bc8c-1cf68e962ad5" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_Security12bTitle_b19e32fc-f274-4ac2-b5a7-255db45a8196" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_Security12bTitle"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_Security12bTitle_b19e32fc-f274-4ac2-b5a7-255db45a8196" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_TradingSymbol_d4912cae-6289-4d29-989e-b385263de9a1" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_TradingSymbol"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_TradingSymbol_d4912cae-6289-4d29-989e-b385263de9a1" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_SecurityExchangeName_54dfa20a-cc7f-4a92-8b3d-336aa088fefa" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_SecurityExchangeName"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_SecurityExchangeName_54dfa20a-cc7f-4a92-8b3d-336aa088fefa" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCurrentReportingStatus_54434ac4-3278-4a0b-a09c-6b443392a7c1" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityCurrentReportingStatus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_EntityCurrentReportingStatus_54434ac4-3278-4a0b-a09c-6b443392a7c1" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityInteractiveDataCurrent_53d10864-0f8a-4ecb-bfdf-41607caba173" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityInteractiveDataCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_EntityInteractiveDataCurrent_53d10864-0f8a-4ecb-bfdf-41607caba173" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityFilerCategory_e339517e-9995-4072-989f-0a08fd0b1cfc" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityFilerCategory"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_EntityFilerCategory_e339517e-9995-4072-989f-0a08fd0b1cfc" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntitySmallBusiness_c2c11940-e567-430a-91ff-93cba1c1283a" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntitySmallBusiness"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_EntitySmallBusiness_c2c11940-e567-430a-91ff-93cba1c1283a" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityEmergingGrowthCompany_aa806594-9161-46e3-87f3-0dc70c5d1bda" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityEmergingGrowthCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_EntityEmergingGrowthCompany_aa806594-9161-46e3-87f3-0dc70c5d1bda" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityShellCompany_eb1cb3b8-af29-45c7-bfca-004b4230710a" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityShellCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_EntityShellCompany_eb1cb3b8-af29-45c7-bfca-004b4230710a" xlink:type="arc" order="22"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCommonStockSharesOutstanding_82323dc9-101e-43c6-ac32-049e8c81dad1" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityCommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_EntityCommonStockSharesOutstanding_82323dc9-101e-43c6-ac32-049e8c81dad1" xlink:type="arc" order="23"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_AmendmentFlag_da4aa59b-a076-46f1-b535-ebb821e1fd45" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_AmendmentFlag"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_AmendmentFlag_da4aa59b-a076-46f1-b535-ebb821e1fd45" xlink:type="arc" order="24"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentFiscalPeriodFocus_6db27220-a6eb-4e4c-ba34-84ced48c1928" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentFiscalPeriodFocus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_DocumentFiscalPeriodFocus_6db27220-a6eb-4e4c-ba34-84ced48c1928" xlink:type="arc" order="25"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentFiscalYearFocus_87dfbd32-19a9-4f83-9b18-98c9bb3e7cb3" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentFiscalYearFocus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_DocumentFiscalYearFocus_87dfbd32-19a9-4f83-9b18-98c9bb3e7cb3" xlink:type="arc" order="26"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_CurrentFiscalYearEndDate_c7aed9da-0be5-4f49-8706-bebe1b1e26c0" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_CurrentFiscalYearEndDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_CurrentFiscalYearEndDate_c7aed9da-0be5-4f49-8706-bebe1b1e26c0" xlink:type="arc" order="27"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCentralIndexKey_8ea3e257-8c49-4dd2-8b13-42d35e669563" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityCentralIndexKey"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_5c53013c-6fd6-4727-b7d6-ec297c8e3303" xlink:to="loc_dei_EntityCentralIndexKey_8ea3e257-8c49-4dd2-8b13-42d35e669563" xlink:type="arc" order="28"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="afrm-20251231.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_50d82e6e-dce3-498b-8fe5-1c265319dc75" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_3427c5e6-63fd-478b-848e-41f192cd8839" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_50d82e6e-dce3-498b-8fe5-1c265319dc75" xlink:to="loc_us-gaap_StatementTable_3427c5e6-63fd-478b-848e-41f192cd8839" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_22b98f45-d7db-402c-86fe-9013dc43a9cf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_3427c5e6-63fd-478b-848e-41f192cd8839" xlink:to="loc_us-gaap_DebtInstrumentAxis_22b98f45-d7db-402c-86fe-9013dc43a9cf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_22b98f45-d7db-402c-86fe-9013dc43a9cf_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_22b98f45-d7db-402c-86fe-9013dc43a9cf" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_22b98f45-d7db-402c-86fe-9013dc43a9cf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_1f977383-d7f0-4ad5-83bc-850ffb7b9851" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_22b98f45-d7db-402c-86fe-9013dc43a9cf" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_1f977383-d7f0-4ad5-83bc-850ffb7b9851" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_NotesIssuedBySecuritizationTrustsMember_8fb458be-ec0a-45a5-918b-869af287f485" xlink:href="afrm-20251231.xsd#afrm_NotesIssuedBySecuritizationTrustsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1f977383-d7f0-4ad5-83bc-850ffb7b9851" xlink:to="loc_afrm_NotesIssuedBySecuritizationTrustsMember_8fb458be-ec0a-45a5-918b-869af287f485" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_5ddf8227-7e0d-4145-9f8c-44fff436074e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_3427c5e6-63fd-478b-848e-41f192cd8839" xlink:to="loc_us-gaap_StatementClassOfStockAxis_5ddf8227-7e0d-4145-9f8c-44fff436074e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_5ddf8227-7e0d-4145-9f8c-44fff436074e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_5ddf8227-7e0d-4145-9f8c-44fff436074e" xlink:to="loc_us-gaap_ClassOfStockDomain_5ddf8227-7e0d-4145-9f8c-44fff436074e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_5d6dc785-541a-4ba0-aac6-b0e8d77a338c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_5ddf8227-7e0d-4145-9f8c-44fff436074e" xlink:to="loc_us-gaap_ClassOfStockDomain_5d6dc785-541a-4ba0-aac6-b0e8d77a338c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassAMember_c38f6cd6-b69b-4dc7-978c-88297937f8f4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonClassAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_5d6dc785-541a-4ba0-aac6-b0e8d77a338c" xlink:to="loc_us-gaap_CommonClassAMember_c38f6cd6-b69b-4dc7-978c-88297937f8f4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_548cfc7c-e40a-44fc-bc74-47c4256e2be6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_5d6dc785-541a-4ba0-aac6-b0e8d77a338c" xlink:to="loc_us-gaap_CommonClassBMember_548cfc7c-e40a-44fc-bc74-47c4256e2be6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_5317297b-d4f6-420a-b152-c02e58095b8a" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_3427c5e6-63fd-478b-848e-41f192cd8839" xlink:to="loc_srt_ConsolidatedEntitiesAxis_5317297b-d4f6-420a-b152-c02e58095b8a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_5317297b-d4f6-420a-b152-c02e58095b8a_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_5317297b-d4f6-420a-b152-c02e58095b8a" xlink:to="loc_srt_ConsolidatedEntitiesDomain_5317297b-d4f6-420a-b152-c02e58095b8a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_a36a98e6-bc59-4174-b6df-876ac91193ba" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_5317297b-d4f6-420a-b152-c02e58095b8a" xlink:to="loc_srt_ConsolidatedEntitiesDomain_a36a98e6-bc59-4174-b6df-876ac91193ba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_aaaf3fac-2f5b-466f-ab36-5d9e25231c24" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_VariableInterestEntityPrimaryBeneficiaryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_a36a98e6-bc59-4174-b6df-876ac91193ba" xlink:to="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_aaaf3fac-2f5b-466f-ab36-5d9e25231c24" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_92d22308-02fa-49f4-a9f2-cb477530f736" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_50d82e6e-dce3-498b-8fe5-1c265319dc75" xlink:to="loc_us-gaap_AssetsAbstract_92d22308-02fa-49f4-a9f2-cb477530f736" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_cd95b50d-4f7d-4710-95e6-f509ef74e351" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_92d22308-02fa-49f4-a9f2-cb477530f736" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_cd95b50d-4f7d-4710-95e6-f509ef74e351" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCash_d83e4c78-0611-4ced-bed5-7222342785e3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedCash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_92d22308-02fa-49f4-a9f2-cb477530f736" xlink:to="loc_us-gaap_RestrictedCash_d83e4c78-0611-4ced-bed5-7222342785e3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInvestments_15a8f239-8a3b-4e8d-9cd8-3bebba57092b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_92d22308-02fa-49f4-a9f2-cb477530f736" xlink:to="loc_us-gaap_OtherInvestments_15a8f239-8a3b-4e8d-9cd8-3bebba57092b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableHeldForSaleAmount_3f2d88a3-45ef-4ed1-829f-26e92d3b4fac" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LoansReceivableHeldForSaleAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_92d22308-02fa-49f4-a9f2-cb477530f736" xlink:to="loc_us-gaap_LoansReceivableHeldForSaleAmount_3f2d88a3-45ef-4ed1-829f-26e92d3b4fac" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableGross_f67ac305-c6dd-4bae-8e52-5ae6065b0344" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NotesReceivableGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_92d22308-02fa-49f4-a9f2-cb477530f736" xlink:to="loc_us-gaap_NotesReceivableGross_f67ac305-c6dd-4bae-8e52-5ae6065b0344" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_01f1fe65-b9bb-4a4c-94ea-47a02072e7e8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableAllowanceForCreditLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_92d22308-02fa-49f4-a9f2-cb477530f736" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_01f1fe65-b9bb-4a4c-94ea-47a02072e7e8" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableNet_5506be4d-df37-4ee9-b965-eb6a9a6adcf1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NotesReceivableNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_92d22308-02fa-49f4-a9f2-cb477530f736" xlink:to="loc_us-gaap_NotesReceivableNet_5506be4d-df37-4ee9-b965-eb6a9a6adcf1" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNet_3169cc2f-5527-4ec5-b5de-9da9cac17cfa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsReceivableNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_92d22308-02fa-49f4-a9f2-cb477530f736" xlink:to="loc_us-gaap_AccountsReceivableNet_3169cc2f-5527-4ec5-b5de-9da9cac17cfa" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_c29e61ed-423d-4c68-8a4b-ef2952a184df" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_92d22308-02fa-49f4-a9f2-cb477530f736" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_c29e61ed-423d-4c68-8a4b-ef2952a184df" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_b1420c27-f800-440c-84c1-1d229d5f1589" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_92d22308-02fa-49f4-a9f2-cb477530f736" xlink:to="loc_us-gaap_Goodwill_b1420c27-f800-440c-84c1-1d229d5f1589" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_f997a2f9-ad3e-4802-96b3-96d1fc18b738" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_92d22308-02fa-49f4-a9f2-cb477530f736" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_f997a2f9-ad3e-4802-96b3-96d1fc18b738" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementAssetNet_df30ff85-16a1-4c82-8268-5147472f5358" xlink:href="afrm-20251231.xsd#afrm_CommercialAgreementAssetNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_92d22308-02fa-49f4-a9f2-cb477530f736" xlink:to="loc_afrm_CommercialAgreementAssetNet_df30ff85-16a1-4c82-8268-5147472f5358" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_06e3e023-836f-41f8-861f-0bfd590ca08e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_92d22308-02fa-49f4-a9f2-cb477530f736" xlink:to="loc_us-gaap_OtherAssets_06e3e023-836f-41f8-861f-0bfd590ca08e" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_9bede6e3-bbcc-4fff-bafd-4bc7d9b44e36" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_92d22308-02fa-49f4-a9f2-cb477530f736" xlink:to="loc_us-gaap_Assets_9bede6e3-bbcc-4fff-bafd-4bc7d9b44e36" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_52c1ea16-6ad1-411a-8a04-e2bdac2e0ba6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_50d82e6e-dce3-498b-8fe5-1c265319dc75" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_52c1ea16-6ad1-411a-8a04-e2bdac2e0ba6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAbstract_d64548f6-71d8-4131-9b15-148d19b6e484" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_52c1ea16-6ad1-411a-8a04-e2bdac2e0ba6" xlink:to="loc_us-gaap_LiabilitiesAbstract_d64548f6-71d8-4131-9b15-148d19b6e484" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrentAndNoncurrent_19b66b0d-112c-4789-94ec-f2da9c3376c3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsPayableCurrentAndNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_d64548f6-71d8-4131-9b15-148d19b6e484" xlink:to="loc_us-gaap_AccountsPayableCurrentAndNoncurrent_19b66b0d-112c-4789-94ec-f2da9c3376c3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ThirdPartyLoanOwnerPayable_f27a59c3-a7a9-4aad-93c2-1cdab4f88954" xlink:href="afrm-20251231.xsd#afrm_ThirdPartyLoanOwnerPayable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_d64548f6-71d8-4131-9b15-148d19b6e484" xlink:to="loc_afrm_ThirdPartyLoanOwnerPayable_f27a59c3-a7a9-4aad-93c2-1cdab4f88954" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_b9ae7c45-cbf7-4394-8625-486fcc884b06" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestPayableCurrentAndNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_d64548f6-71d8-4131-9b15-148d19b6e484" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_b9ae7c45-cbf7-4394-8625-486fcc884b06" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_d95bf57b-eb98-4a4e-933e-07adf2143255" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccruedLiabilitiesAndOtherLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_d64548f6-71d8-4131-9b15-148d19b6e484" xlink:to="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_d95bf57b-eb98-4a4e-933e-07adf2143255" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebt_9db6e917-e084-4af8-9579-908b13b6791b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConvertibleDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_d64548f6-71d8-4131-9b15-148d19b6e484" xlink:to="loc_us-gaap_ConvertibleDebt_9db6e917-e084-4af8-9579-908b13b6791b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebt_c0d77c02-da82-41b6-b0ea-4963cc5d8fac" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SecuredDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_d64548f6-71d8-4131-9b15-148d19b6e484" xlink:to="loc_us-gaap_SecuredDebt_c0d77c02-da82-41b6-b0ea-4963cc5d8fac" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_1f0b9e40-35de-4772-b307-aa3936e34626" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_d64548f6-71d8-4131-9b15-148d19b6e484" xlink:to="loc_us-gaap_LineOfCredit_1f0b9e40-35de-4772-b307-aa3936e34626" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_66d93dce-7ba6-4d10-8e41-cfeada9e0bb8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_d64548f6-71d8-4131-9b15-148d19b6e484" xlink:to="loc_us-gaap_Liabilities_66d93dce-7ba6-4d10-8e41-cfeada9e0bb8" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_adabbb40-3305-41cf-ae46-9af9ea3b71d4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_52c1ea16-6ad1-411a-8a04-e2bdac2e0ba6" xlink:to="loc_us-gaap_CommitmentsAndContingencies_adabbb40-3305-41cf-ae46-9af9ea3b71d4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityAbstract_2c489a5b-edb6-4235-8282-b899681ee3eb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_52c1ea16-6ad1-411a-8a04-e2bdac2e0ba6" xlink:to="loc_us-gaap_StockholdersEquityAbstract_2c489a5b-edb6-4235-8282-b899681ee3eb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_be266aaf-8ebe-4c2b-a47c-b242d1b914ee" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_2c489a5b-edb6-4235-8282-b899681ee3eb" xlink:to="loc_us-gaap_CommonStockValue_be266aaf-8ebe-4c2b-a47c-b242d1b914ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_e96e312c-210d-42b7-b3a2-e74ca8aecdf7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_2c489a5b-edb6-4235-8282-b899681ee3eb" xlink:to="loc_us-gaap_AdditionalPaidInCapital_e96e312c-210d-42b7-b3a2-e74ca8aecdf7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_809de98b-b374-40d7-8f7d-ece274ce4529" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_2c489a5b-edb6-4235-8282-b899681ee3eb" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_809de98b-b374-40d7-8f7d-ece274ce4529" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_cd0ab4ba-001f-4898-b727-e861f2f190a0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_2c489a5b-edb6-4235-8282-b899681ee3eb" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_cd0ab4ba-001f-4898-b727-e861f2f190a0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_b2acc4d9-8581-4f35-833b-4296d4e9a459" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_2c489a5b-edb6-4235-8282-b899681ee3eb" xlink:to="loc_us-gaap_StockholdersEquity_b2acc4d9-8581-4f35-833b-4296d4e9a459" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_99a1e63a-359e-4b73-aa25-191abcbb5e38" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_52c1ea16-6ad1-411a-8a04-e2bdac2e0ba6" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_99a1e63a-359e-4b73-aa25-191abcbb5e38" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_09b2a8a2-b70e-437f-a013-e05b05f7ad58" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCash_856b49f6-1153-4da5-ae24-dccd63424bee" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedCash"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableGross_c3e0ea1e-1004-4222-a654-038e1a19b290" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NotesReceivableGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_95e52066-bf64-464a-9938-657c1a5c73f6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableAllowanceForCreditLosses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableNet_d56d4660-e099-4a8e-8bac-4f26ed04dc9f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NotesReceivableNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNet_52bdb40a-1fc8-4d71-9d0b-0db8912e76a1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsReceivableNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_18b7df18-eff9-496c-8847-a492d6e5a476" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_e63f8afa-deb7-476b-a669-efa061f63080" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAbstract_859c906a-a2f2-431f-bc5e-48a3598d1c1a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrentAndNoncurrent_fbc2e975-1e6e-42d4-b21d-b57bb4468ecf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsPayableCurrentAndNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_6054e547-c0a7-457c-b353-e1be3dd93d6a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestPayableCurrentAndNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_6fb255f9-8e1d-4bf3-a150-76d363955b44" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccruedLiabilitiesAndOtherLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebt_3f555be6-43fa-4c34-9d71-94a0008954b7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SecuredDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_d23a11ce-e047-4192-8112-1479af0f4f67" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCredit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_1e34d760-4c0c-4459-8b8c-e43b9aa0c6de" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsNet_d6ff68c6-5650-4918-bb12-1bfa1ae5b32a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_52c1ea16-6ad1-411a-8a04-e2bdac2e0ba6" xlink:to="loc_us-gaap_AssetsNet_d6ff68c6-5650-4918-bb12-1bfa1ae5b32a" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="simple" xlink:href="afrm-20251231.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_11cb746d-1804-4f31-8371-2e5d5029b10d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_a373d75e-1c3d-4535-a0a1-2389add3627b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_11cb746d-1804-4f31-8371-2e5d5029b10d" xlink:to="loc_us-gaap_StatementTable_a373d75e-1c3d-4535-a0a1-2389add3627b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_0d863478-7470-49bf-aa2a-6a469bb0d614" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_a373d75e-1c3d-4535-a0a1-2389add3627b" xlink:to="loc_us-gaap_StatementClassOfStockAxis_0d863478-7470-49bf-aa2a-6a469bb0d614" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_0d863478-7470-49bf-aa2a-6a469bb0d614_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0d863478-7470-49bf-aa2a-6a469bb0d614" xlink:to="loc_us-gaap_ClassOfStockDomain_0d863478-7470-49bf-aa2a-6a469bb0d614_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_7c210b63-c9ee-4efc-9449-ee5f50e433ae" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0d863478-7470-49bf-aa2a-6a469bb0d614" xlink:to="loc_us-gaap_ClassOfStockDomain_7c210b63-c9ee-4efc-9449-ee5f50e433ae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassAMember_4f5b4148-f062-4c1b-99d2-e2909e81524b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonClassAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_7c210b63-c9ee-4efc-9449-ee5f50e433ae" xlink:to="loc_us-gaap_CommonClassAMember_4f5b4148-f062-4c1b-99d2-e2909e81524b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_7ab7b380-a548-448e-93ce-8bbddfa9eda9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_7c210b63-c9ee-4efc-9449-ee5f50e433ae" xlink:to="loc_us-gaap_CommonClassBMember_7ab7b380-a548-448e-93ce-8bbddfa9eda9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_9c455f79-8866-4ecc-95ec-c51c9e2bed10" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_11cb746d-1804-4f31-8371-2e5d5029b10d" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_9c455f79-8866-4ecc-95ec-c51c9e2bed10" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_4044efd0-174b-4552-82a6-1a515b26b1bd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_11cb746d-1804-4f31-8371-2e5d5029b10d" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_4044efd0-174b-4552-82a6-1a515b26b1bd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_570cb43b-4c4b-41f3-88bb-d505d1af2d8c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_11cb746d-1804-4f31-8371-2e5d5029b10d" xlink:to="loc_us-gaap_CommonStockSharesIssued_570cb43b-4c4b-41f3-88bb-d505d1af2d8c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_54783312-b136-4320-971a-7d33cba63429" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_11cb746d-1804-4f31-8371-2e5d5029b10d" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_54783312-b136-4320-971a-7d33cba63429" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVEINCOMELOSS" xlink:type="simple" xlink:href="afrm-20251231.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVEINCOMELOSS"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVEINCOMELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_bb7519e5-7844-4299-b593-f64f3b31b16e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_7b881183-47c6-44a8-97cb-6617653a2d44" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_bb7519e5-7844-4299-b593-f64f3b31b16e" xlink:to="loc_us-gaap_StatementTable_7b881183-47c6-44a8-97cb-6617653a2d44" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_5e51159b-a10a-43a2-b779-038c80cb555a" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_7b881183-47c6-44a8-97cb-6617653a2d44" xlink:to="loc_srt_ProductOrServiceAxis_5e51159b-a10a-43a2-b779-038c80cb555a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_5e51159b-a10a-43a2-b779-038c80cb555a_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_5e51159b-a10a-43a2-b779-038c80cb555a" xlink:to="loc_srt_ProductsAndServicesDomain_5e51159b-a10a-43a2-b779-038c80cb555a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_3814e418-529e-4d01-b1df-59918eee036b" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_5e51159b-a10a-43a2-b779-038c80cb555a" xlink:to="loc_srt_ProductsAndServicesDomain_3814e418-529e-4d01-b1df-59918eee036b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_MerchantNetworkMember_51075875-11ac-4702-9086-9d17032021d5" xlink:href="afrm-20251231.xsd#afrm_MerchantNetworkMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_3814e418-529e-4d01-b1df-59918eee036b" xlink:to="loc_afrm_MerchantNetworkMember_51075875-11ac-4702-9086-9d17032021d5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_VirtualCardNetworkMember_c866fd8b-60bf-40c0-910d-6bb3a64f8475" xlink:href="afrm-20251231.xsd#afrm_VirtualCardNetworkMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_3814e418-529e-4d01-b1df-59918eee036b" xlink:to="loc_afrm_VirtualCardNetworkMember_c866fd8b-60bf-40c0-910d-6bb3a64f8475" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenuesAbstract_cd08e988-cb3b-4919-a393-b9637dbb1175" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenuesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_bb7519e5-7844-4299-b593-f64f3b31b16e" xlink:to="loc_us-gaap_RevenuesAbstract_cd08e988-cb3b-4919-a393-b9637dbb1175" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_c231f442-05e6-44bc-b90c-77fa4ca7a34c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_cd08e988-cb3b-4919-a393-b9637dbb1175" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_c231f442-05e6-44bc-b90c-77fa4ca7a34c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_4bb478c6-2666-49d3-8cd6-4e53fd553ed6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_cd08e988-cb3b-4919-a393-b9637dbb1175" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_4bb478c6-2666-49d3-8cd6-4e53fd553ed6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSalesOfLoansNet_f88b859b-e018-4283-afa2-d23c9bfa3962" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnSalesOfLoansNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_cd08e988-cb3b-4919-a393-b9637dbb1175" xlink:to="loc_us-gaap_GainLossOnSalesOfLoansNet_f88b859b-e018-4283-afa2-d23c9bfa3962" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets_328f256d-4bfb-4963-8ccf-ece10e913c5c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_cd08e988-cb3b-4919-a393-b9637dbb1175" xlink:to="loc_us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets_328f256d-4bfb-4963-8ccf-ece10e913c5c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_6c2528c1-8e08-426d-800f-1501dccd166b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Revenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_cd08e988-cb3b-4919-a393-b9637dbb1175" xlink:to="loc_us-gaap_Revenues_6c2528c1-8e08-426d-800f-1501dccd166b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpensesAbstract_9bbba2ba-4ba2-4495-b553-bac1b9f5d640" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingExpensesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_bb7519e5-7844-4299-b593-f64f3b31b16e" xlink:to="loc_us-gaap_OperatingExpensesAbstract_9bbba2ba-4ba2-4495-b553-bac1b9f5d640" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_LossOnFinancingReceivableCommitmentsToPurchase_769e45f9-39e9-4ccb-8f6b-613c519f5042" xlink:href="afrm-20251231.xsd#afrm_LossOnFinancingReceivableCommitmentsToPurchase"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_9bbba2ba-4ba2-4495-b553-bac1b9f5d640" xlink:to="loc_afrm_LossOnFinancingReceivableCommitmentsToPurchase_769e45f9-39e9-4ccb-8f6b-613c519f5042" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_926c6ddc-d96c-4e9b-90ef-8f726ce5ac6b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProvisionForLoanLossesExpensed"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_9bbba2ba-4ba2-4495-b553-bac1b9f5d640" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_926c6ddc-d96c-4e9b-90ef-8f726ce5ac6b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_84b01568-200f-4125-b076-afafdab396c0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_9bbba2ba-4ba2-4495-b553-bac1b9f5d640" xlink:to="loc_us-gaap_InterestExpenseDebt_84b01568-200f-4125-b076-afafdab396c0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ProcessingAndServicingExpense_f579b0a2-481b-4f04-a7e5-72ea7d0161d6" xlink:href="afrm-20251231.xsd#afrm_ProcessingAndServicingExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_9bbba2ba-4ba2-4495-b553-bac1b9f5d640" xlink:to="loc_afrm_ProcessingAndServicingExpense_f579b0a2-481b-4f04-a7e5-72ea7d0161d6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_TechnologyAndDataAnalyticsExpense_c0e9c1ce-b173-4ccd-87ad-a625cad5f2c1" xlink:href="afrm-20251231.xsd#afrm_TechnologyAndDataAnalyticsExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_9bbba2ba-4ba2-4495-b553-bac1b9f5d640" xlink:to="loc_afrm_TechnologyAndDataAnalyticsExpense_c0e9c1ce-b173-4ccd-87ad-a625cad5f2c1" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_acb07cb8-c93e-40dd-9e2e-98af4fea0277" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SellingAndMarketingExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_9bbba2ba-4ba2-4495-b553-bac1b9f5d640" xlink:to="loc_us-gaap_SellingAndMarketingExpense_acb07cb8-c93e-40dd-9e2e-98af4fea0277" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_747d2915-a9d0-40ef-8319-70ba06b087ea" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_9bbba2ba-4ba2-4495-b553-bac1b9f5d640" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_747d2915-a9d0-40ef-8319-70ba06b087ea" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RestructuringChargesReversalsAndOtherExpense_7501ff22-b440-484e-821a-cf11c41006c5" xlink:href="afrm-20251231.xsd#afrm_RestructuringChargesReversalsAndOtherExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_9bbba2ba-4ba2-4495-b553-bac1b9f5d640" xlink:to="loc_afrm_RestructuringChargesReversalsAndOtherExpense_7501ff22-b440-484e-821a-cf11c41006c5" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_45eb92f2-8a8b-49be-b7f0-01ef9e7635a2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostsAndExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_9bbba2ba-4ba2-4495-b553-bac1b9f5d640" xlink:to="loc_us-gaap_CostsAndExpenses_45eb92f2-8a8b-49be-b7f0-01ef9e7635a2" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_4d9d9bcb-c916-4bca-b1ce-fb96e9f75be5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_bb7519e5-7844-4299-b593-f64f3b31b16e" xlink:to="loc_us-gaap_OperatingIncomeLoss_4d9d9bcb-c916-4bca-b1ce-fb96e9f75be5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_ade3f4ce-7c67-4311-a32f-29637bc1aecf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_bb7519e5-7844-4299-b593-f64f3b31b16e" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_ade3f4ce-7c67-4311-a32f-29637bc1aecf" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_5705b99e-30df-4bfc-aa43-4415653ac026" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_bb7519e5-7844-4299-b593-f64f3b31b16e" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_5705b99e-30df-4bfc-aa43-4415653ac026" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_7c5ad9a2-7086-4451-929d-4422f7b46c81" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_bb7519e5-7844-4299-b593-f64f3b31b16e" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_7c5ad9a2-7086-4451-929d-4422f7b46c81" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_61d6d962-d9fc-429d-8b82-03196ae1ceb2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_bb7519e5-7844-4299-b593-f64f3b31b16e" xlink:to="loc_us-gaap_NetIncomeLoss_61d6d962-d9fc-429d-8b82-03196ae1ceb2" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract_986b0ea8-059f-4fac-b64b-888898f9292a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_bb7519e5-7844-4299-b593-f64f3b31b16e" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract_986b0ea8-059f-4fac-b64b-888898f9292a" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_1fe1002b-ba9b-48db-a1ff-031fc9d80216" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract_986b0ea8-059f-4fac-b64b-888898f9292a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_1fe1002b-ba9b-48db-a1ff-031fc9d80216" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_f4691f7f-05f6-4a66-a6bc-eab5dac441ae" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract_986b0ea8-059f-4fac-b64b-888898f9292a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_f4691f7f-05f6-4a66-a6bc-eab5dac441ae" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_b1f8ee37-81f4-435c-b712-52901d797752" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract_986b0ea8-059f-4fac-b64b-888898f9292a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_b1f8ee37-81f4-435c-b712-52901d797752" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_0e353901-720d-4148-9005-76e2b8fcec3e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract_986b0ea8-059f-4fac-b64b-888898f9292a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_0e353901-720d-4148-9005-76e2b8fcec3e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_24f6387b-d373-41f3-b4f8-8abec1e6bf5a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_bb7519e5-7844-4299-b593-f64f3b31b16e" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTax_24f6387b-d373-41f3-b4f8-8abec1e6bf5a" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareAbstract_6497f056-8f75-4b0a-8c15-a680ecd8bf6c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EarningsPerShareAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_bb7519e5-7844-4299-b593-f64f3b31b16e" xlink:to="loc_us-gaap_EarningsPerShareAbstract_6497f056-8f75-4b0a-8c15-a680ecd8bf6c" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_83204cbe-e936-4029-a6bf-298b9df7589f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareAbstract_6497f056-8f75-4b0a-8c15-a680ecd8bf6c" xlink:to="loc_us-gaap_EarningsPerShareBasic_83204cbe-e936-4029-a6bf-298b9df7589f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_0f13c621-aa8c-44e6-9bff-8ea01ae6d261" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareAbstract_6497f056-8f75-4b0a-8c15-a680ecd8bf6c" xlink:to="loc_us-gaap_EarningsPerShareDiluted_0f13c621-aa8c-44e6-9bff-8ea01ae6d261" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasicAbstract_3f6687b0-c35a-476d-970b-4abf3d1db69e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasicAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_bb7519e5-7844-4299-b593-f64f3b31b16e" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasicAbstract_3f6687b0-c35a-476d-970b-4abf3d1db69e" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_4896e080-6531-4d80-b1eb-126ba38bccd5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasicAbstract_3f6687b0-c35a-476d-970b-4abf3d1db69e" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_4896e080-6531-4d80-b1eb-126ba38bccd5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_3df67ae8-a8c2-4a85-830c-e55caf3f7160" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasicAbstract_3f6687b0-c35a-476d-970b-4abf3d1db69e" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_3df67ae8-a8c2-4a85-830c-e55caf3f7160" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTOFSTOCKHOLDERSEQUITY" xlink:type="simple" xlink:href="afrm-20251231.xsd#CONDENSEDCONSOLIDATEDSTATEMENTOFSTOCKHOLDERSEQUITY"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTOFSTOCKHOLDERSEQUITY" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_25b623ec-b15a-4e9d-b5cb-25d51bc38304" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_1e9d3f00-3ad8-4e8c-bc76-f2a31382a133" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_25b623ec-b15a-4e9d-b5cb-25d51bc38304" xlink:to="loc_us-gaap_StatementTable_1e9d3f00-3ad8-4e8c-bc76-f2a31382a133" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_67020bbf-7d8d-480b-a9f5-f5f7bb44adb0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_1e9d3f00-3ad8-4e8c-bc76-f2a31382a133" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_67020bbf-7d8d-480b-a9f5-f5f7bb44adb0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_67020bbf-7d8d-480b-a9f5-f5f7bb44adb0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_67020bbf-7d8d-480b-a9f5-f5f7bb44adb0" xlink:to="loc_us-gaap_EquityComponentDomain_67020bbf-7d8d-480b-a9f5-f5f7bb44adb0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_b7c73b32-cfee-4607-9ca7-3557204115e5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_67020bbf-7d8d-480b-a9f5-f5f7bb44adb0" xlink:to="loc_us-gaap_EquityComponentDomain_b7c73b32-cfee-4607-9ca7-3557204115e5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_90df4d8b-b354-4fd5-bc23-49e7dae384a1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b7c73b32-cfee-4607-9ca7-3557204115e5" xlink:to="loc_us-gaap_CommonStockMember_90df4d8b-b354-4fd5-bc23-49e7dae384a1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_ad93cf67-0a65-48b4-93b6-c63b68874957" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b7c73b32-cfee-4607-9ca7-3557204115e5" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_ad93cf67-0a65-48b4-93b6-c63b68874957" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_4c90a2cb-1bbd-4f02-ad60-b82a3921c438" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b7c73b32-cfee-4607-9ca7-3557204115e5" xlink:to="loc_us-gaap_RetainedEarningsMember_4c90a2cb-1bbd-4f02-ad60-b82a3921c438" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_8cf06607-5161-4e99-8635-1bcca32ab1d5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b7c73b32-cfee-4607-9ca7-3557204115e5" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_8cf06607-5161-4e99-8635-1bcca32ab1d5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_25ad4cfc-f9d5-40a7-be56-53b6858c60e8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_25b623ec-b15a-4e9d-b5cb-25d51bc38304" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_25ad4cfc-f9d5-40a7-be56-53b6858c60e8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_60391639-9ea6-4330-a282-1f23ec690e83" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_25ad4cfc-f9d5-40a7-be56-53b6858c60e8" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_60391639-9ea6-4330-a282-1f23ec690e83" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_2cc418e8-59a1-4d17-b26a-569c12ef6735" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_25ad4cfc-f9d5-40a7-be56-53b6858c60e8" xlink:to="loc_us-gaap_StockholdersEquity_2cc418e8-59a1-4d17-b26a-569c12ef6735" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_806b5783-b85e-424c-a00c-87287e964647" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_25ad4cfc-f9d5-40a7-be56-53b6858c60e8" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_806b5783-b85e-424c-a00c-87287e964647" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_fe1f688b-48ba-458f-92d2-30e3e0f25842" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_25ad4cfc-f9d5-40a7-be56-53b6858c60e8" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_fe1f688b-48ba-458f-92d2-30e3e0f25842" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_34f97d29-9c0f-45d8-8e63-63a40024d3f4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_25ad4cfc-f9d5-40a7-be56-53b6858c60e8" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_34f97d29-9c0f-45d8-8e63-63a40024d3f4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_bfed4f83-be8d-4a7c-8d80-42ae8ed19ab4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_25ad4cfc-f9d5-40a7-be56-53b6858c60e8" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_bfed4f83-be8d-4a7c-8d80-42ae8ed19ab4" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodShares_f85efd44-d9b0-4043-b511-9ca7348b48c3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockRepurchasedDuringPeriodShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_25ad4cfc-f9d5-40a7-be56-53b6858c60e8" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodShares_f85efd44-d9b0-4043-b511-9ca7348b48c3" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodValue_5ac7d4c3-9b29-4aea-b515-dab517907511" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockRepurchasedDuringPeriodValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_25ad4cfc-f9d5-40a7-be56-53b6858c60e8" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodValue_5ac7d4c3-9b29-4aea-b515-dab517907511" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures_ec5655d0-4080-4527-b7ac-17ee6ceafb9c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_25ad4cfc-f9d5-40a7-be56-53b6858c60e8" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures_ec5655d0-4080-4527-b7ac-17ee6ceafb9c" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalWarrantIssued_ba4e73a1-b9f5-45f8-a455-8f814f033e7f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalWarrantIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_25ad4cfc-f9d5-40a7-be56-53b6858c60e8" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalWarrantIssued_ba4e73a1-b9f5-45f8-a455-8f814f033e7f" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_46ce325f-2eef-444a-95be-76a91bbddb07" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_25ad4cfc-f9d5-40a7-be56-53b6858c60e8" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_46ce325f-2eef-444a-95be-76a91bbddb07" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_239bc346-04b9-4458-80be-b9243488e8ed" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_25ad4cfc-f9d5-40a7-be56-53b6858c60e8" xlink:to="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_239bc346-04b9-4458-80be-b9243488e8ed" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_be90a971-b0f0-4a43-a38d-ede0daae1673" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_25ad4cfc-f9d5-40a7-be56-53b6858c60e8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_be90a971-b0f0-4a43-a38d-ede0daae1673" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_26806227-5f36-4b8b-8588-85b7d97ed556" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_25ad4cfc-f9d5-40a7-be56-53b6858c60e8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_26806227-5f36-4b8b-8588-85b7d97ed556" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationTaxParent_b166ebdd-eeed-4532-b7c9-9deede574605" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationTaxParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_25ad4cfc-f9d5-40a7-be56-53b6858c60e8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationTaxParent_b166ebdd-eeed-4532-b7c9-9deede574605" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_c2177402-7938-4fc4-8f20-99ed21bb95b8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_25ad4cfc-f9d5-40a7-be56-53b6858c60e8" xlink:to="loc_us-gaap_NetIncomeLoss_c2177402-7938-4fc4-8f20-99ed21bb95b8" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_902f92a0-4193-4b67-a360-32a79b1e1fd5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_4af86b35-58a6-4b7f-a67a-da0111038ad4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/RevenueScheduleofDisaggregationofRevenueDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#RevenueScheduleofDisaggregationofRevenueDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/RevenueScheduleofDisaggregationofRevenueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_f2d22934-3924-456d-b1e3-4b06949e5b25" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_77e39453-dca5-4a5b-956e-2680b75da8b6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_f2d22934-3924-456d-b1e3-4b06949e5b25" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_77e39453-dca5-4a5b-956e-2680b75da8b6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_623d0120-84aa-4259-be23-0f985a9702f0" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_77e39453-dca5-4a5b-956e-2680b75da8b6" xlink:to="loc_srt_ProductOrServiceAxis_623d0120-84aa-4259-be23-0f985a9702f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_623d0120-84aa-4259-be23-0f985a9702f0_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_623d0120-84aa-4259-be23-0f985a9702f0" xlink:to="loc_srt_ProductsAndServicesDomain_623d0120-84aa-4259-be23-0f985a9702f0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_830a449c-58d2-42cd-9d82-3d5895198793" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_623d0120-84aa-4259-be23-0f985a9702f0" xlink:to="loc_srt_ProductsAndServicesDomain_830a449c-58d2-42cd-9d82-3d5895198793" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_MerchantNetworkMember_b8b92a5a-ed9b-4ef1-a380-6852c44c38cf" xlink:href="afrm-20251231.xsd#afrm_MerchantNetworkMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_830a449c-58d2-42cd-9d82-3d5895198793" xlink:to="loc_afrm_MerchantNetworkMember_b8b92a5a-ed9b-4ef1-a380-6852c44c38cf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_VirtualCardNetworkMember_9278c7d4-e31b-4331-b829-9474d3491807" xlink:href="afrm-20251231.xsd#afrm_VirtualCardNetworkMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_830a449c-58d2-42cd-9d82-3d5895198793" xlink:to="loc_afrm_VirtualCardNetworkMember_9278c7d4-e31b-4331-b829-9474d3491807" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_f89cb64b-30db-4006-9f53-7b3e070def66" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_f2d22934-3924-456d-b1e3-4b06949e5b25" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_f89cb64b-30db-4006-9f53-7b3e070def66" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_f13d7a2c-7aea-4791-89fe-aa846569b4a2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_f2d22934-3924-456d-b1e3-4b06949e5b25" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_f13d7a2c-7aea-4791-89fe-aa846569b4a2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSalesOfLoansNet_a0800117-7a4b-4240-93d6-b262493b6d68" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnSalesOfLoansNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_f2d22934-3924-456d-b1e3-4b06949e5b25" xlink:to="loc_us-gaap_GainLossOnSalesOfLoansNet_a0800117-7a4b-4240-93d6-b262493b6d68" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets_b8afc277-5716-4090-bd0c-b1205eeaf954" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_f2d22934-3924-456d-b1e3-4b06949e5b25" xlink:to="loc_us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets_b8afc277-5716-4090-bd0c-b1205eeaf954" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_373b6079-4ad6-4f8d-905a-72dd1104685d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Revenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_f2d22934-3924-456d-b1e3-4b06949e5b25" xlink:to="loc_us-gaap_Revenues_373b6079-4ad6-4f8d-905a-72dd1104685d" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/RevenueAdditionalInformationDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#RevenueAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/RevenueAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_a56b1ace-17ca-42ed-9916-7159faec273e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_28ba430d-debf-4044-996a-903e80e72301" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_a56b1ace-17ca-42ed-9916-7159faec273e" xlink:to="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_28ba430d-debf-4044-996a-903e80e72301" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_fe65f06b-804a-4f99-bb95-de367c5f7cf6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_28ba430d-debf-4044-996a-903e80e72301" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_fe65f06b-804a-4f99-bb95-de367c5f7cf6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_fe65f06b-804a-4f99-bb95-de367c5f7cf6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_fe65f06b-804a-4f99-bb95-de367c5f7cf6" xlink:to="loc_us-gaap_RelatedPartyDomain_fe65f06b-804a-4f99-bb95-de367c5f7cf6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_a8d3d45a-5fcc-4142-b12d-5c536d048319" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_fe65f06b-804a-4f99-bb95-de367c5f7cf6" xlink:to="loc_us-gaap_RelatedPartyDomain_a8d3d45a-5fcc-4142-b12d-5c536d048319" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_AffiliatedEntityMember_55c114f0-8a35-46a6-ae4c-a0a24de90a80" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_AffiliatedEntityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_a8d3d45a-5fcc-4142-b12d-5c536d048319" xlink:to="loc_srt_AffiliatedEntityMember_55c114f0-8a35-46a6-ae4c-a0a24de90a80" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_e8fa1e43-dc1b-4bc3-8204-53a5f6099bfd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_a56b1ace-17ca-42ed-9916-7159faec273e" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_e8fa1e43-dc1b-4bc3-8204-53a5f6099bfd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableThresholdPeriodPastDueSuspendedAccruedInterest_62c24b88-e123-40de-9ae4-4464a9892249" xlink:href="afrm-20251231.xsd#afrm_FinancingReceivableThresholdPeriodPastDueSuspendedAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_a56b1ace-17ca-42ed-9916-7159faec273e" xlink:to="loc_afrm_FinancingReceivableThresholdPeriodPastDueSuspendedAccruedInterest_62c24b88-e123-40de-9ae4-4464a9892249" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestNonaccrual_0517b8a5-838b-4bf5-a7fe-ea4874bbcf7d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestNonaccrual"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_a56b1ace-17ca-42ed-9916-7159faec273e" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestNonaccrual_0517b8a5-838b-4bf5-a7fe-ea4874bbcf7d" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/RevenueScheduleofInterestIncomeDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#RevenueScheduleofInterestIncomeDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/RevenueScheduleofInterestIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_019be4d0-4a96-7586-a25a-b70176fb21b8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_019be4d0-1c7c-7487-a206-f7c6c7bfbaee" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_019be4d0-4a96-7586-a25a-b70176fb21b8" xlink:to="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_019be4d0-1c7c-7487-a206-f7c6c7bfbaee" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RestatementAxis_019be4d0-4a96-7cfa-92a6-dc78c79b5b5d" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RestatementAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_019be4d0-1c7c-7487-a206-f7c6c7bfbaee" xlink:to="loc_srt_RestatementAxis_019be4d0-4a96-7cfa-92a6-dc78c79b5b5d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RestatementDomain_019be4d0-4a96-7cfa-92a6-dc78c79b5b5d_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RestatementDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RestatementAxis_019be4d0-4a96-7cfa-92a6-dc78c79b5b5d" xlink:to="loc_srt_RestatementDomain_019be4d0-4a96-7cfa-92a6-dc78c79b5b5d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RestatementDomain_019be4d0-4a96-7638-9a21-c4e3a1c9a0de" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RestatementDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RestatementAxis_019be4d0-4a96-7cfa-92a6-dc78c79b5b5d" xlink:to="loc_srt_RestatementDomain_019be4d0-4a96-7638-9a21-c4e3a1c9a0de" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RestatementAdjustmentMember_019be4d0-4a96-7b93-9d10-145bada35953" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RestatementAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RestatementDomain_019be4d0-4a96-7638-9a21-c4e3a1c9a0de" xlink:to="loc_srt_RestatementAdjustmentMember_019be4d0-4a96-7b93-9d10-145bada35953" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_77f981e1-7877-4b82-bebb-366cef4f1ed2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_019be4d0-4a96-7586-a25a-b70176fb21b8" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_77f981e1-7877-4b82-bebb-366cef4f1ed2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AccretionOfDiscountsFinancingReceivables_b17c5c44-3d90-4437-a0d4-dad1c71de5bb" xlink:href="afrm-20251231.xsd#afrm_AccretionOfDiscountsFinancingReceivables"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_019be4d0-4a96-7586-a25a-b70176fb21b8" xlink:to="loc_afrm_AccretionOfDiscountsFinancingReceivables_b17c5c44-3d90-4437-a0d4-dad1c71de5bb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AmortizationOfPremiumsFinancingReceivables_d323084b-fa63-490d-b838-440aa8c1b661" xlink:href="afrm-20251231.xsd#afrm_AmortizationOfPremiumsFinancingReceivables"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_019be4d0-4a96-7586-a25a-b70176fb21b8" xlink:to="loc_afrm_AmortizationOfPremiumsFinancingReceivables_d323084b-fa63-490d-b838-440aa8c1b661" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAccruedInterestWriteoff_3246962e-b12e-4468-9619-c9125e3ccf1a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableAccruedInterestWriteoff"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_019be4d0-4a96-7586-a25a-b70176fb21b8" xlink:to="loc_us-gaap_FinancingReceivableAccruedInterestWriteoff_3246962e-b12e-4468-9619-c9125e3ccf1a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_550b9e0c-fab1-464b-a24e-1a0d61840fdf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_019be4d0-4a96-7586-a25a-b70176fb21b8" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_550b9e0c-fab1-464b-a24e-1a0d61840fdf" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAccruedInterestWriteoff_019bec54-3518-7a36-b3f6-40e40812418a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableAccruedInterestWriteoff"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesAdditionalInformationDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#LoansHeldforInvestmentandAllowanceforCreditLossesAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_58515bcb-20bd-454e-9baf-2336517f276f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_d0f019be-a68b-42a5-8e78-ed4dfd9123d1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_58515bcb-20bd-454e-9baf-2336517f276f" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_d0f019be-a68b-42a5-8e78-ed4dfd9123d1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_64fd37cb-5aa7-4d54-8c33-fecc3963b13e" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_d0f019be-a68b-42a5-8e78-ed4dfd9123d1" xlink:to="loc_srt_RangeAxis_64fd37cb-5aa7-4d54-8c33-fecc3963b13e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_64fd37cb-5aa7-4d54-8c33-fecc3963b13e_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_64fd37cb-5aa7-4d54-8c33-fecc3963b13e" xlink:to="loc_srt_RangeMember_64fd37cb-5aa7-4d54-8c33-fecc3963b13e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_3b9441b3-1f54-4732-a57f-fee1fefc47f9" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_64fd37cb-5aa7-4d54-8c33-fecc3963b13e" xlink:to="loc_srt_RangeMember_3b9441b3-1f54-4732-a57f-fee1fefc47f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_36212c36-95ff-4ab3-bd7e-665cc03598a0" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_3b9441b3-1f54-4732-a57f-fee1fefc47f9" xlink:to="loc_srt_MaximumMember_36212c36-95ff-4ab3-bd7e-665cc03598a0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_606431f3-5fdb-4c0c-8cfe-8ce685a0b4e8" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_3b9441b3-1f54-4732-a57f-fee1fefc47f9" xlink:to="loc_srt_MinimumMember_606431f3-5fdb-4c0c-8cfe-8ce685a0b4e8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossLoanPurchased_4b32a22d-e00d-4c34-8161-1c75efdcec7c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossLoanPurchased"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_58515bcb-20bd-454e-9baf-2336517f276f" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossLoanPurchased_4b32a22d-e00d-4c34-8161-1c75efdcec7c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestOriginatedLoans_4d7b8ed4-767d-492c-bde3-78b5119da63d" xlink:href="afrm-20251231.xsd#afrm_FinancingReceivableExcludingAccruedInterestOriginatedLoans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_58515bcb-20bd-454e-9baf-2336517f276f" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestOriginatedLoans_4d7b8ed4-767d-492c-bde3-78b5119da63d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableLoanTerm_15425e4c-5ee1-42f7-aa0b-5367416c4e14" xlink:href="afrm-20251231.xsd#afrm_FinancingReceivableLoanTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_58515bcb-20bd-454e-9baf-2336517f276f" xlink:to="loc_afrm_FinancingReceivableLoanTerm_15425e4c-5ee1-42f7-aa0b-5367416c4e14" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableThresholdPeriodPastDueSuspendedAccruedInterest_338abf7a-8038-4092-a574-efb5541bceae" xlink:href="afrm-20251231.xsd#afrm_FinancingReceivableThresholdPeriodPastDueSuspendedAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_58515bcb-20bd-454e-9baf-2336517f276f" xlink:to="loc_afrm_FinancingReceivableThresholdPeriodPastDueSuspendedAccruedInterest_338abf7a-8038-4092-a574-efb5541bceae" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableModifiedNumberOfDeferrals_0a29c414-0340-4e70-bc6e-d55f41c24f53" xlink:href="afrm-20251231.xsd#afrm_FinancingReceivableModifiedNumberOfDeferrals"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_58515bcb-20bd-454e-9baf-2336517f276f" xlink:to="loc_afrm_FinancingReceivableModifiedNumberOfDeferrals_0a29c414-0340-4e70-bc6e-d55f41c24f53" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableModifiedLengthOfDeferralTerm_2bb71405-dc03-4b6b-9bd5-927f3f0c8c0c" xlink:href="afrm-20251231.xsd#afrm_FinancingReceivableModifiedLengthOfDeferralTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_58515bcb-20bd-454e-9baf-2336517f276f" xlink:to="loc_afrm_FinancingReceivableModifiedLengthOfDeferralTerm_2bb71405-dc03-4b6b-9bd5-927f3f0c8c0c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableModifiedLengthOfRemainingTermMaximum_518b78ea-3bb9-4459-b65a-1548f7d7d23b" xlink:href="afrm-20251231.xsd#afrm_FinancingReceivableModifiedLengthOfRemainingTermMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_58515bcb-20bd-454e-9baf-2336517f276f" xlink:to="loc_afrm_FinancingReceivableModifiedLengthOfRemainingTermMaximum_518b78ea-3bb9-4459-b65a-1548f7d7d23b" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableModifiedWeightedAverageTermIncreaseFromModification_47c6f548-db4f-47ba-a267-ff1093cd91b4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableModifiedWeightedAverageTermIncreaseFromModification"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_58515bcb-20bd-454e-9baf-2336517f276f" xlink:to="loc_us-gaap_FinancingReceivableModifiedWeightedAverageTermIncreaseFromModification_47c6f548-db4f-47ba-a267-ff1093cd91b4" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestModifiedSubsequentDefault_c1d04155-696f-4066-9b2a-996eb92bba90" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestModifiedSubsequentDefault"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_58515bcb-20bd-454e-9baf-2336517f276f" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestModifiedSubsequentDefault_c1d04155-696f-4066-9b2a-996eb92bba90" xlink:type="arc" order="8"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofLoansHeldforInvestmentbyDelinquencyDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofLoansHeldforInvestmentbyDelinquencyDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofLoansHeldforInvestmentbyDelinquencyDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_595f5694-e540-4d57-9a67-af1dbd6e9b6b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_33ce7666-eb34-4dd2-b7d7-7eb4a700c544" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfFinancingReceivablesPastDueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_595f5694-e540-4d57-9a67-af1dbd6e9b6b" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_33ce7666-eb34-4dd2-b7d7-7eb4a700c544" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_0cdea657-ce63-4282-b7d6-dc57b6cafa40" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivablesPeriodPastDueAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_33ce7666-eb34-4dd2-b7d7-7eb4a700c544" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_0cdea657-ce63-4282-b7d6-dc57b6cafa40" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_0cdea657-ce63-4282-b7d6-dc57b6cafa40_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_0cdea657-ce63-4282-b7d6-dc57b6cafa40" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_0cdea657-ce63-4282-b7d6-dc57b6cafa40_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_c5e6b718-ecbc-4eba-804d-d132b88254c4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_0cdea657-ce63-4282-b7d6-dc57b6cafa40" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_c5e6b718-ecbc-4eba-804d-d132b88254c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancialAsset0To3DaysPastDueMember_61b6e506-5760-4239-a323-c3f1900b6497" xlink:href="afrm-20251231.xsd#afrm_FinancialAsset0To3DaysPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_c5e6b718-ecbc-4eba-804d-d132b88254c4" xlink:to="loc_afrm_FinancialAsset0To3DaysPastDueMember_61b6e506-5760-4239-a323-c3f1900b6497" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancialAsset4To29DaysPastDueMember_5e5353b5-444a-4c65-b0f7-9e9fdf05d385" xlink:href="afrm-20251231.xsd#afrm_FinancialAsset4To29DaysPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_c5e6b718-ecbc-4eba-804d-d132b88254c4" xlink:to="loc_afrm_FinancialAsset4To29DaysPastDueMember_5e5353b5-444a-4c65-b0f7-9e9fdf05d385" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivables30To59DaysPastDueMember_fac5f696-7e16-4385-a8a9-7e84c606dfb2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivables30To59DaysPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_c5e6b718-ecbc-4eba-804d-d132b88254c4" xlink:to="loc_us-gaap_FinancingReceivables30To59DaysPastDueMember_fac5f696-7e16-4385-a8a9-7e84c606dfb2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivables60To89DaysPastDueMember_a32fa049-a2fa-488e-b660-1813d388e630" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivables60To89DaysPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_c5e6b718-ecbc-4eba-804d-d132b88254c4" xlink:to="loc_us-gaap_FinancingReceivables60To89DaysPastDueMember_a32fa049-a2fa-488e-b660-1813d388e630" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember_427c3d3a-0dc2-4d13-b883-3bc66d6ea268" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_c5e6b718-ecbc-4eba-804d-d132b88254c4" xlink:to="loc_us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember_427c3d3a-0dc2-4d13-b883-3bc66d6ea268" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_9898453d-7c5d-498c-8b4f-049c0277fba8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_595f5694-e540-4d57-9a67-af1dbd6e9b6b" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_9898453d-7c5d-498c-8b4f-049c0277fba8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_77123125-0d17-4c38-9d10-48bf9a0b4a24" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_595f5694-e540-4d57-9a67-af1dbd6e9b6b" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_77123125-0d17-4c38-9d10-48bf9a0b4a24" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_408b0c44-ccee-41f1-98ea-2315b05a241e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_595f5694-e540-4d57-9a67-af1dbd6e9b6b" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_408b0c44-ccee-41f1-98ea-2315b05a241e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_87841247-d022-4369-b53b-7df41b00f9e4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_595f5694-e540-4d57-9a67-af1dbd6e9b6b" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_87841247-d022-4369-b53b-7df41b00f9e4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_23cea323-b8ab-43c0-845a-db9dd0b3d5c1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_595f5694-e540-4d57-9a67-af1dbd6e9b6b" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_23cea323-b8ab-43c0-845a-db9dd0b3d5c1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_8efb6c6e-c366-4d72-a0f6-d1e915892056" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_595f5694-e540-4d57-9a67-af1dbd6e9b6b" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_8efb6c6e-c366-4d72-a0f6-d1e915892056" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableIncludingLoansHeldForSaleExcludingAccruedInterestBeforeAllowanceForCreditLoss_933b7fb3-576b-4c4d-bb89-d85868e2a7bb" xlink:href="afrm-20251231.xsd#afrm_FinancingReceivableIncludingLoansHeldForSaleExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_595f5694-e540-4d57-9a67-af1dbd6e9b6b" xlink:to="loc_afrm_FinancingReceivableIncludingLoansHeldForSaleExcludingAccruedInterestBeforeAllowanceForCreditLoss_933b7fb3-576b-4c4d-bb89-d85868e2a7bb" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing_9b905524-3c0b-4ea7-9066-c385a4e7bc43" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_595f5694-e540-4d57-9a67-af1dbd6e9b6b" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing_9b905524-3c0b-4ea7-9066-c385a4e7bc43" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofAmortizedCostBasisofLoansDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofAmortizedCostBasisofLoansDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofAmortizedCostBasisofLoansDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_d1c30ac5-ef48-4f98-bc92-83b28a448abc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_e36fbc0d-b6ca-4b54-9d3d-5738e9524325" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfFinancingReceivablesPastDueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_d1c30ac5-ef48-4f98-bc92-83b28a448abc" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_e36fbc0d-b6ca-4b54-9d3d-5738e9524325" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoanRestructuringModificationAxis_f3d81930-5f24-4022-8226-f11ecb925f50" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LoanRestructuringModificationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_e36fbc0d-b6ca-4b54-9d3d-5738e9524325" xlink:to="loc_us-gaap_LoanRestructuringModificationAxis_f3d81930-5f24-4022-8226-f11ecb925f50" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoanRestructuringModificationDomain_f3d81930-5f24-4022-8226-f11ecb925f50_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LoanRestructuringModificationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LoanRestructuringModificationAxis_f3d81930-5f24-4022-8226-f11ecb925f50" xlink:to="loc_us-gaap_LoanRestructuringModificationDomain_f3d81930-5f24-4022-8226-f11ecb925f50_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoanRestructuringModificationDomain_76c19bff-77f2-4f45-9dbb-c3b9e4ede8dc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LoanRestructuringModificationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LoanRestructuringModificationAxis_f3d81930-5f24-4022-8226-f11ecb925f50" xlink:to="loc_us-gaap_LoanRestructuringModificationDomain_76c19bff-77f2-4f45-9dbb-c3b9e4ede8dc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentDeferralMember_8d74e3e6-859b-416f-a09a-e543fab8557e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentDeferralMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoanRestructuringModificationDomain_76c19bff-77f2-4f45-9dbb-c3b9e4ede8dc" xlink:to="loc_us-gaap_PaymentDeferralMember_8d74e3e6-859b-416f-a09a-e543fab8557e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_LoanReAmortizationMember_3c173e2d-a739-4754-9ff9-084391279e4e" xlink:href="afrm-20251231.xsd#afrm_LoanReAmortizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoanRestructuringModificationDomain_76c19bff-77f2-4f45-9dbb-c3b9e4ede8dc" xlink:to="loc_afrm_LoanReAmortizationMember_3c173e2d-a739-4754-9ff9-084391279e4e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestModifiedPeriod_0c747299-ad4f-4fc5-a4d4-b2ea67087f36" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestModifiedPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_d1c30ac5-ef48-4f98-bc92-83b28a448abc" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestModifiedPeriod_0c747299-ad4f-4fc5-a4d4-b2ea67087f36" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableModificationToTotalFinancingReceivablesExcludingAccruedInterestPercent_494becec-dc56-448b-90d9-8da25a8c79ef" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableModificationToTotalFinancingReceivablesExcludingAccruedInterestPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_d1c30ac5-ef48-4f98-bc92-83b28a448abc" xlink:to="loc_us-gaap_FinancingReceivableModificationToTotalFinancingReceivablesExcludingAccruedInterestPercent_494becec-dc56-448b-90d9-8da25a8c79ef" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofDelinquencyStatusofLoansDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofDelinquencyStatusofLoansDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofDelinquencyStatusofLoansDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_e93c81c0-8a9a-43a1-9909-b8441d45c095" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_971f9958-9b65-49e2-ac53-0f64d5d1b3e8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfFinancingReceivablesPastDueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_e93c81c0-8a9a-43a1-9909-b8441d45c095" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_971f9958-9b65-49e2-ac53-0f64d5d1b3e8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_8e4994df-6fc0-4465-97a7-7c63618c7dc8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivablesPeriodPastDueAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_971f9958-9b65-49e2-ac53-0f64d5d1b3e8" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_8e4994df-6fc0-4465-97a7-7c63618c7dc8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_8e4994df-6fc0-4465-97a7-7c63618c7dc8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_8e4994df-6fc0-4465-97a7-7c63618c7dc8" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_8e4994df-6fc0-4465-97a7-7c63618c7dc8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_cd642b7a-8f84-49f7-8d45-9d4b2094f3a4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivablesPeriodPastDueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueAxis_8e4994df-6fc0-4465-97a7-7c63618c7dc8" xlink:to="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_cd642b7a-8f84-49f7-8d45-9d4b2094f3a4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancialAsset0To3DaysPastDueMember_1dc4e99b-1c3e-4b68-b0ae-fe9fba7785bf" xlink:href="afrm-20251231.xsd#afrm_FinancialAsset0To3DaysPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_cd642b7a-8f84-49f7-8d45-9d4b2094f3a4" xlink:to="loc_afrm_FinancialAsset0To3DaysPastDueMember_1dc4e99b-1c3e-4b68-b0ae-fe9fba7785bf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancialAsset4To29DaysPastDueMember_73ac56f5-eaca-4035-a57c-44e2bfa921b5" xlink:href="afrm-20251231.xsd#afrm_FinancialAsset4To29DaysPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_cd642b7a-8f84-49f7-8d45-9d4b2094f3a4" xlink:to="loc_afrm_FinancialAsset4To29DaysPastDueMember_73ac56f5-eaca-4035-a57c-44e2bfa921b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivables30To59DaysPastDueMember_ed240724-3dd9-4577-aca4-e8cf56a17b10" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivables30To59DaysPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_cd642b7a-8f84-49f7-8d45-9d4b2094f3a4" xlink:to="loc_us-gaap_FinancingReceivables30To59DaysPastDueMember_ed240724-3dd9-4577-aca4-e8cf56a17b10" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivables60To89DaysPastDueMember_6076fafd-7b1e-4495-ac39-d50bd3f8c8ba" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivables60To89DaysPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_cd642b7a-8f84-49f7-8d45-9d4b2094f3a4" xlink:to="loc_us-gaap_FinancingReceivables60To89DaysPastDueMember_6076fafd-7b1e-4495-ac39-d50bd3f8c8ba" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember_55d54785-cf9b-490a-9e77-d2db19e5462a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivablesPeriodPastDueDomain_cd642b7a-8f84-49f7-8d45-9d4b2094f3a4" xlink:to="loc_us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember_55d54785-cf9b-490a-9e77-d2db19e5462a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoanRestructuringModificationAxis_6f5219f7-bff1-4aac-940f-c1ae54f0e9ee" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LoanRestructuringModificationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivablesPastDueTable_971f9958-9b65-49e2-ac53-0f64d5d1b3e8" xlink:to="loc_us-gaap_LoanRestructuringModificationAxis_6f5219f7-bff1-4aac-940f-c1ae54f0e9ee" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoanRestructuringModificationDomain_6f5219f7-bff1-4aac-940f-c1ae54f0e9ee_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LoanRestructuringModificationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LoanRestructuringModificationAxis_6f5219f7-bff1-4aac-940f-c1ae54f0e9ee" xlink:to="loc_us-gaap_LoanRestructuringModificationDomain_6f5219f7-bff1-4aac-940f-c1ae54f0e9ee_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoanRestructuringModificationDomain_85a3cfc7-ec1f-4875-b064-6c21d22fe629" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LoanRestructuringModificationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LoanRestructuringModificationAxis_6f5219f7-bff1-4aac-940f-c1ae54f0e9ee" xlink:to="loc_us-gaap_LoanRestructuringModificationDomain_85a3cfc7-ec1f-4875-b064-6c21d22fe629" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentDeferralMember_30bfa294-ded8-45e1-ad1d-f4a0aced1214" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentDeferralMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoanRestructuringModificationDomain_85a3cfc7-ec1f-4875-b064-6c21d22fe629" xlink:to="loc_us-gaap_PaymentDeferralMember_30bfa294-ded8-45e1-ad1d-f4a0aced1214" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_LoanReAmortizationMember_fefa2e90-b364-4e32-9e8c-7df88f06c6f7" xlink:href="afrm-20251231.xsd#afrm_LoanReAmortizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LoanRestructuringModificationDomain_85a3cfc7-ec1f-4875-b064-6c21d22fe629" xlink:to="loc_afrm_LoanReAmortizationMember_fefa2e90-b364-4e32-9e8c-7df88f06c6f7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestModifiedPast12Months_149a2920-000b-4d6a-998f-bf1c8818e171" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestModifiedPast12Months"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems_e93c81c0-8a9a-43a1-9909-b8441d45c095" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestModifiedPast12Months_149a2920-000b-4d6a-998f-bf1c8818e171" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsAdditionalInformationDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#BalanceSheetComponentsAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_93321b11-eb62-47ce-9b5e-7ff9e8bbcd37" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_829a6a9e-714a-4c2c-88e2-a1fc1b8142dc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_93321b11-eb62-47ce-9b5e-7ff9e8bbcd37" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_829a6a9e-714a-4c2c-88e2-a1fc1b8142dc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementAssetTypeAxis_cd11e3e6-7ffe-4b8d-b34d-5fae58fbad8b" xlink:href="afrm-20251231.xsd#afrm_CommercialAgreementAssetTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_829a6a9e-714a-4c2c-88e2-a1fc1b8142dc" xlink:to="loc_afrm_CommercialAgreementAssetTypeAxis_cd11e3e6-7ffe-4b8d-b34d-5fae58fbad8b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementAssetTypeDomain_cd11e3e6-7ffe-4b8d-b34d-5fae58fbad8b_default" xlink:href="afrm-20251231.xsd#afrm_CommercialAgreementAssetTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_afrm_CommercialAgreementAssetTypeAxis_cd11e3e6-7ffe-4b8d-b34d-5fae58fbad8b" xlink:to="loc_afrm_CommercialAgreementAssetTypeDomain_cd11e3e6-7ffe-4b8d-b34d-5fae58fbad8b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementAssetTypeDomain_5d7a8caa-a48d-4d82-9878-1e5c2e763eb1" xlink:href="afrm-20251231.xsd#afrm_CommercialAgreementAssetTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_afrm_CommercialAgreementAssetTypeAxis_cd11e3e6-7ffe-4b8d-b34d-5fae58fbad8b" xlink:to="loc_afrm_CommercialAgreementAssetTypeDomain_5d7a8caa-a48d-4d82-9878-1e5c2e763eb1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementAmazonMember_9b2029e7-63c8-45cf-81f0-095d3823e20b" xlink:href="afrm-20251231.xsd#afrm_CommercialAgreementAmazonMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_afrm_CommercialAgreementAssetTypeDomain_5d7a8caa-a48d-4d82-9878-1e5c2e763eb1" xlink:to="loc_afrm_CommercialAgreementAmazonMember_9b2029e7-63c8-45cf-81f0-095d3823e20b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementShopifyMember_32dba6fc-6217-4cc7-b94a-e910b4aaf9d3" xlink:href="afrm-20251231.xsd#afrm_CommercialAgreementShopifyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_afrm_CommercialAgreementAssetTypeDomain_5d7a8caa-a48d-4d82-9878-1e5c2e763eb1" xlink:to="loc_afrm_CommercialAgreementShopifyMember_32dba6fc-6217-4cc7-b94a-e910b4aaf9d3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivable_926431be-1e43-45b2-8f72-956b481c58a8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_93321b11-eb62-47ce-9b5e-7ff9e8bbcd37" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivable_926431be-1e43-45b2-8f72-956b481c58a8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_b193391c-7cbe-477a-b586-dfd7f6ce2161" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Depreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_93321b11-eb62-47ce-9b5e-7ff9e8bbcd37" xlink:to="loc_us-gaap_Depreciation_b193391c-7cbe-477a-b586-dfd7f6ce2161" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfLongLivedAssetsHeldForUse_c20ceea0-9a07-406b-ad2e-4a4cfe56a2ea" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ImpairmentOfLongLivedAssetsHeldForUse"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_93321b11-eb62-47ce-9b5e-7ff9e8bbcd37" xlink:to="loc_us-gaap_ImpairmentOfLongLivedAssetsHeldForUse_c20ceea0-9a07-406b-ad2e-4a4cfe56a2ea" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_dee35cf8-c77c-41d8-8a1b-0bb5362e1cf7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GoodwillImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_93321b11-eb62-47ce-9b5e-7ff9e8bbcd37" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_dee35cf8-c77c-41d8-8a1b-0bb5362e1cf7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_38bfebc0-0e1a-4e67-9f8a-282a7495873e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_93321b11-eb62-47ce-9b5e-7ff9e8bbcd37" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_38bfebc0-0e1a-4e67-9f8a-282a7495873e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill_1df5a2a0-0a15-4480-b3b5-87c038ae2c2e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_93321b11-eb62-47ce-9b5e-7ff9e8bbcd37" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill_1df5a2a0-0a15-4480-b3b5-87c038ae2c2e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementAssetWarrantsVestedAssetRecognized_cf7cb68b-82bb-4198-be1f-b44694097342" xlink:href="afrm-20251231.xsd#afrm_CommercialAgreementAssetWarrantsVestedAssetRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_93321b11-eb62-47ce-9b5e-7ff9e8bbcd37" xlink:to="loc_afrm_CommercialAgreementAssetWarrantsVestedAssetRecognized_cf7cb68b-82bb-4198-be1f-b44694097342" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementAssetAmortizationPeriod_e15154b7-46bf-4822-a5a2-d803973e62f5" xlink:href="afrm-20251231.xsd#afrm_CommercialAgreementAssetAmortizationPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_93321b11-eb62-47ce-9b5e-7ff9e8bbcd37" xlink:to="loc_afrm_CommercialAgreementAssetAmortizationPeriod_e15154b7-46bf-4822-a5a2-d803973e62f5" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AmortizationOfSalesAndMarketingExpense_f7926663-c6e8-4975-9475-88517f794afb" xlink:href="afrm-20251231.xsd#afrm_AmortizationOfSalesAndMarketingExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_93321b11-eb62-47ce-9b5e-7ff9e8bbcd37" xlink:to="loc_afrm_AmortizationOfSalesAndMarketingExpense_f7926663-c6e8-4975-9475-88517f794afb" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementAssetAccumulatedAmortization_45b718be-5842-4f56-a2ef-495757fd2973" xlink:href="afrm-20251231.xsd#afrm_CommercialAgreementAssetAccumulatedAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_93321b11-eb62-47ce-9b5e-7ff9e8bbcd37" xlink:to="loc_afrm_CommercialAgreementAssetAccumulatedAmortization_45b718be-5842-4f56-a2ef-495757fd2973" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementAssetAmortizationPeriodRemainingExpectedBenefitPeriod_1e121366-29bd-4a87-a9ec-030503ba484f" xlink:href="afrm-20251231.xsd#afrm_CommercialAgreementAssetAmortizationPeriodRemainingExpectedBenefitPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_93321b11-eb62-47ce-9b5e-7ff9e8bbcd37" xlink:to="loc_afrm_CommercialAgreementAssetAmortizationPeriodRemainingExpectedBenefitPeriod_1e121366-29bd-4a87-a9ec-030503ba484f" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementAssetAmortizationExpense_996bb6f9-04d7-40a2-b2dd-65c56d459ac6" xlink:href="afrm-20251231.xsd#afrm_CommercialAgreementAssetAmortizationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_93321b11-eb62-47ce-9b5e-7ff9e8bbcd37" xlink:to="loc_afrm_CommercialAgreementAssetAmortizationExpense_996bb6f9-04d7-40a2-b2dd-65c56d459ac6" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementAssetRemainingUsefulLife_86cc8d3d-8515-48b0-b76a-6c18be8bebfa" xlink:href="afrm-20251231.xsd#afrm_CommercialAgreementAssetRemainingUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_93321b11-eb62-47ce-9b5e-7ff9e8bbcd37" xlink:to="loc_afrm_CommercialAgreementAssetRemainingUsefulLife_86cc8d3d-8515-48b0-b76a-6c18be8bebfa" xlink:type="arc" order="12"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsScheduleofPropertyEquipmentandSoftwareNetDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#BalanceSheetComponentsScheduleofPropertyEquipmentandSoftwareNetDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsScheduleofPropertyEquipmentandSoftwareNetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_ea3bcacc-6d22-4cd7-82ab-944406af6144" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_65e2fd51-e459-48ab-80e7-6c07bc49dedd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_ea3bcacc-6d22-4cd7-82ab-944406af6144" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_65e2fd51-e459-48ab-80e7-6c07bc49dedd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_c69d45be-dcc0-4521-a859-38e1666d991b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_65e2fd51-e459-48ab-80e7-6c07bc49dedd" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_c69d45be-dcc0-4521-a859-38e1666d991b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_c69d45be-dcc0-4521-a859-38e1666d991b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_c69d45be-dcc0-4521-a859-38e1666d991b" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_c69d45be-dcc0-4521-a859-38e1666d991b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_ea888321-1254-428b-bd8a-6ca7fa2e99f9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_c69d45be-dcc0-4521-a859-38e1666d991b" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_ea888321-1254-428b-bd8a-6ca7fa2e99f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SoftwareDevelopmentMember_300a900c-19f3-43a5-b779-1b9c3907e274" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SoftwareDevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_ea888321-1254-428b-bd8a-6ca7fa2e99f9" xlink:to="loc_us-gaap_SoftwareDevelopmentMember_300a900c-19f3-43a5-b779-1b9c3907e274" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseholdImprovementsMember_97346eb7-377f-4a6c-a6a6-2d3029746f3d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LeaseholdImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_ea888321-1254-428b-bd8a-6ca7fa2e99f9" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_97346eb7-377f-4a6c-a6a6-2d3029746f3d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComputerEquipmentMember_69372542-8fc5-4476-9a53-3f871c205a18" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ComputerEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_ea888321-1254-428b-bd8a-6ca7fa2e99f9" xlink:to="loc_us-gaap_ComputerEquipmentMember_69372542-8fc5-4476-9a53-3f871c205a18" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FurnitureAndEquipmentMember_b173bb33-3cae-41fa-a1b8-5612bffbe5b9" xlink:href="afrm-20251231.xsd#afrm_FurnitureAndEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_ea888321-1254-428b-bd8a-6ca7fa2e99f9" xlink:to="loc_afrm_FurnitureAndEquipmentMember_b173bb33-3cae-41fa-a1b8-5612bffbe5b9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_b33acb9b-18f3-4d2f-a795-4dee1cf45a93" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_ea3bcacc-6d22-4cd7-82ab-944406af6144" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_b33acb9b-18f3-4d2f-a795-4dee1cf45a93" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_5047619d-121e-4f98-b863-fc7a77a08456" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_ea3bcacc-6d22-4cd7-82ab-944406af6144" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_5047619d-121e-4f98-b863-fc7a77a08456" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_0e3f7576-f846-419e-b4a2-546b8f77fb78" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_ea3bcacc-6d22-4cd7-82ab-944406af6144" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_0e3f7576-f846-419e-b4a2-546b8f77fb78" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsScheduleofIntangibleAssetsDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#BalanceSheetComponentsScheduleofIntangibleAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsScheduleofIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_dbc6e6cb-754e-4284-b0e0-21c06bbae585" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_9fbae4c1-a0e4-4392-bd3d-1684359c7b6b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_dbc6e6cb-754e-4284-b0e0-21c06bbae585" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_9fbae4c1-a0e4-4392-bd3d-1684359c7b6b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_e5e492fc-c388-4b0a-8609-87e6dbfa0e13" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_9fbae4c1-a0e4-4392-bd3d-1684359c7b6b" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_e5e492fc-c388-4b0a-8609-87e6dbfa0e13" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_e5e492fc-c388-4b0a-8609-87e6dbfa0e13_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_e5e492fc-c388-4b0a-8609-87e6dbfa0e13" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_e5e492fc-c388-4b0a-8609-87e6dbfa0e13_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_3449823b-f2e3-40d3-8370-ecce89f4b0c2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_e5e492fc-c388-4b0a-8609-87e6dbfa0e13" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_3449823b-f2e3-40d3-8370-ecce89f4b0c2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_MerchantRelationshipsMember_2246a782-d193-4226-8ddb-638303d5f53a" xlink:href="afrm-20251231.xsd#afrm_MerchantRelationshipsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_3449823b-f2e3-40d3-8370-ecce89f4b0c2" xlink:to="loc_afrm_MerchantRelationshipsMember_2246a782-d193-4226-8ddb-638303d5f53a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DevelopedTechnologyRightsMember_50ff8fcc-4c5f-45d9-89c5-db102e166694" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DevelopedTechnologyRightsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_3449823b-f2e3-40d3-8370-ecce89f4b0c2" xlink:to="loc_us-gaap_DevelopedTechnologyRightsMember_50ff8fcc-4c5f-45d9-89c5-db102e166694" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AssembledWorkforceMember_a72d0f00-a063-4b2f-80a8-6c02ca629d4f" xlink:href="afrm-20251231.xsd#afrm_AssembledWorkforceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_3449823b-f2e3-40d3-8370-ecce89f4b0c2" xlink:to="loc_afrm_AssembledWorkforceMember_a72d0f00-a063-4b2f-80a8-6c02ca629d4f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_TrademarksAndDomainsMember_fc93a213-5086-4a61-a4d2-ba34ae93bc9e" xlink:href="afrm-20251231.xsd#afrm_TrademarksAndDomainsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_3449823b-f2e3-40d3-8370-ecce89f4b0c2" xlink:to="loc_afrm_TrademarksAndDomainsMember_fc93a213-5086-4a61-a4d2-ba34ae93bc9e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_d9ebdc9f-8bf2-42b3-8d18-d82c72656697" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_9fbae4c1-a0e4-4392-bd3d-1684359c7b6b" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_d9ebdc9f-8bf2-42b3-8d18-d82c72656697" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_d9ebdc9f-8bf2-42b3-8d18-d82c72656697_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_d9ebdc9f-8bf2-42b3-8d18-d82c72656697" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_d9ebdc9f-8bf2-42b3-8d18-d82c72656697_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_299d3559-94e1-4153-b00e-e97242e04e24" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_d9ebdc9f-8bf2-42b3-8d18-d82c72656697" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_299d3559-94e1-4153-b00e-e97242e04e24" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_TrademarksLicensesAndDomainsMember_dfdc2ac6-5edd-4e52-adb8-6ad0fc121f57" xlink:href="afrm-20251231.xsd#afrm_TrademarksLicensesAndDomainsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_299d3559-94e1-4153-b00e-e97242e04e24" xlink:to="loc_afrm_TrademarksLicensesAndDomainsMember_dfdc2ac6-5edd-4e52-adb8-6ad0fc121f57" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherIntangibleAssetsMember_f01703cb-01a2-410c-a8ab-302d1d7cbc6b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherIntangibleAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_299d3559-94e1-4153-b00e-e97242e04e24" xlink:to="loc_us-gaap_OtherIntangibleAssetsMember_f01703cb-01a2-410c-a8ab-302d1d7cbc6b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_1d4d06ca-fb5f-4926-b648-972c8528fcc7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_dbc6e6cb-754e-4284-b0e0-21c06bbae585" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_1d4d06ca-fb5f-4926-b648-972c8528fcc7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_3dee86d5-9fb5-481d-9a6a-4a977c241fcc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_dbc6e6cb-754e-4284-b0e0-21c06bbae585" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_3dee86d5-9fb5-481d-9a6a-4a977c241fcc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_8e99ffdc-bc3a-4898-a569-e36dc0eea6d3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_dbc6e6cb-754e-4284-b0e0-21c06bbae585" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_8e99ffdc-bc3a-4898-a569-e36dc0eea6d3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsRemainingAmortizationPeriod1_b41862ba-1d74-4844-b0bc-1b0c2482ecda" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsRemainingAmortizationPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_dbc6e6cb-754e-4284-b0e0-21c06bbae585" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsRemainingAmortizationPeriod1_b41862ba-1d74-4844-b0bc-1b0c2482ecda" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_a8719ed6-8ad5-4a18-a8ce-50032004a705" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_dbc6e6cb-754e-4284-b0e0-21c06bbae585" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_a8719ed6-8ad5-4a18-a8ce-50032004a705" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_d40b085c-88d5-4e95-8dd5-e481943ff7e6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_dbc6e6cb-754e-4284-b0e0-21c06bbae585" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_d40b085c-88d5-4e95-8dd5-e481943ff7e6" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService_cbb47ef6-361e-4d61-8312-6deb98ba5bba" xlink:href="afrm-20251231.xsd#afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_dbc6e6cb-754e-4284-b0e0-21c06bbae585" xlink:to="loc_afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService_cbb47ef6-361e-4d61-8312-6deb98ba5bba" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LeasesAdditionalInformationDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#LeasesAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/LeasesAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_b278de21-6291-47cd-b96a-ff451788d614" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeLeaseDescriptionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_e56b8b32-20d0-478e-bd1f-4682e54ed8e4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeLeaseDescriptionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b278de21-6291-47cd-b96a-ff451788d614" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_e56b8b32-20d0-478e-bd1f-4682e54ed8e4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_a9a98fea-d258-4069-9aed-c20e8c4d9d86" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_e56b8b32-20d0-478e-bd1f-4682e54ed8e4" xlink:to="loc_srt_RangeAxis_a9a98fea-d258-4069-9aed-c20e8c4d9d86" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_a9a98fea-d258-4069-9aed-c20e8c4d9d86_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_a9a98fea-d258-4069-9aed-c20e8c4d9d86" xlink:to="loc_srt_RangeMember_a9a98fea-d258-4069-9aed-c20e8c4d9d86_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_e44a537a-c144-4b2e-994d-c56cd0d1368c" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_a9a98fea-d258-4069-9aed-c20e8c4d9d86" xlink:to="loc_srt_RangeMember_e44a537a-c144-4b2e-994d-c56cd0d1368c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_13a2f75f-51f3-455c-96e5-df5b62bc8b27" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_e44a537a-c144-4b2e-994d-c56cd0d1368c" xlink:to="loc_srt_MinimumMember_13a2f75f-51f3-455c-96e5-df5b62bc8b27" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_8b47227e-f723-4218-8f5a-5388e1daae86" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_e44a537a-c144-4b2e-994d-c56cd0d1368c" xlink:to="loc_srt_MaximumMember_8b47227e-f723-4218-8f5a-5388e1daae86" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_LesseeOperatingLeaseTerminationNoticePeriod_aed8ee1d-ed69-490d-88c9-44a1abfa6231" xlink:href="afrm-20251231.xsd#afrm_LesseeOperatingLeaseTerminationNoticePeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b278de21-6291-47cd-b96a-ff451788d614" xlink:to="loc_afrm_LesseeOperatingLeaseTerminationNoticePeriod_aed8ee1d-ed69-490d-88c9-44a1abfa6231" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseRemainingLeaseTerm_df7c2e4a-d064-46d7-a71b-49ca04922ee5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseRemainingLeaseTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b278de21-6291-47cd-b96a-ff451788d614" xlink:to="loc_us-gaap_LesseeOperatingLeaseRemainingLeaseTerm_df7c2e4a-d064-46d7-a71b-49ca04922ee5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RequiredCollateralAssetsPledgedAsCollateral_32b933a1-bdd1-4cc4-965c-32fc8c256587" xlink:href="afrm-20251231.xsd#afrm_RequiredCollateralAssetsPledgedAsCollateral"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b278de21-6291-47cd-b96a-ff451788d614" xlink:to="loc_afrm_RequiredCollateralAssetsPledgedAsCollateral_32b933a1-bdd1-4cc4-965c-32fc8c256587" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/DebtScheduleofComponentsSecuredandUnsecuredDebtDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#DebtScheduleofComponentsSecuredandUnsecuredDebtDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/DebtScheduleofComponentsSecuredandUnsecuredDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_72fd5fbc-7d46-496b-95bb-77341c779462" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_3f257a1a-3207-4014-bd93-ea13012eedc9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_72fd5fbc-7d46-496b-95bb-77341c779462" xlink:to="loc_us-gaap_DebtInstrumentTable_3f257a1a-3207-4014-bd93-ea13012eedc9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_ad3f2ef2-662b-480a-98a1-baebd71541ac" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_3f257a1a-3207-4014-bd93-ea13012eedc9" xlink:to="loc_us-gaap_CreditFacilityAxis_ad3f2ef2-662b-480a-98a1-baebd71541ac" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_ad3f2ef2-662b-480a-98a1-baebd71541ac_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_ad3f2ef2-662b-480a-98a1-baebd71541ac" xlink:to="loc_us-gaap_CreditFacilityDomain_ad3f2ef2-662b-480a-98a1-baebd71541ac_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_2f0f41c5-eb9b-445d-9a94-83f23cab76b9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_ad3f2ef2-662b-480a-98a1-baebd71541ac" xlink:to="loc_us-gaap_CreditFacilityDomain_2f0f41c5-eb9b-445d-9a94-83f23cab76b9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_USWarehouseFacilitiesMember_4ad626aa-2a9e-42e2-adc0-21b49c490543" xlink:href="afrm-20251231.xsd#afrm_USWarehouseFacilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_2f0f41c5-eb9b-445d-9a94-83f23cab76b9" xlink:to="loc_afrm_USWarehouseFacilitiesMember_4ad626aa-2a9e-42e2-adc0-21b49c490543" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_InternationalWarehouseFacilitiesMember_276d7480-d7a0-4ed1-81d8-a95f548c98ee" xlink:href="afrm-20251231.xsd#afrm_InternationalWarehouseFacilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_2f0f41c5-eb9b-445d-9a94-83f23cab76b9" xlink:to="loc_afrm_InternationalWarehouseFacilitiesMember_276d7480-d7a0-4ed1-81d8-a95f548c98ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_VariableFundingNotesMember_d33dc0a6-7575-40dc-a8f7-914c416d05d7" xlink:href="afrm-20251231.xsd#afrm_VariableFundingNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_2f0f41c5-eb9b-445d-9a94-83f23cab76b9" xlink:to="loc_afrm_VariableFundingNotesMember_d33dc0a6-7575-40dc-a8f7-914c416d05d7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SalesAndRepurchaseAgreementsMember_52af6296-be7b-4e92-bfc0-0ae5fdd41f86" xlink:href="afrm-20251231.xsd#afrm_SalesAndRepurchaseAgreementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_2f0f41c5-eb9b-445d-9a94-83f23cab76b9" xlink:to="loc_afrm_SalesAndRepurchaseAgreementsMember_52af6296-be7b-4e92-bfc0-0ae5fdd41f86" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_37d1d502-6ece-4920-9764-2d1de4a200a6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_2f0f41c5-eb9b-445d-9a94-83f23cab76b9" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_37d1d502-6ece-4920-9764-2d1de4a200a6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_05a05b5b-0f17-469c-908b-d6fb375390b4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_3f257a1a-3207-4014-bd93-ea13012eedc9" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_05a05b5b-0f17-469c-908b-d6fb375390b4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_05a05b5b-0f17-469c-908b-d6fb375390b4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_05a05b5b-0f17-469c-908b-d6fb375390b4" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_05a05b5b-0f17-469c-908b-d6fb375390b4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_d5215da4-4335-4a2e-9e03-ead33bbbe8e8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_05a05b5b-0f17-469c-908b-d6fb375390b4" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_d5215da4-4335-4a2e-9e03-ead33bbbe8e8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_eb4ea10d-22ee-4566-a49c-10d9da6c3b6b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_d5215da4-4335-4a2e-9e03-ead33bbbe8e8" xlink:to="loc_us-gaap_LineOfCreditMember_eb4ea10d-22ee-4566-a49c-10d9da6c3b6b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesPayableOtherPayablesMember_fcfce6b8-f693-4bdf-ab4b-c3fb71114e54" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NotesPayableOtherPayablesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_d5215da4-4335-4a2e-9e03-ead33bbbe8e8" xlink:to="loc_us-gaap_NotesPayableOtherPayablesMember_fcfce6b8-f693-4bdf-ab4b-c3fb71114e54" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebtMember_1a354f8b-1ae6-4baa-9695-cbd60b9003f4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_d5215da4-4335-4a2e-9e03-ead33bbbe8e8" xlink:to="loc_us-gaap_SecuredDebtMember_1a354f8b-1ae6-4baa-9695-cbd60b9003f4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_ed25c1d3-5ad4-4c60-92ac-c87c1eb1cd61" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_d5215da4-4335-4a2e-9e03-ead33bbbe8e8" xlink:to="loc_us-gaap_ConvertibleDebtMember_ed25c1d3-5ad4-4c60-92ac-c87c1eb1cd61" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnsecuredDebtMember_bc48a711-0377-47de-ba5a-e887b3f2a1ff" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_UnsecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_d5215da4-4335-4a2e-9e03-ead33bbbe8e8" xlink:to="loc_us-gaap_UnsecuredDebtMember_bc48a711-0377-47de-ba5a-e887b3f2a1ff" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_5eee896d-bbff-4517-91ec-c4eb5ed46a33" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_3f257a1a-3207-4014-bd93-ea13012eedc9" xlink:to="loc_us-gaap_DebtInstrumentAxis_5eee896d-bbff-4517-91ec-c4eb5ed46a33" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_5eee896d-bbff-4517-91ec-c4eb5ed46a33_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_5eee896d-bbff-4517-91ec-c4eb5ed46a33" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_5eee896d-bbff-4517-91ec-c4eb5ed46a33_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_12a29d2f-066a-4e5e-920c-958752847da4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_5eee896d-bbff-4517-91ec-c4eb5ed46a33" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_12a29d2f-066a-4e5e-920c-958752847da4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FundingDebtMember_b673f713-270c-43c2-92fd-e4d54fd48193" xlink:href="afrm-20251231.xsd#afrm_FundingDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_12a29d2f-066a-4e5e-920c-958752847da4" xlink:to="loc_afrm_FundingDebtMember_b673f713-270c-43c2-92fd-e4d54fd48193" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_NotesIssuedBySecuritizationTrustsMember_80bdfb7c-5f0b-431f-9ce6-9caea1cb0e6c" xlink:href="afrm-20251231.xsd#afrm_NotesIssuedBySecuritizationTrustsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_12a29d2f-066a-4e5e-920c-958752847da4" xlink:to="loc_afrm_NotesIssuedBySecuritizationTrustsMember_80bdfb7c-5f0b-431f-9ce6-9caea1cb0e6c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ConvertibleSeniorNotesDue2026Member_31cacb59-c96f-4df8-8694-1d55ddfa2004" xlink:href="afrm-20251231.xsd#afrm_ConvertibleSeniorNotesDue2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_12a29d2f-066a-4e5e-920c-958752847da4" xlink:to="loc_afrm_ConvertibleSeniorNotesDue2026Member_31cacb59-c96f-4df8-8694-1d55ddfa2004" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ConvertibleSeniorNotesDue2029Member_c50765b0-b43f-44e1-8fa7-592c05509b3e" xlink:href="afrm-20251231.xsd#afrm_ConvertibleSeniorNotesDue2029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_12a29d2f-066a-4e5e-920c-958752847da4" xlink:to="loc_afrm_ConvertibleSeniorNotesDue2029Member_c50765b0-b43f-44e1-8fa7-592c05509b3e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_9d10a96a-7877-4540-8e82-786e68821e44" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_3f257a1a-3207-4014-bd93-ea13012eedc9" xlink:to="loc_srt_RangeAxis_9d10a96a-7877-4540-8e82-786e68821e44" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_9d10a96a-7877-4540-8e82-786e68821e44_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_9d10a96a-7877-4540-8e82-786e68821e44" xlink:to="loc_srt_RangeMember_9d10a96a-7877-4540-8e82-786e68821e44_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_08f52633-92b8-42e5-8dfa-c1bb2a6e8149" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_9d10a96a-7877-4540-8e82-786e68821e44" xlink:to="loc_srt_RangeMember_08f52633-92b8-42e5-8dfa-c1bb2a6e8149" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_e4892a22-45f9-44f6-8c67-e62dae270ab8" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_08f52633-92b8-42e5-8dfa-c1bb2a6e8149" xlink:to="loc_srt_MinimumMember_e4892a22-45f9-44f6-8c67-e62dae270ab8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_50fc1788-08b1-44cb-9ff2-a37ba7458a38" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_08f52633-92b8-42e5-8dfa-c1bb2a6e8149" xlink:to="loc_srt_MaximumMember_50fc1788-08b1-44cb-9ff2-a37ba7458a38" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PledgedStatusAxis_b17d9a72-4b01-4b84-9abd-86975ecab2a8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PledgedStatusAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_3f257a1a-3207-4014-bd93-ea13012eedc9" xlink:to="loc_us-gaap_PledgedStatusAxis_b17d9a72-4b01-4b84-9abd-86975ecab2a8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PledgedStatusDomain_b17d9a72-4b01-4b84-9abd-86975ecab2a8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PledgedStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PledgedStatusAxis_b17d9a72-4b01-4b84-9abd-86975ecab2a8" xlink:to="loc_us-gaap_PledgedStatusDomain_b17d9a72-4b01-4b84-9abd-86975ecab2a8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PledgedStatusDomain_1de3f325-b78d-491c-9432-000699fd8a2b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PledgedStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PledgedStatusAxis_b17d9a72-4b01-4b84-9abd-86975ecab2a8" xlink:to="loc_us-gaap_PledgedStatusDomain_1de3f325-b78d-491c-9432-000699fd8a2b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetPledgedAsCollateralMember_9a3f3141-d0d7-4751-a4bf-486bb2b63f22" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetPledgedAsCollateralMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PledgedStatusDomain_1de3f325-b78d-491c-9432-000699fd8a2b" xlink:to="loc_us-gaap_AssetPledgedAsCollateralMember_9a3f3141-d0d7-4751-a4bf-486bb2b63f22" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtWeightedAverageInterestRate_c0341fc2-64ec-4d97-bec3-d6a2e12d5380" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtWeightedAverageInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_72fd5fbc-7d46-496b-95bb-77341c779462" xlink:to="loc_us-gaap_DebtWeightedAverageInterestRate_c0341fc2-64ec-4d97-bec3-d6a2e12d5380" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityCommitmentFeePercentage_0ec9b78d-ff67-4078-8b78-c4cbfdf470fc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityCommitmentFeePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_72fd5fbc-7d46-496b-95bb-77341c779462" xlink:to="loc_us-gaap_LineOfCreditFacilityCommitmentFeePercentage_0ec9b78d-ff67-4078-8b78-c4cbfdf470fc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_5d798dee-8e26-4b78-b066-5099b8aa4d34" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_72fd5fbc-7d46-496b-95bb-77341c779462" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_5d798dee-8e26-4b78-b066-5099b8aa4d34" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_63031c52-f4c3-4d27-9b6b-6fb0748e2f5a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_72fd5fbc-7d46-496b-95bb-77341c779462" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_63031c52-f4c3-4d27-9b6b-6fb0748e2f5a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_TotalLineOfCreditFacilityMaximumBorrowingCapacityAndDebtInstrumentFaceAmount_d6281176-e2d4-45c6-bd90-83a9281e5576" xlink:href="afrm-20251231.xsd#afrm_TotalLineOfCreditFacilityMaximumBorrowingCapacityAndDebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_72fd5fbc-7d46-496b-95bb-77341c779462" xlink:to="loc_afrm_TotalLineOfCreditFacilityMaximumBorrowingCapacityAndDebtInstrumentFaceAmount_d6281176-e2d4-45c6-bd90-83a9281e5576" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_bbc7c02d-ee7f-4323-a618-1ce55d1b54b6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_72fd5fbc-7d46-496b-95bb-77341c779462" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_bbc7c02d-ee7f-4323-a618-1ce55d1b54b6" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_f1ca70df-1eb9-4290-93ca-5089f8c237ef" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_72fd5fbc-7d46-496b-95bb-77341c779462" xlink:to="loc_us-gaap_LongTermDebt_f1ca70df-1eb9-4290-93ca-5089f8c237ef" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/DebtAdditionalInformationDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#DebtAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/DebtAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_4c2bbcc3-b121-4a6d-b2d6-9c0df37dda08" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_4c2bbcc3-b121-4a6d-b2d6-9c0df37dda08" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_c40e0cd7-611c-40c5-87be-15653ea82ee8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_4c2bbcc3-b121-4a6d-b2d6-9c0df37dda08" xlink:to="loc_us-gaap_CreditFacilityAxis_c40e0cd7-611c-40c5-87be-15653ea82ee8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_c40e0cd7-611c-40c5-87be-15653ea82ee8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_c40e0cd7-611c-40c5-87be-15653ea82ee8" xlink:to="loc_us-gaap_CreditFacilityDomain_c40e0cd7-611c-40c5-87be-15653ea82ee8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_0bb77e38-70ee-4429-90c2-665288e1d570" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_c40e0cd7-611c-40c5-87be-15653ea82ee8" xlink:to="loc_us-gaap_CreditFacilityDomain_0bb77e38-70ee-4429-90c2-665288e1d570" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_66d54eaf-465e-4b52-9aa7-5dbd56514d11" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_0bb77e38-70ee-4429-90c2-665288e1d570" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_66d54eaf-465e-4b52-9aa7-5dbd56514d11" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_VariableRateComponentAxis_2b2d9738-6a71-4601-9a9f-1e0c1d2bb478" xlink:href="afrm-20251231.xsd#afrm_VariableRateComponentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_4c2bbcc3-b121-4a6d-b2d6-9c0df37dda08" xlink:to="loc_afrm_VariableRateComponentAxis_2b2d9738-6a71-4601-9a9f-1e0c1d2bb478" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_VariableRateComponentDomain_2b2d9738-6a71-4601-9a9f-1e0c1d2bb478_default" xlink:href="afrm-20251231.xsd#afrm_VariableRateComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_afrm_VariableRateComponentAxis_2b2d9738-6a71-4601-9a9f-1e0c1d2bb478" xlink:to="loc_afrm_VariableRateComponentDomain_2b2d9738-6a71-4601-9a9f-1e0c1d2bb478_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_VariableRateComponentDomain_3be91007-0e8d-4a60-927a-f737e8fc8f28" xlink:href="afrm-20251231.xsd#afrm_VariableRateComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_afrm_VariableRateComponentAxis_2b2d9738-6a71-4601-9a9f-1e0c1d2bb478" xlink:to="loc_afrm_VariableRateComponentDomain_3be91007-0e8d-4a60-927a-f737e8fc8f28" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalFundsEffectiveSwapRateMember_aa3e8392-ba8a-4772-8f3b-843677ad751c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalFundsEffectiveSwapRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_afrm_VariableRateComponentDomain_3be91007-0e8d-4a60-927a-f737e8fc8f28" xlink:to="loc_us-gaap_FederalFundsEffectiveSwapRateMember_aa3e8392-ba8a-4772-8f3b-843677ad751c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_OneMonthSecuredOvernightFinancingRateSOFRMember_c03f0326-a6b7-4532-8ebf-bc9228bcb206" xlink:href="afrm-20251231.xsd#afrm_OneMonthSecuredOvernightFinancingRateSOFRMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_afrm_VariableRateComponentDomain_3be91007-0e8d-4a60-927a-f737e8fc8f28" xlink:to="loc_afrm_OneMonthSecuredOvernightFinancingRateSOFRMember_c03f0326-a6b7-4532-8ebf-bc9228bcb206" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BaseRateMember_dac6ff2e-f0c9-470f-a4ee-6575cc2c4bb9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BaseRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_afrm_VariableRateComponentDomain_3be91007-0e8d-4a60-927a-f737e8fc8f28" xlink:to="loc_us-gaap_BaseRateMember_dac6ff2e-f0c9-470f-a4ee-6575cc2c4bb9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_e4d25daf-f921-45ae-b618-32b1963d7ed8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_4c2bbcc3-b121-4a6d-b2d6-9c0df37dda08" xlink:to="loc_us-gaap_DebtInstrumentAxis_e4d25daf-f921-45ae-b618-32b1963d7ed8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_e4d25daf-f921-45ae-b618-32b1963d7ed8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_e4d25daf-f921-45ae-b618-32b1963d7ed8" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_e4d25daf-f921-45ae-b618-32b1963d7ed8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_97fdb745-3872-4a77-a052-2200e3a5d6d1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_e4d25daf-f921-45ae-b618-32b1963d7ed8" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_97fdb745-3872-4a77-a052-2200e3a5d6d1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ConvertibleSeniorNotesDue2029Member_38e8e533-20ad-4ad6-a735-244b2cf7f104" xlink:href="afrm-20251231.xsd#afrm_ConvertibleSeniorNotesDue2029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_97fdb745-3872-4a77-a052-2200e3a5d6d1" xlink:to="loc_afrm_ConvertibleSeniorNotesDue2029Member_38e8e533-20ad-4ad6-a735-244b2cf7f104" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ConvertibleSeniorNotesDue2026Member_00de8e96-c502-457f-8556-d7750b0f10f0" xlink:href="afrm-20251231.xsd#afrm_ConvertibleSeniorNotesDue2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_97fdb745-3872-4a77-a052-2200e3a5d6d1" xlink:to="loc_afrm_ConvertibleSeniorNotesDue2026Member_00de8e96-c502-457f-8556-d7750b0f10f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_22115086-c15d-4394-ab91-d39660c1b5e9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_4c2bbcc3-b121-4a6d-b2d6-9c0df37dda08" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_22115086-c15d-4394-ab91-d39660c1b5e9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_22115086-c15d-4394-ab91-d39660c1b5e9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_22115086-c15d-4394-ab91-d39660c1b5e9" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_22115086-c15d-4394-ab91-d39660c1b5e9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_98f8343a-1ee6-4bbb-a945-05d636133142" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_22115086-c15d-4394-ab91-d39660c1b5e9" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_98f8343a-1ee6-4bbb-a945-05d636133142" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_237a2ff5-7f6f-48d7-aa59-b44399d52602" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_98f8343a-1ee6-4bbb-a945-05d636133142" xlink:to="loc_us-gaap_ConvertibleDebtMember_237a2ff5-7f6f-48d7-aa59-b44399d52602" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtInstrumentConversionAxis_57bfe1d8-1d2c-4995-beea-6f25d96ddfb0" xlink:href="afrm-20251231.xsd#afrm_DebtInstrumentConversionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_4c2bbcc3-b121-4a6d-b2d6-9c0df37dda08" xlink:to="loc_afrm_DebtInstrumentConversionAxis_57bfe1d8-1d2c-4995-beea-6f25d96ddfb0" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtInstrumentConversionDomain_57bfe1d8-1d2c-4995-beea-6f25d96ddfb0_default" xlink:href="afrm-20251231.xsd#afrm_DebtInstrumentConversionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_afrm_DebtInstrumentConversionAxis_57bfe1d8-1d2c-4995-beea-6f25d96ddfb0" xlink:to="loc_afrm_DebtInstrumentConversionDomain_57bfe1d8-1d2c-4995-beea-6f25d96ddfb0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtInstrumentConversionDomain_61d04783-a71d-4dfb-a734-d9dd0f25bb20" xlink:href="afrm-20251231.xsd#afrm_DebtInstrumentConversionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_afrm_DebtInstrumentConversionAxis_57bfe1d8-1d2c-4995-beea-6f25d96ddfb0" xlink:to="loc_afrm_DebtInstrumentConversionDomain_61d04783-a71d-4dfb-a734-d9dd0f25bb20" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ConversionPeriodOneMember_ea486c03-7318-4d9d-86ac-3a2420ff4607" xlink:href="afrm-20251231.xsd#afrm_ConversionPeriodOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_afrm_DebtInstrumentConversionDomain_61d04783-a71d-4dfb-a734-d9dd0f25bb20" xlink:to="loc_afrm_ConversionPeriodOneMember_ea486c03-7318-4d9d-86ac-3a2420ff4607" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ConversionPeriodTwoMember_a45a5e84-6948-4c77-94ca-82c4cac54e44" xlink:href="afrm-20251231.xsd#afrm_ConversionPeriodTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_afrm_DebtInstrumentConversionDomain_61d04783-a71d-4dfb-a734-d9dd0f25bb20" xlink:to="loc_afrm_ConversionPeriodTwoMember_a45a5e84-6948-4c77-94ca-82c4cac54e44" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_65342a8b-0f4b-47bb-99f6-a9e06b1abd76" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_65342a8b-0f4b-47bb-99f6-a9e06b1abd76" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_c2925b27-45bb-4e74-9698-9ec4a2ecdfda" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_c2925b27-45bb-4e74-9698-9ec4a2ecdfda" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityCommitmentFeePercentage_a91e026c-7e74-4f9a-a714-66f70c2b8fcd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityCommitmentFeePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_us-gaap_LineOfCreditFacilityCommitmentFeePercentage_a91e026c-7e74-4f9a-a714-66f70c2b8fcd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_bfab0930-402f-4b46-a91e-17d415e32d1b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_us-gaap_LineOfCredit_bfab0930-402f-4b46-a91e-17d415e32d1b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_f88c2837-5f6c-4eb1-a53c-7c031d20e61c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_f88c2837-5f6c-4eb1-a53c-7c031d20e61c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_723655b6-bace-4bab-87d5-4d120dd7215c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_723655b6-bace-4bab-87d5-4d120dd7215c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDebtNetOfIssuanceCosts_9c494db6-e5ea-4d14-a7a5-6070c73c75b0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromDebtNetOfIssuanceCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_us-gaap_ProceedsFromDebtNetOfIssuanceCosts_9c494db6-e5ea-4d14-a7a5-6070c73c75b0" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleConversionRatio1_df672ccb-b7f8-48cb-b2f2-b0119250d05d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentConvertibleConversionRatio1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_us-gaap_DebtInstrumentConvertibleConversionRatio1_df672ccb-b7f8-48cb-b2f2-b0119250d05d" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleConversionPrice1_f49f5af5-0e2f-495d-944b-8a424be561b8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentConvertibleConversionPrice1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_us-gaap_DebtInstrumentConvertibleConversionPrice1_f49f5af5-0e2f-495d-944b-8a424be561b8" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdTradingDays_82025989-39a3-4546-a9d9-ee584421a326" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentConvertibleThresholdTradingDays"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdTradingDays_82025989-39a3-4546-a9d9-ee584421a326" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1_06746bc5-e183-4c5f-bc44-dc15c59c2bd9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1_06746bc5-e183-4c5f-bc44-dc15c59c2bd9" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger_52159610-357a-4915-8792-2412c6cfe4ce" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger_52159610-357a-4915-8792-2412c6cfe4ce" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtInstrumentConvertiblePeriodFollowingThresholdConsecutiveTradingDays_78d83184-907a-43aa-8182-5c2154a49c66" xlink:href="afrm-20251231.xsd#afrm_DebtInstrumentConvertiblePeriodFollowingThresholdConsecutiveTradingDays"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_afrm_DebtInstrumentConvertiblePeriodFollowingThresholdConsecutiveTradingDays_78d83184-907a-43aa-8182-5c2154a49c66" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_MinimumPercentageOfTradingPriceToLastReportedSalePrice_10829fee-cb38-4802-9763-589f03ab83e7" xlink:href="afrm-20251231.xsd#afrm_MinimumPercentageOfTradingPriceToLastReportedSalePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_afrm_MinimumPercentageOfTradingPriceToLastReportedSalePrice_10829fee-cb38-4802-9763-589f03ab83e7" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtInstrumentConvertibleTradingDayObservationPeriod_f38fdb87-8ed2-44e6-a919-b6608f1ef0ad" xlink:href="afrm-20251231.xsd#afrm_DebtInstrumentConvertibleTradingDayObservationPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_afrm_DebtInstrumentConvertibleTradingDayObservationPeriod_f38fdb87-8ed2-44e6-a919-b6608f1ef0ad" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPricePercentage_4fd15787-f16d-4dca-a8ab-5910ad895d6c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentRedemptionPricePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPricePercentage_4fd15787-f16d-4dca-a8ab-5910ad895d6c" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtInstrumentAuthorizedRepurchaseAmount_ca4617d0-ff55-4a6d-9c22-b36d3c66974a" xlink:href="afrm-20251231.xsd#afrm_DebtInstrumentAuthorizedRepurchaseAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_afrm_DebtInstrumentAuthorizedRepurchaseAmount_ca4617d0-ff55-4a6d-9c22-b36d3c66974a" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfConvertibleDebt_efa08c1b-5bd1-45f0-bb8a-dc067472741a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RepaymentsOfConvertibleDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_us-gaap_RepaymentsOfConvertibleDebt_efa08c1b-5bd1-45f0-bb8a-dc067472741a" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtInstrumentDebtRepurchasedDuringThePeriod_bff83f3a-bae7-4fb7-9436-9a8c7a81f36f" xlink:href="afrm-20251231.xsd#afrm_DebtInstrumentDebtRepurchasedDuringThePeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_afrm_DebtInstrumentDebtRepurchasedDuringThePeriod_bff83f3a-bae7-4fb7-9436-9a8c7a81f36f" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtInstrumentRepurchasedCarryingAmount_2329a2f9-964b-4a95-8468-f4f1bb320ae8" xlink:href="afrm-20251231.xsd#afrm_DebtInstrumentRepurchasedCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_afrm_DebtInstrumentRepurchasedCarryingAmount_2329a2f9-964b-4a95-8468-f4f1bb320ae8" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_6d932125-cedb-4528-a490-ac543ce6b1ef" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_6d932125-cedb-4528-a490-ac543ce6b1ef" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_e0cc51a9-c956-4814-a18c-8c141e60ab24" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fb025b18-c819-48cd-ade2-2718b5209e55" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_e0cc51a9-c956-4814-a18c-8c141e60ab24" xlink:type="arc" order="21"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/DebtScheduleofInterestExpenseRecognizedRelatedtotheConvertibleSeniorNotesDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#DebtScheduleofInterestExpenseRecognizedRelatedtotheConvertibleSeniorNotesDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/DebtScheduleofInterestExpenseRecognizedRelatedtotheConvertibleSeniorNotesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_e113b208-454b-4e3b-8836-31e0d0b10b23" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_d3f67a64-58ed-4bf8-a9bc-f6ef17301a98" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_e113b208-454b-4e3b-8836-31e0d0b10b23" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_d3f67a64-58ed-4bf8-a9bc-f6ef17301a98" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_91cd8df8-8f61-4455-82f9-564898f5f739" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_d3f67a64-58ed-4bf8-a9bc-f6ef17301a98" xlink:to="loc_us-gaap_DebtInstrumentAxis_91cd8df8-8f61-4455-82f9-564898f5f739" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_91cd8df8-8f61-4455-82f9-564898f5f739_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_91cd8df8-8f61-4455-82f9-564898f5f739" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_91cd8df8-8f61-4455-82f9-564898f5f739_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_b2154ebc-27e6-4598-b4c8-33c81ef338b2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_91cd8df8-8f61-4455-82f9-564898f5f739" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_b2154ebc-27e6-4598-b4c8-33c81ef338b2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ConvertibleSeniorNotesDue2026Member_bdf2dd52-5ec1-4ffa-bc40-45db001082b5" xlink:href="afrm-20251231.xsd#afrm_ConvertibleSeniorNotesDue2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b2154ebc-27e6-4598-b4c8-33c81ef338b2" xlink:to="loc_afrm_ConvertibleSeniorNotesDue2026Member_bdf2dd52-5ec1-4ffa-bc40-45db001082b5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ConvertibleSeniorNotesDue2029Member_1c83cc6c-ada9-4e45-b19c-bb0f415e3f3d" xlink:href="afrm-20251231.xsd#afrm_ConvertibleSeniorNotesDue2029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b2154ebc-27e6-4598-b4c8-33c81ef338b2" xlink:to="loc_afrm_ConvertibleSeniorNotesDue2029Member_1c83cc6c-ada9-4e45-b19c-bb0f415e3f3d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_8eb09b03-b412-49c8-a3d6-20efc89e9153" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_d3f67a64-58ed-4bf8-a9bc-f6ef17301a98" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_8eb09b03-b412-49c8-a3d6-20efc89e9153" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_8eb09b03-b412-49c8-a3d6-20efc89e9153_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_8eb09b03-b412-49c8-a3d6-20efc89e9153" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_8eb09b03-b412-49c8-a3d6-20efc89e9153_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_77d8e865-f472-45d2-a8ef-b1f23b781533" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_8eb09b03-b412-49c8-a3d6-20efc89e9153" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_77d8e865-f472-45d2-a8ef-b1f23b781533" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_b3c9a2ed-8ab6-46fc-94f1-0bbb4baaf248" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_77d8e865-f472-45d2-a8ef-b1f23b781533" xlink:to="loc_us-gaap_ConvertibleDebtMember_b3c9a2ed-8ab6-46fc-94f1-0bbb4baaf248" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_c264c607-a3dd-4885-898f-acdab9bbe876" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_e113b208-454b-4e3b-8836-31e0d0b10b23" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_c264c607-a3dd-4885-898f-acdab9bbe876" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_36c858fe-93ce-42ef-8b8d-54d157b96078" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_e113b208-454b-4e3b-8836-31e0d0b10b23" xlink:to="loc_us-gaap_InterestExpense_36c858fe-93ce-42ef-8b8d-54d157b96078" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_a6341e67-4efd-4529-ad3a-ed65dc900452" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_e113b208-454b-4e3b-8836-31e0d0b10b23" xlink:to="loc_us-gaap_InterestExpenseDebt_a6341e67-4efd-4529-ad3a-ed65dc900452" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/SecuritizationsandVariableInterestEntitiesScheduleofAggregateCarryingValueofFinancialAssetsandLiabilitiesfromVIEsDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#SecuritizationsandVariableInterestEntitiesScheduleofAggregateCarryingValueofFinancialAssetsandLiabilitiesfromVIEsDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/SecuritizationsandVariableInterestEntitiesScheduleofAggregateCarryingValueofFinancialAssetsandLiabilitiesfromVIEsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_f576bc33-7ec9-4c74-82f3-f9f817cbba91" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_a8253ea1-7bed-4399-ad2b-e1dc5260068c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_f576bc33-7ec9-4c74-82f3-f9f817cbba91" xlink:to="loc_us-gaap_DebtInstrumentTable_a8253ea1-7bed-4399-ad2b-e1dc5260068c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_71cd89dc-f5aa-4668-b068-922820d78792" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_a8253ea1-7bed-4399-ad2b-e1dc5260068c" xlink:to="loc_srt_ConsolidatedEntitiesAxis_71cd89dc-f5aa-4668-b068-922820d78792" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_71cd89dc-f5aa-4668-b068-922820d78792_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_71cd89dc-f5aa-4668-b068-922820d78792" xlink:to="loc_srt_ConsolidatedEntitiesDomain_71cd89dc-f5aa-4668-b068-922820d78792_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_23889de6-bcd4-45b0-8845-421e141e7f3b" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_71cd89dc-f5aa-4668-b068-922820d78792" xlink:to="loc_srt_ConsolidatedEntitiesDomain_23889de6-bcd4-45b0-8845-421e141e7f3b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_6676e495-df3e-40d7-be8c-a1f1c97fa131" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_VariableInterestEntityPrimaryBeneficiaryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_23889de6-bcd4-45b0-8845-421e141e7f3b" xlink:to="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_6676e495-df3e-40d7-be8c-a1f1c97fa131" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_8c981734-7721-4c27-bd46-6671902c46d0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_a8253ea1-7bed-4399-ad2b-e1dc5260068c" xlink:to="loc_us-gaap_CreditFacilityAxis_8c981734-7721-4c27-bd46-6671902c46d0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_8c981734-7721-4c27-bd46-6671902c46d0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_8c981734-7721-4c27-bd46-6671902c46d0" xlink:to="loc_us-gaap_CreditFacilityDomain_8c981734-7721-4c27-bd46-6671902c46d0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_411bdf74-d2c3-420c-85c6-ee553fff8164" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_8c981734-7721-4c27-bd46-6671902c46d0" xlink:to="loc_us-gaap_CreditFacilityDomain_411bdf74-d2c3-420c-85c6-ee553fff8164" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_WarehouseCreditFacilityMember_a7e563c9-94a7-4e0c-8ac7-202919866adc" xlink:href="afrm-20251231.xsd#afrm_WarehouseCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_411bdf74-d2c3-420c-85c6-ee553fff8164" xlink:to="loc_afrm_WarehouseCreditFacilityMember_a7e563c9-94a7-4e0c-8ac7-202919866adc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SecuritizationMember_ac229069-ab20-43dc-bbf3-401e78fab2e1" xlink:href="afrm-20251231.xsd#afrm_SecuritizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_411bdf74-d2c3-420c-85c6-ee553fff8164" xlink:to="loc_afrm_SecuritizationMember_ac229069-ab20-43dc-bbf3-401e78fab2e1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_NotesIssuedBySecuritizationTrustsMember_c931f6d7-dc34-43c5-8b46-54336768865a" xlink:href="afrm-20251231.xsd#afrm_NotesIssuedBySecuritizationTrustsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_411bdf74-d2c3-420c-85c6-ee553fff8164" xlink:to="loc_afrm_NotesIssuedBySecuritizationTrustsMember_c931f6d7-dc34-43c5-8b46-54336768865a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_decd3ee1-7dc5-4101-8d05-2fd1987dba2c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_a8253ea1-7bed-4399-ad2b-e1dc5260068c" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_decd3ee1-7dc5-4101-8d05-2fd1987dba2c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_decd3ee1-7dc5-4101-8d05-2fd1987dba2c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_decd3ee1-7dc5-4101-8d05-2fd1987dba2c" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_decd3ee1-7dc5-4101-8d05-2fd1987dba2c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_da223158-db7d-4c3c-b24b-78ea2b58310e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_decd3ee1-7dc5-4101-8d05-2fd1987dba2c" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_da223158-db7d-4c3c-b24b-78ea2b58310e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FundingDebtMember_80a27e13-3783-4776-90ab-bc245e2eef79" xlink:href="afrm-20251231.xsd#afrm_FundingDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_da223158-db7d-4c3c-b24b-78ea2b58310e" xlink:to="loc_afrm_FundingDebtMember_80a27e13-3783-4776-90ab-bc245e2eef79" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesPayableOtherPayablesMember_deca9bcc-db4a-458a-9e6f-f83a705c3818" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NotesPayableOtherPayablesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_da223158-db7d-4c3c-b24b-78ea2b58310e" xlink:to="loc_us-gaap_NotesPayableOtherPayablesMember_deca9bcc-db4a-458a-9e6f-f83a705c3818" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_0d44add1-13be-4251-95af-617754365f6a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_f576bc33-7ec9-4c74-82f3-f9f817cbba91" xlink:to="loc_us-gaap_Assets_0d44add1-13be-4251-95af-617754365f6a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_0cfb445a-5172-4adb-8ad5-4fa090dacfac" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_f576bc33-7ec9-4c74-82f3-f9f817cbba91" xlink:to="loc_us-gaap_Liabilities_0cfb445a-5172-4adb-8ad5-4fa090dacfac" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsNet_ac7134d4-23b3-4bb8-acd5-2d0dcd260606" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_f576bc33-7ec9-4c74-82f3-f9f817cbba91" xlink:to="loc_us-gaap_AssetsNet_ac7134d4-23b3-4bb8-acd5-2d0dcd260606" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/SecuritizationsandVariableInterestEntitiesScheduleofVariableInterestEntitiesDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#SecuritizationsandVariableInterestEntitiesScheduleofVariableInterestEntitiesDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/SecuritizationsandVariableInterestEntitiesScheduleofVariableInterestEntitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_a4245179-92c4-43d1-88b6-f2b8bbe0d5e8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_8475a2ad-9cac-440e-ac2d-84d923366c24" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_a4245179-92c4-43d1-88b6-f2b8bbe0d5e8" xlink:to="loc_us-gaap_DebtInstrumentTable_8475a2ad-9cac-440e-ac2d-84d923366c24" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_ba7c912a-6a66-4438-9bb6-b845f430700b" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_8475a2ad-9cac-440e-ac2d-84d923366c24" xlink:to="loc_srt_ConsolidatedEntitiesAxis_ba7c912a-6a66-4438-9bb6-b845f430700b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_ba7c912a-6a66-4438-9bb6-b845f430700b_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_ba7c912a-6a66-4438-9bb6-b845f430700b" xlink:to="loc_srt_ConsolidatedEntitiesDomain_ba7c912a-6a66-4438-9bb6-b845f430700b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_19476621-49c3-4a53-9ff3-8894e9552b54" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_ba7c912a-6a66-4438-9bb6-b845f430700b" xlink:to="loc_srt_ConsolidatedEntitiesDomain_19476621-49c3-4a53-9ff3-8894e9552b54" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember_b374740d-cab9-4fa2-b3d1-a4b93d5f8cd3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_19476621-49c3-4a53-9ff3-8894e9552b54" xlink:to="loc_us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember_b374740d-cab9-4fa2-b3d1-a4b93d5f8cd3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_98b28ce8-af4d-4f68-b0a9-da11f23f2dbb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_8475a2ad-9cac-440e-ac2d-84d923366c24" xlink:to="loc_us-gaap_CreditFacilityAxis_98b28ce8-af4d-4f68-b0a9-da11f23f2dbb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_98b28ce8-af4d-4f68-b0a9-da11f23f2dbb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_98b28ce8-af4d-4f68-b0a9-da11f23f2dbb" xlink:to="loc_us-gaap_CreditFacilityDomain_98b28ce8-af4d-4f68-b0a9-da11f23f2dbb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_7559f921-7341-488d-8a56-d311885b762a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_98b28ce8-af4d-4f68-b0a9-da11f23f2dbb" xlink:to="loc_us-gaap_CreditFacilityDomain_7559f921-7341-488d-8a56-d311885b762a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SecuritizationMember_9ba370c7-9061-473e-b796-d58ecea86a93" xlink:href="afrm-20251231.xsd#afrm_SecuritizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_7559f921-7341-488d-8a56-d311885b762a" xlink:to="loc_afrm_SecuritizationMember_9ba370c7-9061-473e-b796-d58ecea86a93" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ResidualInterestsInStructuredTransactionsMember_ab525e74-2e7e-42b2-bb60-b107a5d05b3d" xlink:href="afrm-20251231.xsd#afrm_ResidualInterestsInStructuredTransactionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_7559f921-7341-488d-8a56-d311885b762a" xlink:to="loc_afrm_ResidualInterestsInStructuredTransactionsMember_ab525e74-2e7e-42b2-bb60-b107a5d05b3d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RiskSharingAssetsMember_1f9c12d6-2092-4806-b915-8d7b6bf34362" xlink:href="afrm-20251231.xsd#afrm_RiskSharingAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_7559f921-7341-488d-8a56-d311885b762a" xlink:to="loc_afrm_RiskSharingAssetsMember_1f9c12d6-2092-4806-b915-8d7b6bf34362" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RiskSharingLiabilitiesMember_439ca16e-0aac-42fc-a02e-f96aabf533d2" xlink:href="afrm-20251231.xsd#afrm_RiskSharingLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_7559f921-7341-488d-8a56-d311885b762a" xlink:to="loc_afrm_RiskSharingLiabilitiesMember_439ca16e-0aac-42fc-a02e-f96aabf533d2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_0e674c71-5bd5-4fa6-b15d-8b21f4fed603" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_a4245179-92c4-43d1-88b6-f2b8bbe0d5e8" xlink:to="loc_us-gaap_Assets_0e674c71-5bd5-4fa6-b15d-8b21f4fed603" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_b90da95d-10ab-4b6b-a499-b513a057513f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_a4245179-92c4-43d1-88b6-f2b8bbe0d5e8" xlink:to="loc_us-gaap_Liabilities_b90da95d-10ab-4b6b-a499-b513a057513f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsNet_ac10b254-11fc-46bc-a786-d87ca71184cd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_a4245179-92c4-43d1-88b6-f2b8bbe0d5e8" xlink:to="loc_us-gaap_AssetsNet_ac10b254-11fc-46bc-a786-d87ca71184cd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount_e623930b-3d34-4175-a4fd-3feb5ad70ef2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_a4245179-92c4-43d1-88b6-f2b8bbe0d5e8" xlink:to="loc_us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount_e623930b-3d34-4175-a4fd-3feb5ad70ef2" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/InvestmentsScheduleofCashandCashEquivalentsandSecuritiesAvailableforSaleDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#InvestmentsScheduleofCashandCashEquivalentsandSecuritiesAvailableforSaleDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/InvestmentsScheduleofCashandCashEquivalentsandSecuritiesAvailableforSaleDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MarketableSecuritiesLineItems_1a538987-5e21-4358-9c56-2b2bc9bfac76" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MarketableSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MarketableSecuritiesTable_42afa69f-86fa-4093-81d5-412fab00dee3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MarketableSecuritiesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_1a538987-5e21-4358-9c56-2b2bc9bfac76" xlink:to="loc_us-gaap_MarketableSecuritiesTable_42afa69f-86fa-4093-81d5-412fab00dee3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_f269a10c-ee32-4b3e-9d06-cd626096b096" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MarketableSecuritiesTable_42afa69f-86fa-4093-81d5-412fab00dee3" xlink:to="loc_us-gaap_FinancialInstrumentAxis_f269a10c-ee32-4b3e-9d06-cd626096b096" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_f269a10c-ee32-4b3e-9d06-cd626096b096_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_f269a10c-ee32-4b3e-9d06-cd626096b096" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_f269a10c-ee32-4b3e-9d06-cd626096b096_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5ecea992-f3c8-4c88-9a58-b5ba657dc308" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_f269a10c-ee32-4b3e-9d06-cd626096b096" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5ecea992-f3c8-4c88-9a58-b5ba657dc308" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsMember_f8c58a59-e121-4f3c-b6d6-b347b207145a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MoneyMarketFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5ecea992-f3c8-4c88-9a58-b5ba657dc308" xlink:to="loc_us-gaap_MoneyMarketFundsMember_f8c58a59-e121-4f3c-b6d6-b347b207145a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AgencySecuritiesMember_c631feb4-c22f-4106-b1ed-1ed687ee7433" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AgencySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5ecea992-f3c8-4c88-9a58-b5ba657dc308" xlink:to="loc_us-gaap_AgencySecuritiesMember_c631feb4-c22f-4106-b1ed-1ed687ee7433" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_32211a3e-8af6-481c-bed2-58620bfb1d9b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5ecea992-f3c8-4c88-9a58-b5ba657dc308" xlink:to="loc_us-gaap_CommercialPaperMember_32211a3e-8af6-481c-bed2-58620bfb1d9b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_8a2bff45-f242-4267-b51c-483853acd9f3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5ecea992-f3c8-4c88-9a58-b5ba657dc308" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_8a2bff45-f242-4267-b51c-483853acd9f3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CertificatesOfDepositMember_5480f2a3-06f0-40e1-92de-971c24a9ad1a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CertificatesOfDepositMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5ecea992-f3c8-4c88-9a58-b5ba657dc308" xlink:to="loc_us-gaap_CertificatesOfDepositMember_5480f2a3-06f0-40e1-92de-971c24a9ad1a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_67532e5a-eae7-4d11-b072-e255e020bea7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CorporateBondSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5ecea992-f3c8-4c88-9a58-b5ba657dc308" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_67532e5a-eae7-4d11-b072-e255e020bea7" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MunicipalBondsMember_9d689a27-29cf-4447-a7a9-35f43548d65a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MunicipalBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5ecea992-f3c8-4c88-9a58-b5ba657dc308" xlink:to="loc_us-gaap_MunicipalBondsMember_9d689a27-29cf-4447-a7a9-35f43548d65a" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_NonUSGovernmentAgenciesDebtSecuritiesMember_f7dcfb6f-cbad-435c-9c9b-54d6640994d2" xlink:href="afrm-20251231.xsd#afrm_NonUSGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5ecea992-f3c8-4c88-9a58-b5ba657dc308" xlink:to="loc_afrm_NonUSGovernmentAgenciesDebtSecuritiesMember_f7dcfb6f-cbad-435c-9c9b-54d6640994d2" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SecuritizationNotesReceivableAndCertificatesMember_cf30f66a-f450-460d-903d-e69c5d8e24f4" xlink:href="afrm-20251231.xsd#afrm_SecuritizationNotesReceivableAndCertificatesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5ecea992-f3c8-4c88-9a58-b5ba657dc308" xlink:to="loc_afrm_SecuritizationNotesReceivableAndCertificatesMember_cf30f66a-f450-460d-903d-e69c5d8e24f4" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ResidualInterestsInStructuredTransactionsMember_ff270477-0bdd-4670-85d6-18bb70221fb5" xlink:href="afrm-20251231.xsd#afrm_ResidualInterestsInStructuredTransactionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5ecea992-f3c8-4c88-9a58-b5ba657dc308" xlink:to="loc_afrm_ResidualInterestsInStructuredTransactionsMember_ff270477-0bdd-4670-85d6-18bb70221fb5" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDebtSecuritiesMember_9a192551-fd67-4e3a-b739-8333983e9985" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_5ecea992-f3c8-4c88-9a58-b5ba657dc308" xlink:to="loc_us-gaap_OtherDebtSecuritiesMember_9a192551-fd67-4e3a-b739-8333983e9985" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_eab8128f-0d6a-4a2b-b848-e1437f4e29ab" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MarketableSecuritiesTable_42afa69f-86fa-4093-81d5-412fab00dee3" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_eab8128f-0d6a-4a2b-b848-e1437f4e29ab" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_eab8128f-0d6a-4a2b-b848-e1437f4e29ab_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_eab8128f-0d6a-4a2b-b848-e1437f4e29ab" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_eab8128f-0d6a-4a2b-b848-e1437f4e29ab_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_af340b1b-8092-49cc-bb25-6296bd95a294" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_eab8128f-0d6a-4a2b-b848-e1437f4e29ab" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_af340b1b-8092-49cc-bb25-6296bd95a294" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashEquivalentsMember_cbb31168-0a21-4a9c-8c49-a49b947c060b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_af340b1b-8092-49cc-bb25-6296bd95a294" xlink:to="loc_us-gaap_CashEquivalentsMember_cbb31168-0a21-4a9c-8c49-a49b947c060b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PledgedStatusAxis_517c3095-c16c-4781-88d4-c4cf62352e40" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PledgedStatusAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MarketableSecuritiesTable_42afa69f-86fa-4093-81d5-412fab00dee3" xlink:to="loc_us-gaap_PledgedStatusAxis_517c3095-c16c-4781-88d4-c4cf62352e40" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PledgedStatusDomain_517c3095-c16c-4781-88d4-c4cf62352e40_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PledgedStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PledgedStatusAxis_517c3095-c16c-4781-88d4-c4cf62352e40" xlink:to="loc_us-gaap_PledgedStatusDomain_517c3095-c16c-4781-88d4-c4cf62352e40_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PledgedStatusDomain_2f147fca-b51d-4e79-a58d-311e616b71fe" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PledgedStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PledgedStatusAxis_517c3095-c16c-4781-88d4-c4cf62352e40" xlink:to="loc_us-gaap_PledgedStatusDomain_2f147fca-b51d-4e79-a58d-311e616b71fe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetPledgedAsCollateralMember_5b110a37-7aa2-47a4-ae14-0ad4365390f0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetPledgedAsCollateralMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PledgedStatusDomain_2f147fca-b51d-4e79-a58d-311e616b71fe" xlink:to="loc_us-gaap_AssetPledgedAsCollateralMember_5b110a37-7aa2-47a4-ae14-0ad4365390f0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MarketableSecurities_813e22a4-86f0-47ca-8c0f-d89aec499585" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MarketableSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesLineItems_1a538987-5e21-4358-9c56-2b2bc9bfac76" xlink:to="loc_us-gaap_MarketableSecurities_813e22a4-86f0-47ca-8c0f-d89aec499585" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/InvestmentsScheduleofSecuritiesAvailableforSaleatFairValueDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#InvestmentsScheduleofSecuritiesAvailableforSaleatFairValueDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/InvestmentsScheduleofSecuritiesAvailableforSaleatFairValueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_bf338fd7-53c2-49d1-9bdf-9a7294f78c5a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_3f397175-0477-4b75-afd7-928ade8ea16b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_bf338fd7-53c2-49d1-9bdf-9a7294f78c5a" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_3f397175-0477-4b75-afd7-928ade8ea16b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_b2dbf975-acc7-4c30-a7bf-16430353a710" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_3f397175-0477-4b75-afd7-928ade8ea16b" xlink:to="loc_us-gaap_FinancialInstrumentAxis_b2dbf975-acc7-4c30-a7bf-16430353a710" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b2dbf975-acc7-4c30-a7bf-16430353a710_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_b2dbf975-acc7-4c30-a7bf-16430353a710" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b2dbf975-acc7-4c30-a7bf-16430353a710_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b11a8412-187c-4676-bae5-0ef0cd9b3f9b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_b2dbf975-acc7-4c30-a7bf-16430353a710" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b11a8412-187c-4676-bae5-0ef0cd9b3f9b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CertificatesOfDepositMember_f288477a-c641-4a97-9f32-e7adf3d11d60" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CertificatesOfDepositMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b11a8412-187c-4676-bae5-0ef0cd9b3f9b" xlink:to="loc_us-gaap_CertificatesOfDepositMember_f288477a-c641-4a97-9f32-e7adf3d11d60" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_517a4cbb-b7ab-4ce3-8148-e6fd01d670bd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CorporateBondSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b11a8412-187c-4676-bae5-0ef0cd9b3f9b" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_517a4cbb-b7ab-4ce3-8148-e6fd01d670bd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_b119579b-62d9-4bf8-ab80-5dd54e8c02ab" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b11a8412-187c-4676-bae5-0ef0cd9b3f9b" xlink:to="loc_us-gaap_CommercialPaperMember_b119579b-62d9-4bf8-ab80-5dd54e8c02ab" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AgencySecuritiesMember_c5747595-79a7-4da9-8f6a-84f35612ce18" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AgencySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b11a8412-187c-4676-bae5-0ef0cd9b3f9b" xlink:to="loc_us-gaap_AgencySecuritiesMember_c5747595-79a7-4da9-8f6a-84f35612ce18" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MunicipalBondsMember_a0ab7516-57d0-4c49-84ad-991ce8bec1e7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MunicipalBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b11a8412-187c-4676-bae5-0ef0cd9b3f9b" xlink:to="loc_us-gaap_MunicipalBondsMember_a0ab7516-57d0-4c49-84ad-991ce8bec1e7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_NonUSGovernmentAgenciesDebtSecuritiesMember_10f72c45-fad8-4461-9095-ad48feb787d7" xlink:href="afrm-20251231.xsd#afrm_NonUSGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b11a8412-187c-4676-bae5-0ef0cd9b3f9b" xlink:to="loc_afrm_NonUSGovernmentAgenciesDebtSecuritiesMember_10f72c45-fad8-4461-9095-ad48feb787d7" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_55f3fa59-ad3a-4580-8227-e475f99b9a0e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b11a8412-187c-4676-bae5-0ef0cd9b3f9b" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_55f3fa59-ad3a-4580-8227-e475f99b9a0e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SecuritizationNotesReceivableAndCertificatesMember_f254f835-46e3-4b85-8883-5c8456149160" xlink:href="afrm-20251231.xsd#afrm_SecuritizationNotesReceivableAndCertificatesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b11a8412-187c-4676-bae5-0ef0cd9b3f9b" xlink:to="loc_afrm_SecuritizationNotesReceivableAndCertificatesMember_f254f835-46e3-4b85-8883-5c8456149160" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ResidualInterestsInStructuredTransactionsMember_e7ea6286-96f9-48d9-af5f-4af9e2b5021d" xlink:href="afrm-20251231.xsd#afrm_ResidualInterestsInStructuredTransactionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b11a8412-187c-4676-bae5-0ef0cd9b3f9b" xlink:to="loc_afrm_ResidualInterestsInStructuredTransactionsMember_e7ea6286-96f9-48d9-af5f-4af9e2b5021d" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDebtSecuritiesMember_e152c7eb-aeb0-48e3-88c1-628485a35380" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b11a8412-187c-4676-bae5-0ef0cd9b3f9b" xlink:to="loc_us-gaap_OtherDebtSecuritiesMember_e152c7eb-aeb0-48e3-88c1-628485a35380" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AgencyBondsCommercialPaperAndUSGovernmentBondsMember_8c8a2728-f9d6-4a11-a635-ea662d011604" xlink:href="afrm-20251231.xsd#afrm_AgencyBondsCommercialPaperAndUSGovernmentBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_b11a8412-187c-4676-bae5-0ef0cd9b3f9b" xlink:to="loc_afrm_AgencyBondsCommercialPaperAndUSGovernmentBondsMember_8c8a2728-f9d6-4a11-a635-ea662d011604" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_417359d7-8cf3-4d76-b31f-0dd4fdc43c91" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_3f397175-0477-4b75-afd7-928ade8ea16b" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_417359d7-8cf3-4d76-b31f-0dd4fdc43c91" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_417359d7-8cf3-4d76-b31f-0dd4fdc43c91_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_417359d7-8cf3-4d76-b31f-0dd4fdc43c91" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_417359d7-8cf3-4d76-b31f-0dd4fdc43c91_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_4fc7d818-395f-42be-a4a7-1e103d55f8a2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_417359d7-8cf3-4d76-b31f-0dd4fdc43c91" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_4fc7d818-395f-42be-a4a7-1e103d55f8a2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashEquivalentsMember_0ef1b96f-1b75-48cd-bdfa-fe09bab47ded" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_4fc7d818-395f-42be-a4a7-1e103d55f8a2" xlink:to="loc_us-gaap_CashEquivalentsMember_0ef1b96f-1b75-48cd-bdfa-fe09bab47ded" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_OtherReceivablesMember_38bb6c56-7799-4095-826b-0447fe7e2902" xlink:href="afrm-20251231.xsd#afrm_OtherReceivablesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_4fc7d818-395f-42be-a4a7-1e103d55f8a2" xlink:to="loc_afrm_OtherReceivablesMember_38bb6c56-7799-4095-826b-0447fe7e2902" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PledgedStatusAxis_621a2efe-7227-4f43-a0ce-92694310dab6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PledgedStatusAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_3f397175-0477-4b75-afd7-928ade8ea16b" xlink:to="loc_us-gaap_PledgedStatusAxis_621a2efe-7227-4f43-a0ce-92694310dab6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PledgedStatusDomain_621a2efe-7227-4f43-a0ce-92694310dab6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PledgedStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PledgedStatusAxis_621a2efe-7227-4f43-a0ce-92694310dab6" xlink:to="loc_us-gaap_PledgedStatusDomain_621a2efe-7227-4f43-a0ce-92694310dab6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PledgedStatusDomain_f0da7a69-ddc0-4144-b0ad-58453d6cb38d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PledgedStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PledgedStatusAxis_621a2efe-7227-4f43-a0ce-92694310dab6" xlink:to="loc_us-gaap_PledgedStatusDomain_f0da7a69-ddc0-4144-b0ad-58453d6cb38d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetPledgedAsCollateralMember_770fbadc-dd4c-4699-bd50-aaed88a128dd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetPledgedAsCollateralMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PledgedStatusDomain_f0da7a69-ddc0-4144-b0ad-58453d6cb38d" xlink:to="loc_us-gaap_AssetPledgedAsCollateralMember_770fbadc-dd4c-4699-bd50-aaed88a128dd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_1a89eec4-45e1-4235-a414-4a0c7853ebe2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_3f397175-0477-4b75-afd7-928ade8ea16b" xlink:to="loc_us-gaap_DebtInstrumentAxis_1a89eec4-45e1-4235-a414-4a0c7853ebe2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_1a89eec4-45e1-4235-a414-4a0c7853ebe2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_1a89eec4-45e1-4235-a414-4a0c7853ebe2" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_1a89eec4-45e1-4235-a414-4a0c7853ebe2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_244004a1-cdbb-48c8-ae8c-2c1506d3193c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_1a89eec4-45e1-4235-a414-4a0c7853ebe2" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_244004a1-cdbb-48c8-ae8c-2c1506d3193c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AffirmAssetSecuritizationTrust2021Z1And2021Z2NotesMember_d7a1d98f-c329-4a9f-a9b2-2f7bbbb3125e" xlink:href="afrm-20251231.xsd#afrm_AffirmAssetSecuritizationTrust2021Z1And2021Z2NotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_244004a1-cdbb-48c8-ae8c-2c1506d3193c" xlink:to="loc_afrm_AffirmAssetSecuritizationTrust2021Z1And2021Z2NotesMember_d7a1d98f-c329-4a9f-a9b2-2f7bbbb3125e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_0572d0ca-d007-4202-b670-cc01780bcdef" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_3f397175-0477-4b75-afd7-928ade8ea16b" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_0572d0ca-d007-4202-b670-cc01780bcdef" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_0572d0ca-d007-4202-b670-cc01780bcdef_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_0572d0ca-d007-4202-b670-cc01780bcdef" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_0572d0ca-d007-4202-b670-cc01780bcdef_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_8dacfd4a-f93e-48d0-9fcf-545cb25aae66" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_0572d0ca-d007-4202-b670-cc01780bcdef" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_8dacfd4a-f93e-48d0-9fcf-545cb25aae66" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RepurchaseAgreementMember_c7073b65-e526-4b3d-beb7-96eee261a827" xlink:href="afrm-20251231.xsd#afrm_RepurchaseAgreementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_8dacfd4a-f93e-48d0-9fcf-545cb25aae66" xlink:to="loc_afrm_RepurchaseAgreementMember_c7073b65-e526-4b3d-beb7-96eee261a827" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_6a7d422d-9753-459d-9631-50a87bedff12" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_bf338fd7-53c2-49d1-9bdf-9a7294f78c5a" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_6a7d422d-9753-459d-9631-50a87bedff12" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_7b531365-1d4c-4a67-80b1-8f56f5b03957" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_bf338fd7-53c2-49d1-9bdf-9a7294f78c5a" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_7b531365-1d4c-4a67-80b1-8f56f5b03957" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_d9d3cdf0-7814-4d13-8666-4b85708a0f9f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_bf338fd7-53c2-49d1-9bdf-9a7294f78c5a" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_d9d3cdf0-7814-4d13-8666-4b85708a0f9f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest_9de2b02e-ce40-4c31-b311-0380b4649245" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_bf338fd7-53c2-49d1-9bdf-9a7294f78c5a" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest_9de2b02e-ce40-4c31-b311-0380b4649245" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_065669d0-58dd-45dc-a993-cba6bd569118" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_bf338fd7-53c2-49d1-9bdf-9a7294f78c5a" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_065669d0-58dd-45dc-a993-cba6bd569118" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtSecuritiesAvailableForSaleIncludingCashAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019c2514-9188-7079-87e4-aa58c420b670" xlink:href="afrm-20251231.xsd#afrm_DebtSecuritiesAvailableForSaleIncludingCashAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_bf338fd7-53c2-49d1-9bdf-9a7294f78c5a" xlink:to="loc_afrm_DebtSecuritiesAvailableForSaleIncludingCashAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019c2514-9188-7079-87e4-aa58c420b670" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtSecuritiesAvailableForSaleIncludingCashAllowanceForCreditLossExcludingAccruedInterest_019c2514-9188-7bd4-a926-9032dbe4dbbc" xlink:href="afrm-20251231.xsd#afrm_DebtSecuritiesAvailableForSaleIncludingCashAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_bf338fd7-53c2-49d1-9bdf-9a7294f78c5a" xlink:to="loc_afrm_DebtSecuritiesAvailableForSaleIncludingCashAllowanceForCreditLossExcludingAccruedInterest_019c2514-9188-7bd4-a926-9032dbe4dbbc" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtSecuritiesAvailableForSaleIncludingCashExcludingAccruedInterest_019c2514-9188-7b44-887b-aa4abdf5fd02" xlink:href="afrm-20251231.xsd#afrm_DebtSecuritiesAvailableForSaleIncludingCashExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_bf338fd7-53c2-49d1-9bdf-9a7294f78c5a" xlink:to="loc_afrm_DebtSecuritiesAvailableForSaleIncludingCashExcludingAccruedInterest_019c2514-9188-7b44-887b-aa4abdf5fd02" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/InvestmentsScheduleofSecuritiesAvailableforSaleWithUnrealizedLossesDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#InvestmentsScheduleofSecuritiesAvailableforSaleWithUnrealizedLossesDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/InvestmentsScheduleofSecuritiesAvailableforSaleWithUnrealizedLossesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_85a27c0e-6b03-4d71-8847-30ddde19d296" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_cacaba89-770d-4e14-9b75-435371bc7af7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_85a27c0e-6b03-4d71-8847-30ddde19d296" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_cacaba89-770d-4e14-9b75-435371bc7af7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_c3ebd44b-44f9-4924-ac4d-d93022d74d08" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_cacaba89-770d-4e14-9b75-435371bc7af7" xlink:to="loc_us-gaap_FinancialInstrumentAxis_c3ebd44b-44f9-4924-ac4d-d93022d74d08" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_c3ebd44b-44f9-4924-ac4d-d93022d74d08_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_c3ebd44b-44f9-4924-ac4d-d93022d74d08" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_c3ebd44b-44f9-4924-ac4d-d93022d74d08_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_c646fbe9-ca28-459a-b30e-a76b7c8b61be" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_c3ebd44b-44f9-4924-ac4d-d93022d74d08" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_c646fbe9-ca28-459a-b30e-a76b7c8b61be" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CertificatesOfDepositMember_ee1888af-97cb-4735-b373-576788be70ea" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CertificatesOfDepositMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_c646fbe9-ca28-459a-b30e-a76b7c8b61be" xlink:to="loc_us-gaap_CertificatesOfDepositMember_ee1888af-97cb-4735-b373-576788be70ea" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_21772efe-2f43-4d23-89c4-e384b9f53ab6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CorporateBondSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_c646fbe9-ca28-459a-b30e-a76b7c8b61be" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_21772efe-2f43-4d23-89c4-e384b9f53ab6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_43769d4a-953e-460b-8ff1-605ca774e091" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_c646fbe9-ca28-459a-b30e-a76b7c8b61be" xlink:to="loc_us-gaap_CommercialPaperMember_43769d4a-953e-460b-8ff1-605ca774e091" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AgencySecuritiesMember_cacb7574-8819-4a75-8be4-b7bb1a2defd0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AgencySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_c646fbe9-ca28-459a-b30e-a76b7c8b61be" xlink:to="loc_us-gaap_AgencySecuritiesMember_cacb7574-8819-4a75-8be4-b7bb1a2defd0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_NonUSGovernmentAgenciesDebtSecuritiesMember_5a0b1980-abe3-4729-82b8-3435d8d230ee" xlink:href="afrm-20251231.xsd#afrm_NonUSGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_c646fbe9-ca28-459a-b30e-a76b7c8b61be" xlink:to="loc_afrm_NonUSGovernmentAgenciesDebtSecuritiesMember_5a0b1980-abe3-4729-82b8-3435d8d230ee" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_d4c0a472-6160-497e-b185-94b57cdf23bb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_c646fbe9-ca28-459a-b30e-a76b7c8b61be" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_d4c0a472-6160-497e-b185-94b57cdf23bb" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SecuritizationNotesReceivableAndCertificatesMember_0a26dde3-5e62-4318-b52c-c4f0271c55b2" xlink:href="afrm-20251231.xsd#afrm_SecuritizationNotesReceivableAndCertificatesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_c646fbe9-ca28-459a-b30e-a76b7c8b61be" xlink:to="loc_afrm_SecuritizationNotesReceivableAndCertificatesMember_0a26dde3-5e62-4318-b52c-c4f0271c55b2" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_a24a2c8d-2b46-4052-a9f7-512376edce6c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_85a27c0e-6b03-4d71-8847-30ddde19d296" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_a24a2c8d-2b46-4052-a9f7-512376edce6c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_783e181f-8ed8-4000-823b-bef851bf180f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_85a27c0e-6b03-4d71-8847-30ddde19d296" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_783e181f-8ed8-4000-823b-bef851bf180f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_6823573e-1ffe-4db8-ad6b-3a75a0df726f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_85a27c0e-6b03-4d71-8847-30ddde19d296" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_6823573e-1ffe-4db8-ad6b-3a75a0df726f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_28e28317-d7b7-4a7e-977b-412222cb23a6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_85a27c0e-6b03-4d71-8847-30ddde19d296" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_28e28317-d7b7-4a7e-977b-412222cb23a6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_9eb3ae1b-4bed-42b7-badd-f17f77176dd5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_85a27c0e-6b03-4d71-8847-30ddde19d296" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_9eb3ae1b-4bed-42b7-badd-f17f77176dd5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_6d954a03-d58a-45ee-b627-b81a56e98926" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_85a27c0e-6b03-4d71-8847-30ddde19d296" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_6d954a03-d58a-45ee-b627-b81a56e98926" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionNumberOfPositions_560f8a89-bacc-47d4-87de-4e1e9f5e3745" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionNumberOfPositions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_85a27c0e-6b03-4d71-8847-30ddde19d296" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionNumberOfPositions_560f8a89-bacc-47d4-87de-4e1e9f5e3745" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/InvestmentsScheduleofContractualMaturitiesofSecuritiesAvailableforSaleDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#InvestmentsScheduleofContractualMaturitiesofSecuritiesAvailableforSaleDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/InvestmentsScheduleofContractualMaturitiesofSecuritiesAvailableforSaleDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_66a07788-94ec-4674-8e67-29fa377137fa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_20461a5d-c5c4-42eb-82ed-ab120c53c4c0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_66a07788-94ec-4674-8e67-29fa377137fa" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_20461a5d-c5c4-42eb-82ed-ab120c53c4c0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_7f129a48-41a2-4603-b83f-c1c05b0d95bb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_20461a5d-c5c4-42eb-82ed-ab120c53c4c0" xlink:to="loc_us-gaap_FinancialInstrumentAxis_7f129a48-41a2-4603-b83f-c1c05b0d95bb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_7f129a48-41a2-4603-b83f-c1c05b0d95bb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_7f129a48-41a2-4603-b83f-c1c05b0d95bb" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_7f129a48-41a2-4603-b83f-c1c05b0d95bb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0ae7b1b6-46ec-4f19-a1da-46ef83ad68c5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_7f129a48-41a2-4603-b83f-c1c05b0d95bb" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0ae7b1b6-46ec-4f19-a1da-46ef83ad68c5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CertificatesOfDepositMember_fe4d9733-1820-4e04-a279-3dde8808fc30" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CertificatesOfDepositMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0ae7b1b6-46ec-4f19-a1da-46ef83ad68c5" xlink:to="loc_us-gaap_CertificatesOfDepositMember_fe4d9733-1820-4e04-a279-3dde8808fc30" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_cf839580-18c6-4beb-9004-a1d51ab0a477" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CorporateBondSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0ae7b1b6-46ec-4f19-a1da-46ef83ad68c5" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_cf839580-18c6-4beb-9004-a1d51ab0a477" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_3a449d65-a741-4bc2-a20d-c8a330c5d77a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0ae7b1b6-46ec-4f19-a1da-46ef83ad68c5" xlink:to="loc_us-gaap_CommercialPaperMember_3a449d65-a741-4bc2-a20d-c8a330c5d77a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AgencySecuritiesMember_a4dacc0f-b86d-4d9a-afdd-b47be5001bd5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AgencySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0ae7b1b6-46ec-4f19-a1da-46ef83ad68c5" xlink:to="loc_us-gaap_AgencySecuritiesMember_a4dacc0f-b86d-4d9a-afdd-b47be5001bd5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MunicipalBondsMember_f0131ea9-eba0-44c3-8636-693c321f0f22" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MunicipalBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0ae7b1b6-46ec-4f19-a1da-46ef83ad68c5" xlink:to="loc_us-gaap_MunicipalBondsMember_f0131ea9-eba0-44c3-8636-693c321f0f22" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_NonUSGovernmentAgenciesDebtSecuritiesMember_16c11d66-1f70-48f7-8372-f00074d2a497" xlink:href="afrm-20251231.xsd#afrm_NonUSGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0ae7b1b6-46ec-4f19-a1da-46ef83ad68c5" xlink:to="loc_afrm_NonUSGovernmentAgenciesDebtSecuritiesMember_16c11d66-1f70-48f7-8372-f00074d2a497" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_6a8f4eab-3828-4ffd-8c87-1ac5157f903f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0ae7b1b6-46ec-4f19-a1da-46ef83ad68c5" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_6a8f4eab-3828-4ffd-8c87-1ac5157f903f" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SecuritizationNotesReceivableAndCertificatesMember_d7344ca0-afd0-48b8-9a6c-f4d797316c2c" xlink:href="afrm-20251231.xsd#afrm_SecuritizationNotesReceivableAndCertificatesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0ae7b1b6-46ec-4f19-a1da-46ef83ad68c5" xlink:to="loc_afrm_SecuritizationNotesReceivableAndCertificatesMember_d7344ca0-afd0-48b8-9a6c-f4d797316c2c" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ResidualInterestsInStructuredTransactionsMember_52c80cbc-d54c-482f-8cc5-412194ceb049" xlink:href="afrm-20251231.xsd#afrm_ResidualInterestsInStructuredTransactionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0ae7b1b6-46ec-4f19-a1da-46ef83ad68c5" xlink:to="loc_afrm_ResidualInterestsInStructuredTransactionsMember_52c80cbc-d54c-482f-8cc5-412194ceb049" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDebtSecuritiesMember_3f79b785-d9bd-49f4-ae65-6df6afe87588" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0ae7b1b6-46ec-4f19-a1da-46ef83ad68c5" xlink:to="loc_us-gaap_OtherDebtSecuritiesMember_3f79b785-d9bd-49f4-ae65-6df6afe87588" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AgencyBondsCommercialPaperAndUSGovernmentBondsMember_b64baae1-7100-4a78-b9e3-f30ba8932694" xlink:href="afrm-20251231.xsd#afrm_AgencyBondsCommercialPaperAndUSGovernmentBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0ae7b1b6-46ec-4f19-a1da-46ef83ad68c5" xlink:to="loc_afrm_AgencyBondsCommercialPaperAndUSGovernmentBondsMember_b64baae1-7100-4a78-b9e3-f30ba8932694" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_b98f4b3d-47d3-4fd2-aaa9-a3767d3d975f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_20461a5d-c5c4-42eb-82ed-ab120c53c4c0" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_b98f4b3d-47d3-4fd2-aaa9-a3767d3d975f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_b98f4b3d-47d3-4fd2-aaa9-a3767d3d975f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_b98f4b3d-47d3-4fd2-aaa9-a3767d3d975f" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_b98f4b3d-47d3-4fd2-aaa9-a3767d3d975f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_3431717b-9976-496a-a751-d0f1b9d86239" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_b98f4b3d-47d3-4fd2-aaa9-a3767d3d975f" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_3431717b-9976-496a-a751-d0f1b9d86239" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashEquivalentsMember_79036e88-e761-4880-b19a-54f4d181a16f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_3431717b-9976-496a-a751-d0f1b9d86239" xlink:to="loc_us-gaap_CashEquivalentsMember_79036e88-e761-4880-b19a-54f4d181a16f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_e193df10-bb78-40c4-8801-c500320c5a25" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_66a07788-94ec-4674-8e67-29fa377137fa" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_e193df10-bb78-40c4-8801-c500320c5a25" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_d4576e2c-f4fa-4a6b-accf-9526b3fbc007" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_66a07788-94ec-4674-8e67-29fa377137fa" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_d4576e2c-f4fa-4a6b-accf-9526b3fbc007" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_97eea12f-2ac7-4749-8749-b9e2a2bb6bf0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_66a07788-94ec-4674-8e67-29fa377137fa" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_97eea12f-2ac7-4749-8749-b9e2a2bb6bf0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_ab5c84cc-f33c-4f48-b0de-c5e22a9a76b9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_66a07788-94ec-4674-8e67-29fa377137fa" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_ab5c84cc-f33c-4f48-b0de-c5e22a9a76b9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_193288b8-27f8-410a-8315-412204f6a61a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_66a07788-94ec-4674-8e67-29fa377137fa" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_193288b8-27f8-410a-8315-412204f6a61a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_a71668ba-2c78-4c77-b990-b7303f656870" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_66a07788-94ec-4674-8e67-29fa377137fa" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_a71668ba-2c78-4c77-b990-b7303f656870" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtSecuritiesAvailableForSaleIncludingCashMaturityAllocatedAndSingleMaturityDateRollingWithinOneYearAmortizedCost_019c2505-3faf-7f15-ab8f-b0fbaa945aff" xlink:href="afrm-20251231.xsd#afrm_DebtSecuritiesAvailableForSaleIncludingCashMaturityAllocatedAndSingleMaturityDateRollingWithinOneYearAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_66a07788-94ec-4674-8e67-29fa377137fa" xlink:to="loc_afrm_DebtSecuritiesAvailableForSaleIncludingCashMaturityAllocatedAndSingleMaturityDateRollingWithinOneYearAmortizedCost_019c2505-3faf-7f15-ab8f-b0fbaa945aff" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtSecuritiesAvailableForSaleIncludingCashMaturityAllocatedAndSingleMaturityDateRollingWithinOneYearFairValue_019c2505-3faf-7956-a42c-68f785479e4d" xlink:href="afrm-20251231.xsd#afrm_DebtSecuritiesAvailableForSaleIncludingCashMaturityAllocatedAndSingleMaturityDateRollingWithinOneYearFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_66a07788-94ec-4674-8e67-29fa377137fa" xlink:to="loc_afrm_DebtSecuritiesAvailableForSaleIncludingCashMaturityAllocatedAndSingleMaturityDateRollingWithinOneYearFairValue_019c2505-3faf-7956-a42c-68f785479e4d" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtSecuritiesAvailableForSaleIncludingCashMaturityAllocatedAndSingleMaturityDateRollingAfterOneThroughFiveYearsAmortizedCost_019c2505-3faf-70fc-89e4-767d859b0ca1" xlink:href="afrm-20251231.xsd#afrm_DebtSecuritiesAvailableForSaleIncludingCashMaturityAllocatedAndSingleMaturityDateRollingAfterOneThroughFiveYearsAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_66a07788-94ec-4674-8e67-29fa377137fa" xlink:to="loc_afrm_DebtSecuritiesAvailableForSaleIncludingCashMaturityAllocatedAndSingleMaturityDateRollingAfterOneThroughFiveYearsAmortizedCost_019c2505-3faf-70fc-89e4-767d859b0ca1" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtSecuritiesAvailableForSaleIncludingCashMaturityAllocatedAndSingleMaturityDateRollingAfterOneThroughFiveYearsFairValue_019c2505-3faf-7d55-a50c-c7c84846a634" xlink:href="afrm-20251231.xsd#afrm_DebtSecuritiesAvailableForSaleIncludingCashMaturityAllocatedAndSingleMaturityDateRollingAfterOneThroughFiveYearsFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_66a07788-94ec-4674-8e67-29fa377137fa" xlink:to="loc_afrm_DebtSecuritiesAvailableForSaleIncludingCashMaturityAllocatedAndSingleMaturityDateRollingAfterOneThroughFiveYearsFairValue_019c2505-3faf-7d55-a50c-c7c84846a634" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtSecuritiesAvailableForSaleIncludingCashAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019c2505-3faf-71db-8d39-8b0261f76ffd" xlink:href="afrm-20251231.xsd#afrm_DebtSecuritiesAvailableForSaleIncludingCashAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_66a07788-94ec-4674-8e67-29fa377137fa" xlink:to="loc_afrm_DebtSecuritiesAvailableForSaleIncludingCashAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019c2505-3faf-71db-8d39-8b0261f76ffd" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtSecuritiesAvailableForSaleIncludingCashExcludingAccruedInterest_019c2505-3faf-7c2d-bf64-a74a0154dace" xlink:href="afrm-20251231.xsd#afrm_DebtSecuritiesAvailableForSaleIncludingCashExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_66a07788-94ec-4674-8e67-29fa377137fa" xlink:to="loc_afrm_DebtSecuritiesAvailableForSaleIncludingCashExcludingAccruedInterest_019c2505-3faf-7c2d-bf64-a74a0154dace" xlink:type="arc" order="11"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/DerivativeFinancialInstrumentsScheduleofFairValueofDerivativeInstrumentsDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#DerivativeFinancialInstrumentsScheduleofFairValueofDerivativeInstrumentsDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/DerivativeFinancialInstrumentsScheduleofFairValueofDerivativeInstrumentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_f22f47b7-dd01-4662-a645-7188e5cdc742" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_27734aa3-e290-41ef-81dd-c91f8751b44a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_f22f47b7-dd01-4662-a645-7188e5cdc742" xlink:to="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_27734aa3-e290-41ef-81dd-c91f8751b44a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_59ca34f8-6f60-4f24-9609-8b749e5a15fa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_27734aa3-e290-41ef-81dd-c91f8751b44a" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_59ca34f8-6f60-4f24-9609-8b749e5a15fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_59ca34f8-6f60-4f24-9609-8b749e5a15fa_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_59ca34f8-6f60-4f24-9609-8b749e5a15fa" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_59ca34f8-6f60-4f24-9609-8b749e5a15fa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_048960c1-6763-495c-9428-c1573af0f7db" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_59ca34f8-6f60-4f24-9609-8b749e5a15fa" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_048960c1-6763-495c-9428-c1573af0f7db" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateSwapMember_9f2bfca0-909a-4be3-8c53-71d51e54421b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestRateSwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_048960c1-6763-495c-9428-c1573af0f7db" xlink:to="loc_us-gaap_InterestRateSwapMember_9f2bfca0-909a-4be3-8c53-71d51e54421b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_f47c1ee8-90e0-4cec-a865-07ec0826d049" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_048960c1-6763-495c-9428-c1573af0f7db" xlink:to="loc_us-gaap_InterestRateContractMember_f47c1ee8-90e0-4cec-a865-07ec0826d049" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RiskSharingAssetsLiabilitiesMember_e55d5d35-1788-401f-a82d-b86f37819585" xlink:href="afrm-20251231.xsd#afrm_RiskSharingAssetsLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_048960c1-6763-495c-9428-c1573af0f7db" xlink:to="loc_afrm_RiskSharingAssetsLiabilitiesMember_e55d5d35-1788-401f-a82d-b86f37819585" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_6ddc6dd0-6b75-4083-bd00-4d20aa386242" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_27734aa3-e290-41ef-81dd-c91f8751b44a" xlink:to="loc_us-gaap_HedgingDesignationAxis_6ddc6dd0-6b75-4083-bd00-4d20aa386242" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_6ddc6dd0-6b75-4083-bd00-4d20aa386242_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_6ddc6dd0-6b75-4083-bd00-4d20aa386242" xlink:to="loc_us-gaap_HedgingDesignationDomain_6ddc6dd0-6b75-4083-bd00-4d20aa386242_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_e5d2ceed-c9f7-41b5-900b-05425e591c8d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_6ddc6dd0-6b75-4083-bd00-4d20aa386242" xlink:to="loc_us-gaap_HedgingDesignationDomain_e5d2ceed-c9f7-41b5-900b-05425e591c8d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_2ca01f0f-720c-449d-b97c-a811175ed2e0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_e5d2ceed-c9f7-41b5-900b-05425e591c8d" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_2ca01f0f-720c-449d-b97c-a811175ed2e0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_e04cac2c-363d-4267-8797-e6ed553f79c8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_e5d2ceed-c9f7-41b5-900b-05425e591c8d" xlink:to="loc_us-gaap_NondesignatedMember_e04cac2c-363d-4267-8797-e6ed553f79c8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNotionalAmount_414a295b-080e-4ab9-8a45-f92249438f75" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_f22f47b7-dd01-4662-a645-7188e5cdc742" xlink:to="loc_us-gaap_DerivativeNotionalAmount_414a295b-080e-4ab9-8a45-f92249438f75" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_f811e73f-0183-4dde-9d5e-67cab56ac6b2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_f22f47b7-dd01-4662-a645-7188e5cdc742" xlink:to="loc_us-gaap_DerivativeAssets_f811e73f-0183-4dde-9d5e-67cab56ac6b2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_a4594c08-2ebf-4605-9a06-508867f0358d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_f22f47b7-dd01-4662-a645-7188e5cdc742" xlink:to="loc_us-gaap_DerivativeLiabilities_a4594c08-2ebf-4605-9a06-508867f0358d" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/DerivativeFinancialInstrumentsScheduleofImpactoftheCashFlowHedgesonAccumulatedOtherComprehensiveIncomeDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#DerivativeFinancialInstrumentsScheduleofImpactoftheCashFlowHedgesonAccumulatedOtherComprehensiveIncomeDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/DerivativeFinancialInstrumentsScheduleofImpactoftheCashFlowHedgesonAccumulatedOtherComprehensiveIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_7dae2ba7-aac3-46bd-b03f-f75b4cf69b26" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_704dadfd-216d-457d-9e37-56431e8523c3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_7dae2ba7-aac3-46bd-b03f-f75b4cf69b26" xlink:to="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_704dadfd-216d-457d-9e37-56431e8523c3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_0a056d0b-8294-4cfd-9599-3182de6ae3cc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_704dadfd-216d-457d-9e37-56431e8523c3" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_0a056d0b-8294-4cfd-9599-3182de6ae3cc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_0a056d0b-8294-4cfd-9599-3182de6ae3cc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_0a056d0b-8294-4cfd-9599-3182de6ae3cc" xlink:to="loc_us-gaap_EquityComponentDomain_0a056d0b-8294-4cfd-9599-3182de6ae3cc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_7ffc8e92-5d2b-4d49-beaf-a0b86f551da5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_0a056d0b-8294-4cfd-9599-3182de6ae3cc" xlink:to="loc_us-gaap_EquityComponentDomain_7ffc8e92-5d2b-4d49-beaf-a0b86f551da5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_608e00af-52f5-4b0f-b086-5954c9926650" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_7ffc8e92-5d2b-4d49-beaf-a0b86f551da5" xlink:to="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_608e00af-52f5-4b0f-b086-5954c9926650" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_074e8289-df90-4028-84d8-3dd3db3930d9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AOCIAttributableToParentNetOfTaxRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_7dae2ba7-aac3-46bd-b03f-f75b4cf69b26" xlink:to="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_074e8289-df90-4028-84d8-3dd3db3930d9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_041ffc4b-002d-4a9f-9aaf-bc6e22e366df" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_074e8289-df90-4028-84d8-3dd3db3930d9" xlink:to="loc_us-gaap_StockholdersEquity_041ffc4b-002d-4a9f-9aaf-bc6e22e366df" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_f28d760e-bd82-416c-8b8c-e8db01047d28" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_074e8289-df90-4028-84d8-3dd3db3930d9" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_f28d760e-bd82-416c-8b8c-e8db01047d28" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_3f916d05-91c3-4727-a104-1576351855bb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_074e8289-df90-4028-84d8-3dd3db3930d9" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_3f916d05-91c3-4727-a104-1576351855bb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_8c30db44-a51f-417a-aebd-6d0a252022b8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_b63577e4-3b3d-4fa3-9af6-d2dc597563cf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_7dae2ba7-aac3-46bd-b03f-f75b4cf69b26" xlink:to="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_b63577e4-3b3d-4fa3-9af6-d2dc597563cf" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/DerivativeFinancialInstrumentsScheduleofImpactoftheDerivativeInstrumentsonConsolidatedStatementsofOperationsandComprehensiveIncomeLossDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#DerivativeFinancialInstrumentsScheduleofImpactoftheDerivativeInstrumentsonConsolidatedStatementsofOperationsandComprehensiveIncomeLossDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/DerivativeFinancialInstrumentsScheduleofImpactoftheDerivativeInstrumentsonConsolidatedStatementsofOperationsandComprehensiveIncomeLossDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_b253f91b-c814-44e2-900c-e77f23fcce56" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_3f7f452c-efdd-434f-abea-796e12b2bcd3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_b253f91b-c814-44e2-900c-e77f23fcce56" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_3f7f452c-efdd-434f-abea-796e12b2bcd3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_c3c0d4d2-8c6b-466d-ab30-3c74cc53c149" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_3f7f452c-efdd-434f-abea-796e12b2bcd3" xlink:to="loc_us-gaap_HedgingDesignationAxis_c3c0d4d2-8c6b-466d-ab30-3c74cc53c149" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_c3c0d4d2-8c6b-466d-ab30-3c74cc53c149_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_c3c0d4d2-8c6b-466d-ab30-3c74cc53c149" xlink:to="loc_us-gaap_HedgingDesignationDomain_c3c0d4d2-8c6b-466d-ab30-3c74cc53c149_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_192e148a-2bcc-42f5-ba3b-766c2d5bae32" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_c3c0d4d2-8c6b-466d-ab30-3c74cc53c149" xlink:to="loc_us-gaap_HedgingDesignationDomain_192e148a-2bcc-42f5-ba3b-766c2d5bae32" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_8ff9e7e8-3626-4316-95d6-b0fee9067183" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_192e148a-2bcc-42f5-ba3b-766c2d5bae32" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_8ff9e7e8-3626-4316-95d6-b0fee9067183" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_29969a63-3efa-4bb5-9a55-ef7d262ffec4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_192e148a-2bcc-42f5-ba3b-766c2d5bae32" xlink:to="loc_us-gaap_NondesignatedMember_29969a63-3efa-4bb5-9a55-ef7d262ffec4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_0bc137b2-dcff-4c41-a6a4-04e7fd37b0d3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_3f7f452c-efdd-434f-abea-796e12b2bcd3" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_0bc137b2-dcff-4c41-a6a4-04e7fd37b0d3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_0bc137b2-dcff-4c41-a6a4-04e7fd37b0d3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_0bc137b2-dcff-4c41-a6a4-04e7fd37b0d3" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_0bc137b2-dcff-4c41-a6a4-04e7fd37b0d3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_83e5af9b-757c-4f4f-a9fe-9150387347da" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_0bc137b2-dcff-4c41-a6a4-04e7fd37b0d3" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_83e5af9b-757c-4f4f-a9fe-9150387347da" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseMember_6b2a7065-7d19-4bb1-a8f1-a4e0cf02fbf8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_83e5af9b-757c-4f4f-a9fe-9150387347da" xlink:to="loc_us-gaap_InterestExpenseMember_6b2a7065-7d19-4bb1-a8f1-a4e0cf02fbf8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpenseMember_9be5e0e4-3439-4fe1-bd0d-2881f4d4b933" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherNonoperatingIncomeExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_83e5af9b-757c-4f4f-a9fe-9150387347da" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpenseMember_9be5e0e4-3439-4fe1-bd0d-2881f4d4b933" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_GainLossOnSalesOfLoansNetMember_019c0848-8c3b-7eb3-9140-b8c3229c9d83" xlink:href="afrm-20251231.xsd#afrm_GainLossOnSalesOfLoansNetMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_83e5af9b-757c-4f4f-a9fe-9150387347da" xlink:to="loc_afrm_GainLossOnSalesOfLoansNetMember_019c0848-8c3b-7eb3-9140-b8c3229c9d83" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_d4cc0221-7a6e-4feb-b8ad-2c69a5e9fcba" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_b253f91b-c814-44e2-900c-e77f23fcce56" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_d4cc0221-7a6e-4feb-b8ad-2c69a5e9fcba" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet_e6903492-d58c-4e59-8fe4-21ac8c02883a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_b253f91b-c814-44e2-900c-e77f23fcce56" xlink:to="loc_us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet_e6903492-d58c-4e59-8fe4-21ac8c02883a" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#FairValueofFinancialAssetsandLiabilitiesScheduleofAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5ccb012a-450c-4fcd-92de-306b5c7ed143" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9caa4851-2dab-41f6-bb23-845443c98288" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5ccb012a-450c-4fcd-92de-306b5c7ed143" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9caa4851-2dab-41f6-bb23-845443c98288" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_a9a6560c-18a7-4ca4-acd1-46cdbd16fc01" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9caa4851-2dab-41f6-bb23-845443c98288" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_a9a6560c-18a7-4ca4-acd1-46cdbd16fc01" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_a9a6560c-18a7-4ca4-acd1-46cdbd16fc01_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_a9a6560c-18a7-4ca4-acd1-46cdbd16fc01" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_a9a6560c-18a7-4ca4-acd1-46cdbd16fc01_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_bfa70997-320b-47c7-928c-b69e61853392" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_a9a6560c-18a7-4ca4-acd1-46cdbd16fc01" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_bfa70997-320b-47c7-928c-b69e61853392" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_90782765-7ce5-425e-9f26-96ccb0173eb7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_bfa70997-320b-47c7-928c-b69e61853392" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_90782765-7ce5-425e-9f26-96ccb0173eb7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_4a1b4bae-6ac9-4266-9829-44465400f104" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_bfa70997-320b-47c7-928c-b69e61853392" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_4a1b4bae-6ac9-4266-9829-44465400f104" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_38c495e6-85b1-4e3f-9259-631557c04447" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_bfa70997-320b-47c7-928c-b69e61853392" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_38c495e6-85b1-4e3f-9259-631557c04447" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAxis_6e259093-b50d-4f40-89d9-86172cce03f8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9caa4851-2dab-41f6-bb23-845443c98288" xlink:to="loc_us-gaap_CashAndCashEquivalentsAxis_6e259093-b50d-4f40-89d9-86172cce03f8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_6e259093-b50d-4f40-89d9-86172cce03f8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_6e259093-b50d-4f40-89d9-86172cce03f8" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_6e259093-b50d-4f40-89d9-86172cce03f8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_d3abfd5c-d313-4f26-b817-b4f1bca3fb94" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_6e259093-b50d-4f40-89d9-86172cce03f8" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_d3abfd5c-d313-4f26-b817-b4f1bca3fb94" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsMember_c71de438-4c64-4087-936b-022739602c23" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MoneyMarketFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_d3abfd5c-d313-4f26-b817-b4f1bca3fb94" xlink:to="loc_us-gaap_MoneyMarketFundsMember_c71de438-4c64-4087-936b-022739602c23" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_7744a706-0f14-48c4-bbb3-43cb75a3eb31" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_d3abfd5c-d313-4f26-b817-b4f1bca3fb94" xlink:to="loc_us-gaap_CommercialPaperMember_7744a706-0f14-48c4-bbb3-43cb75a3eb31" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AgencySecuritiesMember_53069bc0-fd5a-49d3-b9eb-55b80865bfa0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AgencySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_d3abfd5c-d313-4f26-b817-b4f1bca3fb94" xlink:to="loc_us-gaap_AgencySecuritiesMember_53069bc0-fd5a-49d3-b9eb-55b80865bfa0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_ec36ecc8-6cda-4413-8e90-cf9601bad036" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_d3abfd5c-d313-4f26-b817-b4f1bca3fb94" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_ec36ecc8-6cda-4413-8e90-cf9601bad036" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_835a311d-056a-4f69-b9f7-80f6dcb2a6fc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9caa4851-2dab-41f6-bb23-845443c98288" xlink:to="loc_us-gaap_FinancialInstrumentAxis_835a311d-056a-4f69-b9f7-80f6dcb2a6fc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_835a311d-056a-4f69-b9f7-80f6dcb2a6fc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_835a311d-056a-4f69-b9f7-80f6dcb2a6fc" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_835a311d-056a-4f69-b9f7-80f6dcb2a6fc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_7a888b2e-18f0-40f3-8022-ecb244b6153e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_835a311d-056a-4f69-b9f7-80f6dcb2a6fc" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_7a888b2e-18f0-40f3-8022-ecb244b6153e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CertificatesOfDepositMember_9eba68d5-e36b-42f9-a39e-aca76dc2b689" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CertificatesOfDepositMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_7a888b2e-18f0-40f3-8022-ecb244b6153e" xlink:to="loc_us-gaap_CertificatesOfDepositMember_9eba68d5-e36b-42f9-a39e-aca76dc2b689" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_a217791a-eb1d-4568-9305-dfd160d3fecc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CorporateBondSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_7a888b2e-18f0-40f3-8022-ecb244b6153e" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_a217791a-eb1d-4568-9305-dfd160d3fecc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_019c24fe-3a2d-7696-a4e3-90bb79888a45" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_7a888b2e-18f0-40f3-8022-ecb244b6153e" xlink:to="loc_us-gaap_CommercialPaperMember_019c24fe-3a2d-7696-a4e3-90bb79888a45" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AgencySecuritiesMember_019c24fe-8803-7999-9454-d1733bcbdf38" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AgencySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_7a888b2e-18f0-40f3-8022-ecb244b6153e" xlink:to="loc_us-gaap_AgencySecuritiesMember_019c24fe-8803-7999-9454-d1733bcbdf38" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MunicipalBondsMember_51bb1f10-be97-44b5-83ea-bed02715e603" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MunicipalBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_7a888b2e-18f0-40f3-8022-ecb244b6153e" xlink:to="loc_us-gaap_MunicipalBondsMember_51bb1f10-be97-44b5-83ea-bed02715e603" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignGovernmentDebtSecuritiesMember_019bec64-d469-7b60-b0a7-60279637d59e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ForeignGovernmentDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_7a888b2e-18f0-40f3-8022-ecb244b6153e" xlink:to="loc_us-gaap_ForeignGovernmentDebtSecuritiesMember_019bec64-d469-7b60-b0a7-60279637d59e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_019c2500-e710-7aad-9197-b75572424776" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_7a888b2e-18f0-40f3-8022-ecb244b6153e" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_019c2500-e710-7aad-9197-b75572424776" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SecuritizationNotesReceivableAndCertificatesMember_100691a3-a26c-4a63-9f0f-b5119a71cc30" xlink:href="afrm-20251231.xsd#afrm_SecuritizationNotesReceivableAndCertificatesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_7a888b2e-18f0-40f3-8022-ecb244b6153e" xlink:to="loc_afrm_SecuritizationNotesReceivableAndCertificatesMember_100691a3-a26c-4a63-9f0f-b5119a71cc30" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ResidualInterestsInStructuredTransactionsMember_b4d0d545-37c9-45e4-9f37-35e0460bde0a" xlink:href="afrm-20251231.xsd#afrm_ResidualInterestsInStructuredTransactionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_7a888b2e-18f0-40f3-8022-ecb244b6153e" xlink:to="loc_afrm_ResidualInterestsInStructuredTransactionsMember_b4d0d545-37c9-45e4-9f37-35e0460bde0a" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDebtSecuritiesMember_28aaec8f-6789-4cf2-bccc-4da66ff0afeb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_7a888b2e-18f0-40f3-8022-ecb244b6153e" xlink:to="loc_us-gaap_OtherDebtSecuritiesMember_28aaec8f-6789-4cf2-bccc-4da66ff0afeb" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_019c1047-67c5-7774-bc72-c9ff633c3862" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9caa4851-2dab-41f6-bb23-845443c98288" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_019c1047-67c5-7774-bc72-c9ff633c3862" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019c1047-67c5-7774-bc72-c9ff633c3862_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019c1047-67c5-7774-bc72-c9ff633c3862" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019c1047-67c5-7774-bc72-c9ff633c3862_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_019c1047-67c5-78a3-91c0-4397055272d1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_019c1047-67c5-7774-bc72-c9ff633c3862" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_019c1047-67c5-78a3-91c0-4397055272d1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_019c1047-84bf-7f04-b663-16863f37fdb1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_019c1047-67c5-78a3-91c0-4397055272d1" xlink:to="loc_us-gaap_InterestRateContractMember_019c1047-84bf-7f04-b663-16863f37fdb1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_725d0f24-630c-474e-9a60-1a9fbcce1661" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5ccb012a-450c-4fcd-92de-306b5c7ed143" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_725d0f24-630c-474e-9a60-1a9fbcce1661" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_f5a9d420-a428-4346-bc8d-7a105e0abcdc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5ccb012a-450c-4fcd-92de-306b5c7ed143" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_f5a9d420-a428-4346-bc8d-7a105e0abcdc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingAsset_14294211-c03f-4b01-8b41-7297b0a5767d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ServicingAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5ccb012a-450c-4fcd-92de-306b5c7ed143" xlink:to="loc_us-gaap_ServicingAsset_14294211-c03f-4b01-8b41-7297b0a5767d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_e42add71-a3ee-400b-b5bd-270a4c2fe287" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5ccb012a-450c-4fcd-92de-306b5c7ed143" xlink:to="loc_us-gaap_DerivativeAssets_e42add71-a3ee-400b-b5bd-270a4c2fe287" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RiskSharingAsset_f3bdf49f-b35b-419d-8a5a-694ce4a759eb" xlink:href="afrm-20251231.xsd#afrm_RiskSharingAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5ccb012a-450c-4fcd-92de-306b5c7ed143" xlink:to="loc_afrm_RiskSharingAsset_f3bdf49f-b35b-419d-8a5a-694ce4a759eb" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_3ceae747-d851-4a49-98c3-b12c86684ff0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5ccb012a-450c-4fcd-92de-306b5c7ed143" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_3ceae747-d851-4a49-98c3-b12c86684ff0" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingLiabilityAtFairValueAmount_a3337294-caac-4245-b221-64d321050fba" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ServicingLiabilityAtFairValueAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5ccb012a-450c-4fcd-92de-306b5c7ed143" xlink:to="loc_us-gaap_ServicingLiabilityAtFairValueAmount_a3337294-caac-4245-b221-64d321050fba" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_PerformanceFeeLiabilityFairValueDisclosure_a208a9ba-f75f-4c97-a238-bd2124d50a8e" xlink:href="afrm-20251231.xsd#afrm_PerformanceFeeLiabilityFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5ccb012a-450c-4fcd-92de-306b5c7ed143" xlink:to="loc_afrm_PerformanceFeeLiabilityFairValueDisclosure_a208a9ba-f75f-4c97-a238-bd2124d50a8e" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementProfitShareLiabilityFairValueDisclosure_23ef4bdf-fd48-471d-9250-e1e94fabbec1" xlink:href="afrm-20251231.xsd#afrm_CommercialAgreementProfitShareLiabilityFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5ccb012a-450c-4fcd-92de-306b5c7ed143" xlink:to="loc_afrm_CommercialAgreementProfitShareLiabilityFairValueDisclosure_23ef4bdf-fd48-471d-9250-e1e94fabbec1" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RiskSharingLiability_a20575b0-ec7a-42a5-a8d9-2b564630eac3" xlink:href="afrm-20251231.xsd#afrm_RiskSharingLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5ccb012a-450c-4fcd-92de-306b5c7ed143" xlink:to="loc_afrm_RiskSharingLiability_a20575b0-ec7a-42a5-a8d9-2b564630eac3" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_5cdb81c7-cffc-487d-85ad-6ef33a5c5c90" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5ccb012a-450c-4fcd-92de-306b5c7ed143" xlink:to="loc_us-gaap_DerivativeLiabilities_5cdb81c7-cffc-487d-85ad-6ef33a5c5c90" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_7d5fcd93-e4ea-4b3f-a500-41e4f5e71e0d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5ccb012a-450c-4fcd-92de-306b5c7ed143" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosure_7d5fcd93-e4ea-4b3f-a500-41e4f5e71e0d" xlink:type="arc" order="11"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesAdditionalInformationDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#FairValueofFinancialAssetsandLiabilitiesAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_7b4d9f56-f2e8-4edb-a781-987e21257b90" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_28ed33b8-6e21-49fa-b798-53ff7e955701" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_7b4d9f56-f2e8-4edb-a781-987e21257b90" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_28ed33b8-6e21-49fa-b798-53ff7e955701" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByLiabilityClassAxis_b1396d03-c265-49dc-8001-359e41195ab9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByLiabilityClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_28ed33b8-6e21-49fa-b798-53ff7e955701" xlink:to="loc_us-gaap_FairValueByLiabilityClassAxis_b1396d03-c265-49dc-8001-359e41195ab9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_b1396d03-c265-49dc-8001-359e41195ab9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_b1396d03-c265-49dc-8001-359e41195ab9" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_b1396d03-c265-49dc-8001-359e41195ab9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_61e4d1e3-5f3b-4a24-8a69-4e8147b82725" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_b1396d03-c265-49dc-8001-359e41195ab9" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_61e4d1e3-5f3b-4a24-8a69-4e8147b82725" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SeniorNotesAndResidualTrustCertificatesMember_aadfb670-3b69-41e3-837b-185320dabf66" xlink:href="afrm-20251231.xsd#afrm_SeniorNotesAndResidualTrustCertificatesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_61e4d1e3-5f3b-4a24-8a69-4e8147b82725" xlink:to="loc_afrm_SeniorNotesAndResidualTrustCertificatesMember_aadfb670-3b69-41e3-837b-185320dabf66" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ResidualInterestsInStructuredTransactionsMember_7273458a-972e-4399-a3df-15ddea2dd24d" xlink:href="afrm-20251231.xsd#afrm_ResidualInterestsInStructuredTransactionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_61e4d1e3-5f3b-4a24-8a69-4e8147b82725" xlink:to="loc_afrm_ResidualInterestsInStructuredTransactionsMember_7273458a-972e-4399-a3df-15ddea2dd24d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_LoansSoldContinuingInvolvementWithTransferredFinancialAssetsPrincipalAmountOutstanding_c7747198-adfe-4a38-8855-1293fa86a6ae" xlink:href="afrm-20251231.xsd#afrm_LoansSoldContinuingInvolvementWithTransferredFinancialAssetsPrincipalAmountOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_7b4d9f56-f2e8-4edb-a781-987e21257b90" xlink:to="loc_afrm_LoansSoldContinuingInvolvementWithTransferredFinancialAssetsPrincipalAmountOutstanding_c7747198-adfe-4a38-8855-1293fa86a6ae" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContinuingInvolvementWithTransferredFinancialAssetsPrincipalAmountOutstanding_4db19a00-223b-4b4f-9f13-0d2fdd8991b0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContinuingInvolvementWithTransferredFinancialAssetsPrincipalAmountOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_7b4d9f56-f2e8-4edb-a781-987e21257b90" xlink:to="loc_us-gaap_ContinuingInvolvementWithTransferredFinancialAssetsPrincipalAmountOutstanding_4db19a00-223b-4b4f-9f13-0d2fdd8991b0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets_04409653-6365-484f-8f1e-9c130af5f131" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_7b4d9f56-f2e8-4edb-a781-987e21257b90" xlink:to="loc_us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets_04409653-6365-484f-8f1e-9c130af5f131" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingAsset_cae13591-fa78-4df1-bf0f-d6216f774889" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ServicingAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_7b4d9f56-f2e8-4edb-a781-987e21257b90" xlink:to="loc_us-gaap_ServicingAsset_cae13591-fa78-4df1-bf0f-d6216f774889" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_81866082-bab1-4b64-a2f2-975ea4161945" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_7b4d9f56-f2e8-4edb-a781-987e21257b90" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_81866082-bab1-4b64-a2f2-975ea4161945" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_VariableInterestEntityNotPrimaryBeneficiaryRequiredEconomicRiskRetention_fc2bdf64-588b-42d5-9576-5663b4cc9af8" xlink:href="afrm-20251231.xsd#afrm_VariableInterestEntityNotPrimaryBeneficiaryRequiredEconomicRiskRetention"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_7b4d9f56-f2e8-4edb-a781-987e21257b90" xlink:to="loc_afrm_VariableInterestEntityNotPrimaryBeneficiaryRequiredEconomicRiskRetention_fc2bdf64-588b-42d5-9576-5663b4cc9af8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueRecurringBasisUnobservableInputReconciliationLiabilityGainLossStatementOfOtherComprehensiveIncomeExtensibleList_c5b86149-37ae-424e-be09-9146dbd060a5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueRecurringBasisUnobservableInputReconciliationLiabilityGainLossStatementOfOtherComprehensiveIncomeExtensibleList"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_7b4d9f56-f2e8-4edb-a781-987e21257b90" xlink:to="loc_us-gaap_FairValueRecurringBasisUnobservableInputReconciliationLiabilityGainLossStatementOfOtherComprehensiveIncomeExtensibleList_c5b86149-37ae-424e-be09-9146dbd060a5" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofServicingAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofServicingAssetsandLiabilitiesDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofServicingAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_83b0cb4f-7374-4d2c-b80a-849b5d29f098" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_fff5a534-52c3-4b91-a15d-7c930e909fc2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_83b0cb4f-7374-4d2c-b80a-849b5d29f098" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_fff5a534-52c3-4b91-a15d-7c930e909fc2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_fc7fd810-8577-44f4-9caa-9328021620ad" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_fff5a534-52c3-4b91-a15d-7c930e909fc2" xlink:to="loc_srt_RangeAxis_fc7fd810-8577-44f4-9caa-9328021620ad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_fc7fd810-8577-44f4-9caa-9328021620ad_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_fc7fd810-8577-44f4-9caa-9328021620ad" xlink:to="loc_srt_RangeMember_fc7fd810-8577-44f4-9caa-9328021620ad_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_037ef697-7d26-483f-ab0c-992f2c4f340c" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_fc7fd810-8577-44f4-9caa-9328021620ad" xlink:to="loc_srt_RangeMember_037ef697-7d26-483f-ab0c-992f2c4f340c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_030d4a87-f8f6-4f47-8509-3069887b35cd" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_037ef697-7d26-483f-ab0c-992f2c4f340c" xlink:to="loc_srt_MinimumMember_030d4a87-f8f6-4f47-8509-3069887b35cd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_fd9d02a7-fbb9-48e1-8ff7-47cd5589ef02" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_037ef697-7d26-483f-ab0c-992f2c4f340c" xlink:to="loc_srt_MaximumMember_fd9d02a7-fbb9-48e1-8ff7-47cd5589ef02" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_WeightedAverageMember_f0e1f91e-b4bb-4a6d-b1ec-b63e3fe3c690" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_WeightedAverageMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_037ef697-7d26-483f-ab0c-992f2c4f340c" xlink:to="loc_srt_WeightedAverageMember_f0e1f91e-b4bb-4a6d-b1ec-b63e3fe3c690" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_69ec9557-6e80-4243-8402-b8a0ff0daf64" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_fff5a534-52c3-4b91-a15d-7c930e909fc2" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_69ec9557-6e80-4243-8402-b8a0ff0daf64" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_69ec9557-6e80-4243-8402-b8a0ff0daf64_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_69ec9557-6e80-4243-8402-b8a0ff0daf64" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_69ec9557-6e80-4243-8402-b8a0ff0daf64_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_dd965c9f-0c29-4f39-8662-5088d1959fa9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_69ec9557-6e80-4243-8402-b8a0ff0daf64" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_dd965c9f-0c29-4f39-8662-5088d1959fa9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputDiscountRateMember_b70c9126-1279-47aa-8811-b18443fe29c6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputDiscountRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_dd965c9f-0c29-4f39-8662-5088d1959fa9" xlink:to="loc_us-gaap_MeasurementInputDiscountRateMember_b70c9126-1279-47aa-8811-b18443fe29c6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_MeasurementInputAdequateCompensationMember_de252353-2a97-4e3b-89e0-cf68aa92d027" xlink:href="afrm-20251231.xsd#afrm_MeasurementInputAdequateCompensationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_dd965c9f-0c29-4f39-8662-5088d1959fa9" xlink:to="loc_afrm_MeasurementInputAdequateCompensationMember_de252353-2a97-4e3b-89e0-cf68aa92d027" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputDefaultRateMember_43bcffc8-26de-451c-868c-29936bbc4106" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputDefaultRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_dd965c9f-0c29-4f39-8662-5088d1959fa9" xlink:to="loc_us-gaap_MeasurementInputDefaultRateMember_43bcffc8-26de-451c-868c-29936bbc4106" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingAssetMeasurementInput_e1051704-bb01-46b3-9604-81105c543593" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ServicingAssetMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_83b0cb4f-7374-4d2c-b80a-849b5d29f098" xlink:to="loc_us-gaap_ServicingAssetMeasurementInput_e1051704-bb01-46b3-9604-81105c543593" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingLiabilityMeasurementInput_0d0573b5-9d90-413d-af67-08a19e639e51" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ServicingLiabilityMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_83b0cb4f-7374-4d2c-b80a-849b5d29f098" xlink:to="loc_us-gaap_ServicingLiabilityMeasurementInput_0d0573b5-9d90-413d-af67-08a19e639e51" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofServicingAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofServicingAssetsandLiabilitiesDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofServicingAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_1caa71b0-ad76-4dd3-99d1-7e5640796125" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_a820de36-dd66-41f7-8434-9289d6c31c6b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_1caa71b0-ad76-4dd3-99d1-7e5640796125" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_a820de36-dd66-41f7-8434-9289d6c31c6b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_381e5130-0bcb-4efd-aae7-e40bf119bbff" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_a820de36-dd66-41f7-8434-9289d6c31c6b" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_381e5130-0bcb-4efd-aae7-e40bf119bbff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_381e5130-0bcb-4efd-aae7-e40bf119bbff_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_381e5130-0bcb-4efd-aae7-e40bf119bbff" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_381e5130-0bcb-4efd-aae7-e40bf119bbff_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_6693a0c7-7920-49ef-abd5-80ee9e8ff4c4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_381e5130-0bcb-4efd-aae7-e40bf119bbff" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_6693a0c7-7920-49ef-abd5-80ee9e8ff4c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputDefaultRateMember_2f7c4a74-8eb2-4363-8a63-90a474a6222c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputDefaultRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_6693a0c7-7920-49ef-abd5-80ee9e8ff4c4" xlink:to="loc_us-gaap_MeasurementInputDefaultRateMember_2f7c4a74-8eb2-4363-8a63-90a474a6222c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_MeasurementInputAdequateCompensationMember_6972912a-631d-4d76-88e6-94493a30e31a" xlink:href="afrm-20251231.xsd#afrm_MeasurementInputAdequateCompensationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_6693a0c7-7920-49ef-abd5-80ee9e8ff4c4" xlink:to="loc_afrm_MeasurementInputAdequateCompensationMember_6972912a-631d-4d76-88e6-94493a30e31a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputDiscountRateMember_49092aa8-6fa7-4924-b6e6-aacfa553b085" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputDiscountRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_6693a0c7-7920-49ef-abd5-80ee9e8ff4c4" xlink:to="loc_us-gaap_MeasurementInputDiscountRateMember_49092aa8-6fa7-4924-b6e6-aacfa553b085" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueServicingAssetEffectOfTwentyFivePercentagePointIncreaseInMeasurementInput_95dbbaf0-a077-4e84-a5ab-0f15388e2019" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueServicingAssetEffectOfTwentyFivePercentagePointIncreaseInMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_1caa71b0-ad76-4dd3-99d1-7e5640796125" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueServicingAssetEffectOfTwentyFivePercentagePointIncreaseInMeasurementInput_95dbbaf0-a077-4e84-a5ab-0f15388e2019" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueServicingAssetEffectOfFiftyPercentagePointIncreaseInMeasurementInput_95048a74-827c-4692-918e-690f2e7d0e09" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueServicingAssetEffectOfFiftyPercentagePointIncreaseInMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_1caa71b0-ad76-4dd3-99d1-7e5640796125" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueServicingAssetEffectOfFiftyPercentagePointIncreaseInMeasurementInput_95048a74-827c-4692-918e-690f2e7d0e09" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueServicingAssetEffectOfTenPercentagePointIncreaseInMeasurementInput_98077d70-d215-4533-901c-416c24ab6d07" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueServicingAssetEffectOfTenPercentagePointIncreaseInMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_1caa71b0-ad76-4dd3-99d1-7e5640796125" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueServicingAssetEffectOfTenPercentagePointIncreaseInMeasurementInput_98077d70-d215-4533-901c-416c24ab6d07" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueServicingAssetEffectOfTwentyPercentagePointIncreaseInMeasurementInput_fda2ba64-ee43-4c90-90cb-87c626a1188c" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueServicingAssetEffectOfTwentyPercentagePointIncreaseInMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_1caa71b0-ad76-4dd3-99d1-7e5640796125" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueServicingAssetEffectOfTwentyPercentagePointIncreaseInMeasurementInput_fda2ba64-ee43-4c90-90cb-87c626a1188c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueServicingLiabilityEffectOfTwentyFivePercentagePointIncreaseInMeasurementInput_7d60dceb-22d4-4961-b06b-1f91006d2a67" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueServicingLiabilityEffectOfTwentyFivePercentagePointIncreaseInMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_1caa71b0-ad76-4dd3-99d1-7e5640796125" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueServicingLiabilityEffectOfTwentyFivePercentagePointIncreaseInMeasurementInput_7d60dceb-22d4-4961-b06b-1f91006d2a67" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueServicingLiabilityEffectOfFiftyPercentagePointIncreaseInMeasurementInput_c677cdad-38d8-4c70-9787-e2ac5171cd6f" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueServicingLiabilityEffectOfFiftyPercentagePointIncreaseInMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_1caa71b0-ad76-4dd3-99d1-7e5640796125" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueServicingLiabilityEffectOfFiftyPercentagePointIncreaseInMeasurementInput_c677cdad-38d8-4c70-9787-e2ac5171cd6f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueServicingLiabilityEffectOfTenPercentagePointIncreaseInMeasurementInput_a6c8dc1e-b1ef-4cfc-85e5-0b92f80d4830" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueServicingLiabilityEffectOfTenPercentagePointIncreaseInMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_1caa71b0-ad76-4dd3-99d1-7e5640796125" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueServicingLiabilityEffectOfTenPercentagePointIncreaseInMeasurementInput_a6c8dc1e-b1ef-4cfc-85e5-0b92f80d4830" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueServicingLiabilityEffectOfTwentyPercentagePointIncreaseInMeasurementInput_50fac7ad-436e-403d-a5b3-a410b4a9e07a" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueServicingLiabilityEffectOfTwentyPercentagePointIncreaseInMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_1caa71b0-ad76-4dd3-99d1-7e5640796125" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueServicingLiabilityEffectOfTwentyPercentagePointIncreaseInMeasurementInput_50fac7ad-436e-403d-a5b3-a410b4a9e07a" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofthePerformanceFeeLiabilityDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofthePerformanceFeeLiabilityDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofthePerformanceFeeLiabilityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_43795046-1ba0-4b98-acf2-94307f676db5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable_cd974c4e-b634-4c4a-b95f-10b5e60ba685" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_43795046-1ba0-4b98-acf2-94307f676db5" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable_cd974c4e-b634-4c4a-b95f-10b5e60ba685" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByLiabilityClassAxis_8bda9489-ce03-4a95-94a3-bc924b03cf4d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByLiabilityClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable_cd974c4e-b634-4c4a-b95f-10b5e60ba685" xlink:to="loc_us-gaap_FairValueByLiabilityClassAxis_8bda9489-ce03-4a95-94a3-bc924b03cf4d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_8bda9489-ce03-4a95-94a3-bc924b03cf4d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_8bda9489-ce03-4a95-94a3-bc924b03cf4d" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_8bda9489-ce03-4a95-94a3-bc924b03cf4d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_651d2172-c5fc-4e2d-b529-0c8581c10482" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_8bda9489-ce03-4a95-94a3-bc924b03cf4d" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_651d2172-c5fc-4e2d-b529-0c8581c10482" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_PerformanceFeeLiabilityMember_85b6acc5-582c-4f89-9a38-f45d51ea64fa" xlink:href="afrm-20251231.xsd#afrm_PerformanceFeeLiabilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_651d2172-c5fc-4e2d-b529-0c8581c10482" xlink:to="loc_afrm_PerformanceFeeLiabilityMember_85b6acc5-582c-4f89-9a38-f45d51ea64fa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_3496969c-9b0f-4f4b-9444-8f0a60af783f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_43795046-1ba0-4b98-acf2-94307f676db5" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_3496969c-9b0f-4f4b-9444-8f0a60af783f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_22a952a0-9a2a-4bb0-a43b-271b9c4b2537" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_3496969c-9b0f-4f4b-9444-8f0a60af783f" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_22a952a0-9a2a-4bb0-a43b-271b9c4b2537" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityPurchases_dac48601-e13a-4ddf-a7dc-5573a22a1e70" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityPurchases"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_3496969c-9b0f-4f4b-9444-8f0a60af783f" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityPurchases_dac48601-e13a-4ddf-a7dc-5573a22a1e70" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements_1586f029-0dff-4391-b7c6-7b24581faa8c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_3496969c-9b0f-4f4b-9444-8f0a60af783f" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements_1586f029-0dff-4391-b7c6-7b24581faa8c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings_e527d181-a075-4c12-917f-b2b5a6330679" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_3496969c-9b0f-4f4b-9444-8f0a60af783f" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings_e527d181-a075-4c12-917f-b2b5a6330679" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_18045a45-755b-4422-85c9-e8ba7ee5b14d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofPerformanceFeeLiabilityDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofPerformanceFeeLiabilityDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofPerformanceFeeLiabilityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_a55b61c8-55ce-4941-bf53-b73d741ac574" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_efa81191-0480-48ca-a1d5-02a458f9bd45" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_a55b61c8-55ce-4941-bf53-b73d741ac574" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_efa81191-0480-48ca-a1d5-02a458f9bd45" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_e3b75448-5fb3-47bf-9a63-7a97f58763f5" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_efa81191-0480-48ca-a1d5-02a458f9bd45" xlink:to="loc_srt_RangeAxis_e3b75448-5fb3-47bf-9a63-7a97f58763f5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_e3b75448-5fb3-47bf-9a63-7a97f58763f5_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_e3b75448-5fb3-47bf-9a63-7a97f58763f5" xlink:to="loc_srt_RangeMember_e3b75448-5fb3-47bf-9a63-7a97f58763f5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_c9e947fa-3058-4668-90b9-85b11fb9f0df" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_e3b75448-5fb3-47bf-9a63-7a97f58763f5" xlink:to="loc_srt_RangeMember_c9e947fa-3058-4668-90b9-85b11fb9f0df" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_7dcaf95f-5da4-41ab-814b-a7700065d4c2" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_c9e947fa-3058-4668-90b9-85b11fb9f0df" xlink:to="loc_srt_MinimumMember_7dcaf95f-5da4-41ab-814b-a7700065d4c2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_e2241c27-53ed-4e58-8fc4-61c1e81d060b" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_c9e947fa-3058-4668-90b9-85b11fb9f0df" xlink:to="loc_srt_MaximumMember_e2241c27-53ed-4e58-8fc4-61c1e81d060b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_WeightedAverageMember_406fbc55-a47e-49a0-975c-e6443dd5d83a" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_WeightedAverageMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_c9e947fa-3058-4668-90b9-85b11fb9f0df" xlink:to="loc_srt_WeightedAverageMember_406fbc55-a47e-49a0-975c-e6443dd5d83a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_fcaae364-301a-4de5-b594-cf2a6aa7068c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_efa81191-0480-48ca-a1d5-02a458f9bd45" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_fcaae364-301a-4de5-b594-cf2a6aa7068c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_fcaae364-301a-4de5-b594-cf2a6aa7068c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_fcaae364-301a-4de5-b594-cf2a6aa7068c" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_fcaae364-301a-4de5-b594-cf2a6aa7068c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_db40bdae-8045-4132-b7dd-893c19704614" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_fcaae364-301a-4de5-b594-cf2a6aa7068c" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_db40bdae-8045-4132-b7dd-893c19704614" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputDiscountRateMember_0eb52d09-cacf-40cc-a811-2ab7308d6a9d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputDiscountRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_db40bdae-8045-4132-b7dd-893c19704614" xlink:to="loc_us-gaap_MeasurementInputDiscountRateMember_0eb52d09-cacf-40cc-a811-2ab7308d6a9d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_MeasurementInputRefundRateMember_0ec21b1b-24a1-4854-88dc-fb1ac460648b" xlink:href="afrm-20251231.xsd#afrm_MeasurementInputRefundRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_db40bdae-8045-4132-b7dd-893c19704614" xlink:to="loc_afrm_MeasurementInputRefundRateMember_0ec21b1b-24a1-4854-88dc-fb1ac460648b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_MeasurementInputLossRateMember_c131eaaa-b340-4df8-a293-f57f9dc6ae5b" xlink:href="afrm-20251231.xsd#afrm_MeasurementInputLossRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_db40bdae-8045-4132-b7dd-893c19704614" xlink:to="loc_afrm_MeasurementInputLossRateMember_c131eaaa-b340-4df8-a293-f57f9dc6ae5b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_PerformanceFeeLiabilityMeasurementInput_1d7eb2cc-2ade-4f92-8ac2-6d23800ec727" xlink:href="afrm-20251231.xsd#afrm_PerformanceFeeLiabilityMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_a55b61c8-55ce-4941-bf53-b73d741ac574" xlink:to="loc_afrm_PerformanceFeeLiabilityMeasurementInput_1d7eb2cc-2ade-4f92-8ac2-6d23800ec727" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofNotesandResidualTrustCertificatesDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofNotesandResidualTrustCertificatesDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofNotesandResidualTrustCertificatesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_1673976e-b825-47cc-8d67-c1c86ad28a0c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable_c7c22acb-5c1b-4585-be1f-7044066bb399" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_1673976e-b825-47cc-8d67-c1c86ad28a0c" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable_c7c22acb-5c1b-4585-be1f-7044066bb399" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByLiabilityClassAxis_43e2a39c-5007-4acf-8121-f65205a4e63f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByLiabilityClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable_c7c22acb-5c1b-4585-be1f-7044066bb399" xlink:to="loc_us-gaap_FairValueByLiabilityClassAxis_43e2a39c-5007-4acf-8121-f65205a4e63f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_43e2a39c-5007-4acf-8121-f65205a4e63f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_43e2a39c-5007-4acf-8121-f65205a4e63f" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_43e2a39c-5007-4acf-8121-f65205a4e63f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_9d24517f-9c67-4dd4-bde1-ccd759e89f47" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_43e2a39c-5007-4acf-8121-f65205a4e63f" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_9d24517f-9c67-4dd4-bde1-ccd759e89f47" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SeniorNotesAndResidualTrustCertificatesMember_3f57cae1-fe4f-420a-8011-0f641ba067db" xlink:href="afrm-20251231.xsd#afrm_SeniorNotesAndResidualTrustCertificatesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_9d24517f-9c67-4dd4-bde1-ccd759e89f47" xlink:to="loc_afrm_SeniorNotesAndResidualTrustCertificatesMember_3f57cae1-fe4f-420a-8011-0f641ba067db" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_15b494db-fa20-49ac-88fb-d7637c5dbbca" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_1673976e-b825-47cc-8d67-c1c86ad28a0c" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_15b494db-fa20-49ac-88fb-d7637c5dbbca" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_70122151-b604-47db-8433-b610c3f5249d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_15b494db-fa20-49ac-88fb-d7637c5dbbca" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_70122151-b604-47db-8433-b610c3f5249d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityPurchases_5df426e3-f970-402c-96c1-b707496d6310" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityPurchases"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_15b494db-fa20-49ac-88fb-d7637c5dbbca" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityPurchases_5df426e3-f970-402c-96c1-b707496d6310" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlementAndSales_c3ec56b0-409b-4157-8a93-cb446773a9ab" xlink:href="afrm-20251231.xsd#afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlementAndSales"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_15b494db-fa20-49ac-88fb-d7637c5dbbca" xlink:to="loc_afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlementAndSales_c3ec56b0-409b-4157-8a93-cb446773a9ab" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInOtherComprehensiveIncome_d1c89e5d-bccc-46b6-a82c-d5280f82a158" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInOtherComprehensiveIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_15b494db-fa20-49ac-88fb-d7637c5dbbca" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInOtherComprehensiveIncome_d1c89e5d-bccc-46b6-a82c-d5280f82a158" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityAccruedInterest_7013e33c-b46d-4866-a7cb-9d8eddfbd194" xlink:href="afrm-20251231.xsd#afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_15b494db-fa20-49ac-88fb-d7637c5dbbca" xlink:to="loc_afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityAccruedInterest_7013e33c-b46d-4866-a7cb-9d8eddfbd194" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityImpairmentOnSecuritiesAvailableForSale_c021a1bb-eeb1-4d33-a250-5917fff655ff" xlink:href="afrm-20251231.xsd#afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityImpairmentOnSecuritiesAvailableForSale"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_15b494db-fa20-49ac-88fb-d7637c5dbbca" xlink:to="loc_afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityImpairmentOnSecuritiesAvailableForSale_c021a1bb-eeb1-4d33-a250-5917fff655ff" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_6431e76d-bd75-465b-8746-ed0bcbc53739" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofNotesandResidualTrustCertificatesDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofNotesandResidualTrustCertificatesDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofNotesandResidualTrustCertificatesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_8c9c68bb-e88c-4f3c-80de-9110051f2abd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_62444b91-0692-4ef5-9b35-a80e5d6516c1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_8c9c68bb-e88c-4f3c-80de-9110051f2abd" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_62444b91-0692-4ef5-9b35-a80e5d6516c1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_67685714-d848-4f7b-b623-2a6465030d03" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_62444b91-0692-4ef5-9b35-a80e5d6516c1" xlink:to="loc_srt_RangeAxis_67685714-d848-4f7b-b623-2a6465030d03" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_67685714-d848-4f7b-b623-2a6465030d03_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_67685714-d848-4f7b-b623-2a6465030d03" xlink:to="loc_srt_RangeMember_67685714-d848-4f7b-b623-2a6465030d03_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_408e2777-ac11-4eed-8248-d6f98e076804" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_67685714-d848-4f7b-b623-2a6465030d03" xlink:to="loc_srt_RangeMember_408e2777-ac11-4eed-8248-d6f98e076804" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_e79c98a6-ea5f-40a4-8523-71c0118cb772" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_408e2777-ac11-4eed-8248-d6f98e076804" xlink:to="loc_srt_MinimumMember_e79c98a6-ea5f-40a4-8523-71c0118cb772" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_f8152770-8f19-40e5-9bd9-7afc56705628" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_408e2777-ac11-4eed-8248-d6f98e076804" xlink:to="loc_srt_MaximumMember_f8152770-8f19-40e5-9bd9-7afc56705628" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_WeightedAverageMember_ea923e43-c213-4f6f-b7c5-a6ec64b6971a" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_WeightedAverageMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_408e2777-ac11-4eed-8248-d6f98e076804" xlink:to="loc_srt_WeightedAverageMember_ea923e43-c213-4f6f-b7c5-a6ec64b6971a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_cc0e0834-0791-44f0-9d2c-faa36ce35754" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_62444b91-0692-4ef5-9b35-a80e5d6516c1" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_cc0e0834-0791-44f0-9d2c-faa36ce35754" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_cc0e0834-0791-44f0-9d2c-faa36ce35754_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_cc0e0834-0791-44f0-9d2c-faa36ce35754" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_cc0e0834-0791-44f0-9d2c-faa36ce35754_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_0624912a-e02e-41e1-a3ba-979cb661c381" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_cc0e0834-0791-44f0-9d2c-faa36ce35754" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_0624912a-e02e-41e1-a3ba-979cb661c381" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputDiscountRateMember_d7864af4-c842-4b35-a682-4ba7ecaf71db" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputDiscountRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_0624912a-e02e-41e1-a3ba-979cb661c381" xlink:to="loc_us-gaap_MeasurementInputDiscountRateMember_d7864af4-c842-4b35-a682-4ba7ecaf71db" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputDefaultRateMember_e46b64d9-e5cb-48c2-bded-e0d33861dc6d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputDefaultRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_0624912a-e02e-41e1-a3ba-979cb661c381" xlink:to="loc_us-gaap_MeasurementInputDefaultRateMember_e46b64d9-e5cb-48c2-bded-e0d33861dc6d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputPrepaymentRateMember_d783e5a3-7607-4e12-b1c0-ac577445f143" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputPrepaymentRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_0624912a-e02e-41e1-a3ba-979cb661c381" xlink:to="loc_us-gaap_MeasurementInputPrepaymentRateMember_d783e5a3-7607-4e12-b1c0-ac577445f143" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SeniorNoteAndResidualTrustCertificatesMeasurementInput_dc9c43e3-e257-4b31-b040-fda1d4a902ab" xlink:href="afrm-20251231.xsd#afrm_SeniorNoteAndResidualTrustCertificatesMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_8c9c68bb-e88c-4f3c-80de-9110051f2abd" xlink:to="loc_afrm_SeniorNoteAndResidualTrustCertificatesMeasurementInput_dc9c43e3-e257-4b31-b040-fda1d4a902ab" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofNotesReceivableandResidualTrustCertificatesDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofNotesReceivableandResidualTrustCertificatesDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofNotesReceivableandResidualTrustCertificatesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_fe34cf9c-0859-48b1-88e4-36244d635f31" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_f83afe6a-6b0a-409a-ba6c-e46f160c7300" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_fe34cf9c-0859-48b1-88e4-36244d635f31" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_f83afe6a-6b0a-409a-ba6c-e46f160c7300" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_56ed114f-7bed-4d48-b413-3cf0744eb311" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_f83afe6a-6b0a-409a-ba6c-e46f160c7300" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_56ed114f-7bed-4d48-b413-3cf0744eb311" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_56ed114f-7bed-4d48-b413-3cf0744eb311_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_56ed114f-7bed-4d48-b413-3cf0744eb311" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_56ed114f-7bed-4d48-b413-3cf0744eb311_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_3b68a959-8059-4b6a-9d07-e591957e0a66" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_56ed114f-7bed-4d48-b413-3cf0744eb311" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_3b68a959-8059-4b6a-9d07-e591957e0a66" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputDiscountRateMember_adf50468-f952-4a78-a59f-c8a631daa45a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputDiscountRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_3b68a959-8059-4b6a-9d07-e591957e0a66" xlink:to="loc_us-gaap_MeasurementInputDiscountRateMember_adf50468-f952-4a78-a59f-c8a631daa45a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputDefaultRateMember_cb6c6162-134c-4b0d-88e5-707ee652a8cd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputDefaultRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_3b68a959-8059-4b6a-9d07-e591957e0a66" xlink:to="loc_us-gaap_MeasurementInputDefaultRateMember_cb6c6162-134c-4b0d-88e5-707ee652a8cd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputPrepaymentRateMember_d8ebee37-85b1-4a4e-8652-23880a1256a0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputPrepaymentRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_3b68a959-8059-4b6a-9d07-e591957e0a66" xlink:to="loc_us-gaap_MeasurementInputPrepaymentRateMember_d8ebee37-85b1-4a4e-8652-23880a1256a0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueSecuritizationNotesAndResidualTrustCertificatesLiabilityEffectOfTwentyFivePercentagePointIncreaseDecreaseInMeasurementInput_cfd4def3-ae88-4c63-827c-ea7d0c922458" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueSecuritizationNotesAndResidualTrustCertificatesLiabilityEffectOfTwentyFivePercentagePointIncreaseDecreaseInMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_fe34cf9c-0859-48b1-88e4-36244d635f31" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueSecuritizationNotesAndResidualTrustCertificatesLiabilityEffectOfTwentyFivePercentagePointIncreaseDecreaseInMeasurementInput_cfd4def3-ae88-4c63-827c-ea7d0c922458" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueSecuritizationNotesAndResidualTrustCertificatesLiabilityEffectOfFiftyPercentagePointIncreaseDecreaseInMeasurementInput_b80925bc-9634-4b56-9809-87079138b0e2" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueSecuritizationNotesAndResidualTrustCertificatesLiabilityEffectOfFiftyPercentagePointIncreaseDecreaseInMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_fe34cf9c-0859-48b1-88e4-36244d635f31" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueSecuritizationNotesAndResidualTrustCertificatesLiabilityEffectOfFiftyPercentagePointIncreaseDecreaseInMeasurementInput_b80925bc-9634-4b56-9809-87079138b0e2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueSecuritizationNotesAndResidualTrustCertificatesLiabilityChangeOfTwentyFivePercentagePointInMeasurementInput_181a70c7-d7ae-4130-8914-ff2c70634320" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueSecuritizationNotesAndResidualTrustCertificatesLiabilityChangeOfTwentyFivePercentagePointInMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_fe34cf9c-0859-48b1-88e4-36244d635f31" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueSecuritizationNotesAndResidualTrustCertificatesLiabilityChangeOfTwentyFivePercentagePointInMeasurementInput_181a70c7-d7ae-4130-8914-ff2c70634320" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueSecuritizationNotesAndResidualTrustCertificatesLiabilityChangeOfFiftyPercentagePointInMeasurementInput_2b378f4a-f92d-4d28-963b-f28d64fec8e8" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueSecuritizationNotesAndResidualTrustCertificatesLiabilityChangeOfFiftyPercentagePointInMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_fe34cf9c-0859-48b1-88e4-36244d635f31" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueSecuritizationNotesAndResidualTrustCertificatesLiabilityChangeOfFiftyPercentagePointInMeasurementInput_2b378f4a-f92d-4d28-963b-f28d64fec8e8" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofAssetsDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_16ea0dd4-2f9f-485b-b28d-3c0355ee7962" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_ce57f3f3-4cb8-41a1-9333-dc54a50ac6f2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_16ea0dd4-2f9f-485b-b28d-3c0355ee7962" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_ce57f3f3-4cb8-41a1-9333-dc54a50ac6f2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_c1994c56-bf00-4854-a4d1-10bd336237a1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByAssetClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_ce57f3f3-4cb8-41a1-9333-dc54a50ac6f2" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_c1994c56-bf00-4854-a4d1-10bd336237a1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_c1994c56-bf00-4854-a4d1-10bd336237a1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_c1994c56-bf00-4854-a4d1-10bd336237a1" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_c1994c56-bf00-4854-a4d1-10bd336237a1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_c750498e-2d1f-49e6-9661-ef2352d25f5c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_c1994c56-bf00-4854-a4d1-10bd336237a1" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_c750498e-2d1f-49e6-9661-ef2352d25f5c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ResidualInterestsInStructuredTransactionsMember_56179d98-3ea8-4d5e-bff4-b4bf4b3b61ce" xlink:href="afrm-20251231.xsd#afrm_ResidualInterestsInStructuredTransactionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_c750498e-2d1f-49e6-9661-ef2352d25f5c" xlink:to="loc_afrm_ResidualInterestsInStructuredTransactionsMember_56179d98-3ea8-4d5e-bff4-b4bf4b3b61ce" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_b30b30ad-780f-4e1c-8809-3ef9489e0d36" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_16ea0dd4-2f9f-485b-b28d-3c0355ee7962" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_b30b30ad-780f-4e1c-8809-3ef9489e0d36" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_5cf79566-ed65-415c-a964-f6870e1a605f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_b30b30ad-780f-4e1c-8809-3ef9489e0d36" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_5cf79566-ed65-415c-a964-f6870e1a605f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetCapitalContribution_f4124581-825c-450b-bc0c-0d72ec218016" xlink:href="afrm-20251231.xsd#afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetCapitalContribution"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_b30b30ad-780f-4e1c-8809-3ef9489e0d36" xlink:to="loc_afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetCapitalContribution_f4124581-825c-450b-bc0c-0d72ec218016" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1_e0908459-0f27-43f9-9c96-2fd5ee1cebf6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_b30b30ad-780f-4e1c-8809-3ef9489e0d36" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1_e0908459-0f27-43f9-9c96-2fd5ee1cebf6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_c155c1b7-0e00-475b-9159-552a23bc8bec" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofResidualInterestsinStructuredTransactionsDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofResidualInterestsinStructuredTransactionsDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofResidualInterestsinStructuredTransactionsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_9c5976fb-fbf1-40ca-87b7-df60a35bb00c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_f94ac3bf-f48b-40ea-82d6-eeec5991d08e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_9c5976fb-fbf1-40ca-87b7-df60a35bb00c" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_f94ac3bf-f48b-40ea-82d6-eeec5991d08e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_b3ad52c3-15cc-4f4c-8888-6354b3cd03a5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_f94ac3bf-f48b-40ea-82d6-eeec5991d08e" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_b3ad52c3-15cc-4f4c-8888-6354b3cd03a5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_b3ad52c3-15cc-4f4c-8888-6354b3cd03a5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_b3ad52c3-15cc-4f4c-8888-6354b3cd03a5" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_b3ad52c3-15cc-4f4c-8888-6354b3cd03a5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_e41b898c-d130-46df-ac22-c08a914747f3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_b3ad52c3-15cc-4f4c-8888-6354b3cd03a5" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_e41b898c-d130-46df-ac22-c08a914747f3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputDiscountRateMember_7cb61f8f-279a-4c9a-9baf-c97e0ce2f213" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputDiscountRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_e41b898c-d130-46df-ac22-c08a914747f3" xlink:to="loc_us-gaap_MeasurementInputDiscountRateMember_7cb61f8f-279a-4c9a-9baf-c97e0ce2f213" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputDefaultRateMember_692a9439-4b71-4b3f-b190-57ffc27e19e9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputDefaultRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_e41b898c-d130-46df-ac22-c08a914747f3" xlink:to="loc_us-gaap_MeasurementInputDefaultRateMember_692a9439-4b71-4b3f-b190-57ffc27e19e9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputPrepaymentRateMember_20a52343-db90-4c62-a43e-1990ec5493ef" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputPrepaymentRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_e41b898c-d130-46df-ac22-c08a914747f3" xlink:to="loc_us-gaap_MeasurementInputPrepaymentRateMember_20a52343-db90-4c62-a43e-1990ec5493ef" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019c1015-1d9f-7787-91c9-4739228072f7" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_f94ac3bf-f48b-40ea-82d6-eeec5991d08e" xlink:to="loc_srt_RangeAxis_019c1015-1d9f-7787-91c9-4739228072f7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019c1015-1d9f-7787-91c9-4739228072f7_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019c1015-1d9f-7787-91c9-4739228072f7" xlink:to="loc_srt_RangeMember_019c1015-1d9f-7787-91c9-4739228072f7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019c1015-1d9f-7f79-9e72-1c17439a4bef" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019c1015-1d9f-7787-91c9-4739228072f7" xlink:to="loc_srt_RangeMember_019c1015-1d9f-7f79-9e72-1c17439a4bef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019c1015-1d9f-7737-87a3-29543fe326aa" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019c1015-1d9f-7f79-9e72-1c17439a4bef" xlink:to="loc_srt_MinimumMember_019c1015-1d9f-7737-87a3-29543fe326aa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019c1015-1d9f-792d-aaf6-b1efc258babb" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019c1015-1d9f-7f79-9e72-1c17439a4bef" xlink:to="loc_srt_MaximumMember_019c1015-1d9f-792d-aaf6-b1efc258babb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_WeightedAverageMember_019c1015-1d9f-78b1-9567-581e5812c495" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_WeightedAverageMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019c1015-1d9f-7f79-9e72-1c17439a4bef" xlink:to="loc_srt_WeightedAverageMember_019c1015-1d9f-78b1-9567-581e5812c495" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ResidualInterestsInStructuredTransactionsMeasurementInput_07a1ba0f-34ac-410a-9546-42f60d760608" xlink:href="afrm-20251231.xsd#afrm_ResidualInterestsInStructuredTransactionsMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_9c5976fb-fbf1-40ca-87b7-df60a35bb00c" xlink:to="loc_afrm_ResidualInterestsInStructuredTransactionsMeasurementInput_07a1ba0f-34ac-410a-9546-42f60d760608" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofResidualInterestsinStructuredTransactionsDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofResidualInterestsinStructuredTransactionsDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofResidualInterestsinStructuredTransactionsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_e9f34a68-9422-4bbe-80be-38eaacfeeefd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_5177d4df-0956-410a-b9a5-6bb35f95840b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_e9f34a68-9422-4bbe-80be-38eaacfeeefd" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_5177d4df-0956-410a-b9a5-6bb35f95840b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_bd397bdf-8639-46be-b1e6-a8f4f08f67f5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_5177d4df-0956-410a-b9a5-6bb35f95840b" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_bd397bdf-8639-46be-b1e6-a8f4f08f67f5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_bd397bdf-8639-46be-b1e6-a8f4f08f67f5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_bd397bdf-8639-46be-b1e6-a8f4f08f67f5" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_bd397bdf-8639-46be-b1e6-a8f4f08f67f5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_7678922a-6a40-47a0-a9f7-0ceae7c95ae8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_bd397bdf-8639-46be-b1e6-a8f4f08f67f5" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_7678922a-6a40-47a0-a9f7-0ceae7c95ae8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputDiscountRateMember_743ae6f0-e772-46d1-99d8-9777ef52c182" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputDiscountRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_7678922a-6a40-47a0-a9f7-0ceae7c95ae8" xlink:to="loc_us-gaap_MeasurementInputDiscountRateMember_743ae6f0-e772-46d1-99d8-9777ef52c182" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputDefaultRateMember_24ac2b1d-9762-4419-aade-a1adc87470d5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputDefaultRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_7678922a-6a40-47a0-a9f7-0ceae7c95ae8" xlink:to="loc_us-gaap_MeasurementInputDefaultRateMember_24ac2b1d-9762-4419-aade-a1adc87470d5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputPrepaymentRateMember_7e95f6f0-ab1f-4827-88fb-274a720287e9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputPrepaymentRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_7678922a-6a40-47a0-a9f7-0ceae7c95ae8" xlink:to="loc_us-gaap_MeasurementInputPrepaymentRateMember_7e95f6f0-ab1f-4827-88fb-274a720287e9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf20PercentAdverseChangeInDiscountRate_59a1b236-db1d-43fe-9d10-a20495091019" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf20PercentAdverseChangeInDiscountRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_e9f34a68-9422-4bbe-80be-38eaacfeeefd" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf20PercentAdverseChangeInDiscountRate_59a1b236-db1d-43fe-9d10-a20495091019" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf40PercentAdverseChangeInDiscountRate_6d1a13e4-43c8-4b6e-9451-4c9ef2db2c71" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf40PercentAdverseChangeInDiscountRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_e9f34a68-9422-4bbe-80be-38eaacfeeefd" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf40PercentAdverseChangeInDiscountRate_6d1a13e4-43c8-4b6e-9451-4c9ef2db2c71" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf20PercentAdverseChangeInDefaultRate_e6265cfa-a75d-4d3a-8a4d-f0216dcbe675" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf20PercentAdverseChangeInDefaultRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_e9f34a68-9422-4bbe-80be-38eaacfeeefd" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf20PercentAdverseChangeInDefaultRate_e6265cfa-a75d-4d3a-8a4d-f0216dcbe675" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf40PercentAdverseChangeInDefaultRate_ab01610d-3924-4369-9894-326e0b33e746" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf40PercentAdverseChangeInDefaultRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_e9f34a68-9422-4bbe-80be-38eaacfeeefd" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf40PercentAdverseChangeInDefaultRate_ab01610d-3924-4369-9894-326e0b33e746" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf20PercentAdverseChangeInPrepaymentSpeed_39ce9bba-3058-41b5-9b52-0e028aab89f7" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf20PercentAdverseChangeInPrepaymentSpeed"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_e9f34a68-9422-4bbe-80be-38eaacfeeefd" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf20PercentAdverseChangeInPrepaymentSpeed_39ce9bba-3058-41b5-9b52-0e028aab89f7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf40PercentAdverseChangeInPrepaymentSpeed_0959c617-a08b-465f-99ed-46fcff72cf1d" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf40PercentAdverseChangeInPrepaymentSpeed"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_e9f34a68-9422-4bbe-80be-38eaacfeeefd" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf40PercentAdverseChangeInPrepaymentSpeed_0959c617-a08b-465f-99ed-46fcff72cf1d" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofProfitShareLiabilityDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofProfitShareLiabilityDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofProfitShareLiabilityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_8b625c5f-ae1c-4895-a010-c37b0fddaccc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable_5916d835-8550-4e8c-8480-96b55f57fae8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_8b625c5f-ae1c-4895-a010-c37b0fddaccc" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable_5916d835-8550-4e8c-8480-96b55f57fae8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByLiabilityClassAxis_bcc141ec-9d47-4d18-a8b5-77a32b38c470" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByLiabilityClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable_5916d835-8550-4e8c-8480-96b55f57fae8" xlink:to="loc_us-gaap_FairValueByLiabilityClassAxis_bcc141ec-9d47-4d18-a8b5-77a32b38c470" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_bcc141ec-9d47-4d18-a8b5-77a32b38c470_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_bcc141ec-9d47-4d18-a8b5-77a32b38c470" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_bcc141ec-9d47-4d18-a8b5-77a32b38c470_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_b61e4f3e-8126-4274-90d6-7b0e101c265e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_bcc141ec-9d47-4d18-a8b5-77a32b38c470" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_b61e4f3e-8126-4274-90d6-7b0e101c265e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementProfitShareLiabilityMember_12aa80cd-9256-4e5b-be5c-35abd7c61c65" xlink:href="afrm-20251231.xsd#afrm_CommercialAgreementProfitShareLiabilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_b61e4f3e-8126-4274-90d6-7b0e101c265e" xlink:to="loc_afrm_CommercialAgreementProfitShareLiabilityMember_12aa80cd-9256-4e5b-be5c-35abd7c61c65" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_b2674326-01ad-4e0a-a006-ca3a364e8ce9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_8b625c5f-ae1c-4895-a010-c37b0fddaccc" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_b2674326-01ad-4e0a-a006-ca3a364e8ce9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_9647688b-3c3e-4cbe-95c8-56f9b46f9d36" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_b2674326-01ad-4e0a-a006-ca3a364e8ce9" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_9647688b-3c3e-4cbe-95c8-56f9b46f9d36" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityFacilitationOfLoans_f97c493f-a269-4699-9ff1-b2bf3554ca5f" xlink:href="afrm-20251231.xsd#afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityFacilitationOfLoans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_b2674326-01ad-4e0a-a006-ca3a364e8ce9" xlink:to="loc_afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityFacilitationOfLoans_f97c493f-a269-4699-9ff1-b2bf3554ca5f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityActualGainLoss_703179f0-f658-4925-b90a-91a66ea4cd24" xlink:href="afrm-20251231.xsd#afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityActualGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_b2674326-01ad-4e0a-a006-ca3a364e8ce9" xlink:to="loc_afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityActualGainLoss_703179f0-f658-4925-b90a-91a66ea4cd24" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySubsequentChangesToFairValue_c285c0ff-bfeb-4555-a27f-60e9c8e9053d" xlink:href="afrm-20251231.xsd#afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySubsequentChangesToFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_b2674326-01ad-4e0a-a006-ca3a364e8ce9" xlink:to="loc_afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySubsequentChangesToFairValue_c285c0ff-bfeb-4555-a27f-60e9c8e9053d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_0bf136b7-63fc-46b1-8d57-83bc7fd6d2df" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofQuantitativeInformationAboutSignificantUnobservableInputsforProfitShareLiabilityDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#FairValueofFinancialAssetsandLiabilitiesScheduleofQuantitativeInformationAboutSignificantUnobservableInputsforProfitShareLiabilityDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofQuantitativeInformationAboutSignificantUnobservableInputsforProfitShareLiabilityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_004ec05d-1aad-4b86-bff9-7fcf1c2d6f3d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_900ec6c6-d7e4-41e5-95c8-cfa230418472" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_004ec05d-1aad-4b86-bff9-7fcf1c2d6f3d" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_900ec6c6-d7e4-41e5-95c8-cfa230418472" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_32ff578b-975c-4091-9fa8-a8f5ecad32cd" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_900ec6c6-d7e4-41e5-95c8-cfa230418472" xlink:to="loc_srt_RangeAxis_32ff578b-975c-4091-9fa8-a8f5ecad32cd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_32ff578b-975c-4091-9fa8-a8f5ecad32cd_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_32ff578b-975c-4091-9fa8-a8f5ecad32cd" xlink:to="loc_srt_RangeMember_32ff578b-975c-4091-9fa8-a8f5ecad32cd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_41c37403-b324-407e-84f7-338041d3a9e8" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_32ff578b-975c-4091-9fa8-a8f5ecad32cd" xlink:to="loc_srt_RangeMember_41c37403-b324-407e-84f7-338041d3a9e8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_ea09eb0c-0824-4fb7-adbb-4044b25f8818" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_41c37403-b324-407e-84f7-338041d3a9e8" xlink:to="loc_srt_MinimumMember_ea09eb0c-0824-4fb7-adbb-4044b25f8818" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_9ff84337-395b-46e7-a7b9-42a72f6339e4" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_41c37403-b324-407e-84f7-338041d3a9e8" xlink:to="loc_srt_MaximumMember_9ff84337-395b-46e7-a7b9-42a72f6339e4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_WeightedAverageMember_f521bfa4-c1fe-4698-b938-a6108ea5b31d" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_WeightedAverageMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_41c37403-b324-407e-84f7-338041d3a9e8" xlink:to="loc_srt_WeightedAverageMember_f521bfa4-c1fe-4698-b938-a6108ea5b31d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_f679650b-8f2a-42d9-a251-b8d1d2eb3e3a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_900ec6c6-d7e4-41e5-95c8-cfa230418472" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_f679650b-8f2a-42d9-a251-b8d1d2eb3e3a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_f679650b-8f2a-42d9-a251-b8d1d2eb3e3a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_f679650b-8f2a-42d9-a251-b8d1d2eb3e3a" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_f679650b-8f2a-42d9-a251-b8d1d2eb3e3a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_95842b01-e94b-49c0-98d5-a450a2df2e3b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_f679650b-8f2a-42d9-a251-b8d1d2eb3e3a" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_95842b01-e94b-49c0-98d5-a450a2df2e3b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputDiscountRateMember_5b010da6-5514-463b-8a53-a4badf205e25" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputDiscountRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_95842b01-e94b-49c0-98d5-a450a2df2e3b" xlink:to="loc_us-gaap_MeasurementInputDiscountRateMember_5b010da6-5514-463b-8a53-a4badf205e25" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_MeasurementInputProgramProfitabilityMember_dddf9270-c8f9-43af-bcee-f11e8232a0bf" xlink:href="afrm-20251231.xsd#afrm_MeasurementInputProgramProfitabilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_95842b01-e94b-49c0-98d5-a450a2df2e3b" xlink:to="loc_afrm_MeasurementInputProgramProfitabilityMember_dddf9270-c8f9-43af-bcee-f11e8232a0bf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementProfitShareLiabilityMeasurementInput_bf46aa92-cdc5-4f7b-913d-b123123ab388" xlink:href="afrm-20251231.xsd#afrm_CommercialAgreementProfitShareLiabilityMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_004ec05d-1aad-4b86-bff9-7fcf1c2d6f3d" xlink:to="loc_afrm_CommercialAgreementProfitShareLiabilityMeasurementInput_bf46aa92-cdc5-4f7b-913d-b123123ab388" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofRiskSharingAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofRiskSharingAssetsandLiabilitiesDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofRiskSharingAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_abff3b26-3906-4a95-8ff0-599fa4ef8e4b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable_6ed6b471-5ab4-475d-ad8e-1fb712a007f4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_abff3b26-3906-4a95-8ff0-599fa4ef8e4b" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable_6ed6b471-5ab4-475d-ad8e-1fb712a007f4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_109095bf-46c5-450b-b00b-3c4bd604dc98" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByAssetClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable_6ed6b471-5ab4-475d-ad8e-1fb712a007f4" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_109095bf-46c5-450b-b00b-3c4bd604dc98" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_109095bf-46c5-450b-b00b-3c4bd604dc98_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_109095bf-46c5-450b-b00b-3c4bd604dc98" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_109095bf-46c5-450b-b00b-3c4bd604dc98_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_15dcbec4-9a46-4c01-8af7-c78491a2cda2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_109095bf-46c5-450b-b00b-3c4bd604dc98" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_15dcbec4-9a46-4c01-8af7-c78491a2cda2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RiskSharingArrangementMember_269e8b3a-00ae-4f21-92d3-1f0208007316" xlink:href="afrm-20251231.xsd#afrm_RiskSharingArrangementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_15dcbec4-9a46-4c01-8af7-c78491a2cda2" xlink:to="loc_afrm_RiskSharingArrangementMember_269e8b3a-00ae-4f21-92d3-1f0208007316" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByLiabilityClassAxis_ea1c8744-246e-452e-aee7-789bc14be0ef" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByLiabilityClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable_6ed6b471-5ab4-475d-ad8e-1fb712a007f4" xlink:to="loc_us-gaap_FairValueByLiabilityClassAxis_ea1c8744-246e-452e-aee7-789bc14be0ef" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_ea1c8744-246e-452e-aee7-789bc14be0ef_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_ea1c8744-246e-452e-aee7-789bc14be0ef" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_ea1c8744-246e-452e-aee7-789bc14be0ef_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_ab5ee811-873f-416a-82cb-aea4f39f9552" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_ea1c8744-246e-452e-aee7-789bc14be0ef" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_ab5ee811-873f-416a-82cb-aea4f39f9552" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RiskSharingArrangementMember_db2fb8f2-3d34-46a5-8bbc-aef0140935e3" xlink:href="afrm-20251231.xsd#afrm_RiskSharingArrangementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_ab5ee811-873f-416a-82cb-aea4f39f9552" xlink:to="loc_afrm_RiskSharingArrangementMember_db2fb8f2-3d34-46a5-8bbc-aef0140935e3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_82e1f156-1580-45ff-b922-fbc8a6ec3f3b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_abff3b26-3906-4a95-8ff0-599fa4ef8e4b" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_82e1f156-1580-45ff-b922-fbc8a6ec3f3b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_811478e7-dc22-4971-92af-7e5997a4b821" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_82e1f156-1580-45ff-b922-fbc8a6ec3f3b" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_811478e7-dc22-4971-92af-7e5997a4b821" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetIssues_902e96a1-13b1-44e1-ad76-30a9d71b5b52" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetIssues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_82e1f156-1580-45ff-b922-fbc8a6ec3f3b" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetIssues_902e96a1-13b1-44e1-ad76-30a9d71b5b52" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements_28e1620a-2bc8-4476-86f8-248cc7711030" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_82e1f156-1580-45ff-b922-fbc8a6ec3f3b" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements_28e1620a-2bc8-4476-86f8-248cc7711030" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1_e51d83b9-a3c6-416c-8d92-aa2e205656c9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_82e1f156-1580-45ff-b922-fbc8a6ec3f3b" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1_e51d83b9-a3c6-416c-8d92-aa2e205656c9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_15d9c30c-c336-4b1c-a5e3-b447d01904e5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_44b2fe3e-e28b-4194-aeab-b9540a5fa758" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_abff3b26-3906-4a95-8ff0-599fa4ef8e4b" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_44b2fe3e-e28b-4194-aeab-b9540a5fa758" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_1088d27a-15d3-4be6-a397-380f8f4e21bf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_44b2fe3e-e28b-4194-aeab-b9540a5fa758" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_1088d27a-15d3-4be6-a397-380f8f4e21bf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements_fc05e7d0-6a04-46dd-bc7d-c6d0b82a896d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_44b2fe3e-e28b-4194-aeab-b9540a5fa758" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements_fc05e7d0-6a04-46dd-bc7d-c6d0b82a896d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings_340393b3-d88e-4213-85dc-47b23ede4cb7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_44b2fe3e-e28b-4194-aeab-b9540a5fa758" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings_340393b3-d88e-4213-85dc-47b23ede4cb7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_97ce8142-8c3c-48d0-8eff-fc1ada26feb8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedinRiskSharingArrangementDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedinRiskSharingArrangementDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedinRiskSharingArrangementDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_0f2f6412-7415-4615-8c46-7394a045a9d9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_69ff4691-f7e5-4e80-b24a-ca592dd93856" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_0f2f6412-7415-4615-8c46-7394a045a9d9" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_69ff4691-f7e5-4e80-b24a-ca592dd93856" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_01d8fecd-7d6c-4339-95f0-7dfe406fef67" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_69ff4691-f7e5-4e80-b24a-ca592dd93856" xlink:to="loc_srt_RangeAxis_01d8fecd-7d6c-4339-95f0-7dfe406fef67" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_01d8fecd-7d6c-4339-95f0-7dfe406fef67_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_01d8fecd-7d6c-4339-95f0-7dfe406fef67" xlink:to="loc_srt_RangeMember_01d8fecd-7d6c-4339-95f0-7dfe406fef67_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_6cd81814-7739-444b-812d-bceddeaf0e56" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_01d8fecd-7d6c-4339-95f0-7dfe406fef67" xlink:to="loc_srt_RangeMember_6cd81814-7739-444b-812d-bceddeaf0e56" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_3ae60995-72ee-4f54-9c0f-1ff2fce88b7e" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_6cd81814-7739-444b-812d-bceddeaf0e56" xlink:to="loc_srt_MinimumMember_3ae60995-72ee-4f54-9c0f-1ff2fce88b7e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_6e8445ac-7edf-4991-88a3-f1a55fb2f9fd" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_6cd81814-7739-444b-812d-bceddeaf0e56" xlink:to="loc_srt_MaximumMember_6e8445ac-7edf-4991-88a3-f1a55fb2f9fd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_WeightedAverageMember_d6ba7c71-bebd-4fe4-a0d2-f56bfb354bd0" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_WeightedAverageMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_6cd81814-7739-444b-812d-bceddeaf0e56" xlink:to="loc_srt_WeightedAverageMember_d6ba7c71-bebd-4fe4-a0d2-f56bfb354bd0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_bfb5f498-259e-424e-998e-2703a1558cdb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByAssetClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_69ff4691-f7e5-4e80-b24a-ca592dd93856" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_bfb5f498-259e-424e-998e-2703a1558cdb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_bfb5f498-259e-424e-998e-2703a1558cdb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_bfb5f498-259e-424e-998e-2703a1558cdb" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_bfb5f498-259e-424e-998e-2703a1558cdb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_0f6e43c9-46ba-4aa2-9cd4-f23118de956a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_bfb5f498-259e-424e-998e-2703a1558cdb" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_0f6e43c9-46ba-4aa2-9cd4-f23118de956a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RiskSharingArrangementMember_3154d626-0479-440f-bdda-966241e4b68a" xlink:href="afrm-20251231.xsd#afrm_RiskSharingArrangementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_0f6e43c9-46ba-4aa2-9cd4-f23118de956a" xlink:to="loc_afrm_RiskSharingArrangementMember_3154d626-0479-440f-bdda-966241e4b68a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_5c5ab12b-a92f-4683-971d-5af4f3e71aaa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_69ff4691-f7e5-4e80-b24a-ca592dd93856" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_5c5ab12b-a92f-4683-971d-5af4f3e71aaa" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_5c5ab12b-a92f-4683-971d-5af4f3e71aaa_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_5c5ab12b-a92f-4683-971d-5af4f3e71aaa" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_5c5ab12b-a92f-4683-971d-5af4f3e71aaa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_e25df3c8-7149-4f36-acdd-2a50de4b1248" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_5c5ab12b-a92f-4683-971d-5af4f3e71aaa" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_e25df3c8-7149-4f36-acdd-2a50de4b1248" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputDiscountRateMember_9a0b1547-567f-4722-a319-25cf04997e24" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputDiscountRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_e25df3c8-7149-4f36-acdd-2a50de4b1248" xlink:to="loc_us-gaap_MeasurementInputDiscountRateMember_9a0b1547-567f-4722-a319-25cf04997e24" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_MeasurementInputLossRateMember_354c86ee-0675-45cc-ba64-831f1687e04b" xlink:href="afrm-20251231.xsd#afrm_MeasurementInputLossRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_e25df3c8-7149-4f36-acdd-2a50de4b1248" xlink:to="loc_afrm_MeasurementInputLossRateMember_354c86ee-0675-45cc-ba64-831f1687e04b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputPrepaymentRateMember_41562ec6-89b2-4fcb-8597-270a921181f0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputPrepaymentRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_e25df3c8-7149-4f36-acdd-2a50de4b1248" xlink:to="loc_us-gaap_MeasurementInputPrepaymentRateMember_41562ec6-89b2-4fcb-8597-270a921181f0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByLiabilityClassAxis_5a76c57b-4a7d-42d2-9dea-d68c8b9d1ab3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByLiabilityClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_69ff4691-f7e5-4e80-b24a-ca592dd93856" xlink:to="loc_us-gaap_FairValueByLiabilityClassAxis_5a76c57b-4a7d-42d2-9dea-d68c8b9d1ab3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_5a76c57b-4a7d-42d2-9dea-d68c8b9d1ab3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_5a76c57b-4a7d-42d2-9dea-d68c8b9d1ab3" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_5a76c57b-4a7d-42d2-9dea-d68c8b9d1ab3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_ab594f3a-4cb7-4558-b827-6fdaad334c06" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_5a76c57b-4a7d-42d2-9dea-d68c8b9d1ab3" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_ab594f3a-4cb7-4558-b827-6fdaad334c06" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RiskSharingArrangementMember_1e63f582-e962-4dad-a89f-60107bd3d07b" xlink:href="afrm-20251231.xsd#afrm_RiskSharingArrangementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_ab594f3a-4cb7-4558-b827-6fdaad334c06" xlink:to="loc_afrm_RiskSharingArrangementMember_1e63f582-e962-4dad-a89f-60107bd3d07b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetMeasurementInput_871edd97-b039-4787-9837-507248ffe99b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeAssetMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_0f2f6412-7415-4615-8c46-7394a045a9d9" xlink:to="loc_us-gaap_DerivativeAssetMeasurementInput_871edd97-b039-4787-9837-507248ffe99b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityMeasurementInput_96229ead-2c1e-4979-83af-a5d3458d2085" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeLiabilityMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_0f2f6412-7415-4615-8c46-7394a045a9d9" xlink:to="loc_us-gaap_DerivativeLiabilityMeasurementInput_96229ead-2c1e-4979-83af-a5d3458d2085" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofRiskSharingAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofRiskSharingAssetsandLiabilitiesDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofRiskSharingAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_1a6ebc1e-2dbd-4d76-be2e-35c362b31bce" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_95c1253a-d04e-44d5-92fd-6049420106f2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_1a6ebc1e-2dbd-4d76-be2e-35c362b31bce" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_95c1253a-d04e-44d5-92fd-6049420106f2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_a12a2db3-bcb1-4736-a712-5ab7a5828b29" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByAssetClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_95c1253a-d04e-44d5-92fd-6049420106f2" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_a12a2db3-bcb1-4736-a712-5ab7a5828b29" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_a12a2db3-bcb1-4736-a712-5ab7a5828b29_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_a12a2db3-bcb1-4736-a712-5ab7a5828b29" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_a12a2db3-bcb1-4736-a712-5ab7a5828b29_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_ad5e72a0-7237-4015-a85e-bfba70cb3ff2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_a12a2db3-bcb1-4736-a712-5ab7a5828b29" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_ad5e72a0-7237-4015-a85e-bfba70cb3ff2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RiskSharingArrangementMember_e38e2391-bf36-4f1c-86fb-f186d98e9d98" xlink:href="afrm-20251231.xsd#afrm_RiskSharingArrangementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_ad5e72a0-7237-4015-a85e-bfba70cb3ff2" xlink:to="loc_afrm_RiskSharingArrangementMember_e38e2391-bf36-4f1c-86fb-f186d98e9d98" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByLiabilityClassAxis_d67a09f5-a7ed-497f-8e00-0633f0588ed9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByLiabilityClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_95c1253a-d04e-44d5-92fd-6049420106f2" xlink:to="loc_us-gaap_FairValueByLiabilityClassAxis_d67a09f5-a7ed-497f-8e00-0633f0588ed9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_d67a09f5-a7ed-497f-8e00-0633f0588ed9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_d67a09f5-a7ed-497f-8e00-0633f0588ed9" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_d67a09f5-a7ed-497f-8e00-0633f0588ed9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_06c02486-d8a6-4eda-ba47-d3e2989829ad" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_d67a09f5-a7ed-497f-8e00-0633f0588ed9" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_06c02486-d8a6-4eda-ba47-d3e2989829ad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RiskSharingArrangementMember_4b10a629-a0c8-4a5c-a7dc-5fd01a27adc5" xlink:href="afrm-20251231.xsd#afrm_RiskSharingArrangementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_06c02486-d8a6-4eda-ba47-d3e2989829ad" xlink:to="loc_afrm_RiskSharingArrangementMember_4b10a629-a0c8-4a5c-a7dc-5fd01a27adc5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf25PercentDecreaseChangeInPrepaymentSpeed_95db9620-a354-4d4b-924e-8675fd6dbedc" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf25PercentDecreaseChangeInPrepaymentSpeed"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_1a6ebc1e-2dbd-4d76-be2e-35c362b31bce" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf25PercentDecreaseChangeInPrepaymentSpeed_95db9620-a354-4d4b-924e-8675fd6dbedc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf50PercentDecreaseChangeInPrepaymentSpeed_ca872a8a-8992-4b10-8c50-6137cb0339b9" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf50PercentDecreaseChangeInPrepaymentSpeed"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_1a6ebc1e-2dbd-4d76-be2e-35c362b31bce" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf50PercentDecreaseChangeInPrepaymentSpeed_ca872a8a-8992-4b10-8c50-6137cb0339b9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf25PercentAdverseChangeInLossRate_8c50bb15-83ad-4e46-8e6c-d538c0ab3265" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf25PercentAdverseChangeInLossRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_1a6ebc1e-2dbd-4d76-be2e-35c362b31bce" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf25PercentAdverseChangeInLossRate_8c50bb15-83ad-4e46-8e6c-d538c0ab3265" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf50PercentAdverseChangeInLossRate_5d1847eb-1f88-4d85-9e59-d3e5254fc36b" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf50PercentAdverseChangeInLossRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_1a6ebc1e-2dbd-4d76-be2e-35c362b31bce" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf50PercentAdverseChangeInLossRate_5d1847eb-1f88-4d85-9e59-d3e5254fc36b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf25PercentAdverseChangeInDiscountRate_2b18e693-373a-483a-a4f1-f5ca399dd5c3" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf25PercentAdverseChangeInDiscountRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_1a6ebc1e-2dbd-4d76-be2e-35c362b31bce" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf25PercentAdverseChangeInDiscountRate_2b18e693-373a-483a-a4f1-f5ca399dd5c3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf50PercentAdverseChangeInDiscountRate_ab1cc12c-fea3-4da7-a6c8-85400cd9d08d" xlink:href="afrm-20251231.xsd#afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf50PercentAdverseChangeInDiscountRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_1a6ebc1e-2dbd-4d76-be2e-35c362b31bce" xlink:to="loc_afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf50PercentAdverseChangeInDiscountRate_ab1cc12c-fea3-4da7-a6c8-85400cd9d08d" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesFairValueofFinancialAssetsandLiabilitiesScheduleofFairValueHierarchyforFinancialAssetsandLiabilitiesHeldatAmortizedCostDetailsDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#FairValueofFinancialAssetsandLiabilitiesFairValueofFinancialAssetsandLiabilitiesScheduleofFairValueHierarchyforFinancialAssetsandLiabilitiesHeldatAmortizedCostDetailsDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesFairValueofFinancialAssetsandLiabilitiesScheduleofFairValueHierarchyforFinancialAssetsandLiabilitiesHeldatAmortizedCostDetailsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems_62bc5cc4-2c04-4c5f-b2b0-393bf5badff3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureOfAssetAndLiabilityNotMeasuredAtFairValueTable_54481eac-b8fa-4d9e-b581-6aaf51249488" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueDisclosureOfAssetAndLiabilityNotMeasuredAtFairValueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems_62bc5cc4-2c04-4c5f-b2b0-393bf5badff3" xlink:to="loc_us-gaap_FairValueDisclosureOfAssetAndLiabilityNotMeasuredAtFairValueTable_54481eac-b8fa-4d9e-b581-6aaf51249488" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_afc05822-efe1-44fb-b47f-1b8b19d01785" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByMeasurementBasisAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueDisclosureOfAssetAndLiabilityNotMeasuredAtFairValueTable_54481eac-b8fa-4d9e-b581-6aaf51249488" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_afc05822-efe1-44fb-b47f-1b8b19d01785" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_afc05822-efe1-44fb-b47f-1b8b19d01785_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_afc05822-efe1-44fb-b47f-1b8b19d01785" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_afc05822-efe1-44fb-b47f-1b8b19d01785_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_0ab0f37c-ed46-4b6d-af99-464b0289d407" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueDisclosureItemAmountsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_afc05822-efe1-44fb-b47f-1b8b19d01785" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_0ab0f37c-ed46-4b6d-af99-464b0289d407" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_e86d4daa-f7aa-40bb-8d6a-cbb5a6735222" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_0ab0f37c-ed46-4b6d-af99-464b0289d407" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_e86d4daa-f7aa-40bb-8d6a-cbb5a6735222" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_848a2ded-71aa-4f5a-bd4b-c95e71371913" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_e86d4daa-f7aa-40bb-8d6a-cbb5a6735222" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_848a2ded-71aa-4f5a-bd4b-c95e71371913" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_1a6d32ba-9fcf-49ff-bf4a-46eda407a404" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_e86d4daa-f7aa-40bb-8d6a-cbb5a6735222" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_1a6d32ba-9fcf-49ff-bf4a-46eda407a404" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_7615713b-89a1-4b2e-a2d0-096bbcec8618" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueDisclosureOfAssetAndLiabilityNotMeasuredAtFairValueTable_54481eac-b8fa-4d9e-b581-6aaf51249488" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_7615713b-89a1-4b2e-a2d0-096bbcec8618" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7615713b-89a1-4b2e-a2d0-096bbcec8618_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_7615713b-89a1-4b2e-a2d0-096bbcec8618" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7615713b-89a1-4b2e-a2d0-096bbcec8618_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_51b9097d-1aa6-48ca-9f3a-e399bcf20bc6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_7615713b-89a1-4b2e-a2d0-096bbcec8618" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_51b9097d-1aa6-48ca-9f3a-e399bcf20bc6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_9b9bc37f-2c0c-4306-9fdf-ae5e1689ed59" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_51b9097d-1aa6-48ca-9f3a-e399bcf20bc6" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_9b9bc37f-2c0c-4306-9fdf-ae5e1689ed59" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_f46bd5fb-000d-468d-b25d-e1f6ff7e3814" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_51b9097d-1aa6-48ca-9f3a-e399bcf20bc6" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_f46bd5fb-000d-468d-b25d-e1f6ff7e3814" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_155e8eb1-60a1-44ec-99e4-4e9611da7131" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_51b9097d-1aa6-48ca-9f3a-e399bcf20bc6" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_155e8eb1-60a1-44ec-99e4-4e9611da7131" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_2be164f7-6362-4e16-9f33-a3d5c0a79385" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueDisclosureOfAssetAndLiabilityNotMeasuredAtFairValueTable_54481eac-b8fa-4d9e-b581-6aaf51249488" xlink:to="loc_us-gaap_DebtInstrumentAxis_2be164f7-6362-4e16-9f33-a3d5c0a79385" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_2be164f7-6362-4e16-9f33-a3d5c0a79385_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_2be164f7-6362-4e16-9f33-a3d5c0a79385" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_2be164f7-6362-4e16-9f33-a3d5c0a79385_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_62dcdf7a-f5aa-4958-aaa3-33271273d673" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_2be164f7-6362-4e16-9f33-a3d5c0a79385" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_62dcdf7a-f5aa-4958-aaa3-33271273d673" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ConvertibleSeniorNotesDue2026Member_c4ac63c3-4f7c-4b85-92a4-03315bf81e00" xlink:href="afrm-20251231.xsd#afrm_ConvertibleSeniorNotesDue2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_62dcdf7a-f5aa-4958-aaa3-33271273d673" xlink:to="loc_afrm_ConvertibleSeniorNotesDue2026Member_c4ac63c3-4f7c-4b85-92a4-03315bf81e00" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ConvertibleSeniorNotesDue2029Member_992f1abc-439a-409d-b27d-5cd3c9df8dd1" xlink:href="afrm-20251231.xsd#afrm_ConvertibleSeniorNotesDue2029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_62dcdf7a-f5aa-4958-aaa3-33271273d673" xlink:to="loc_afrm_ConvertibleSeniorNotesDue2029Member_992f1abc-439a-409d-b27d-5cd3c9df8dd1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableHeldForSaleFairValueDisclosure_c33f78cd-62f2-46ec-b849-d23acbafea38" xlink:href="afrm-20251231.xsd#afrm_FinancingReceivableHeldForSaleFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems_62bc5cc4-2c04-4c5f-b2b0-393bf5badff3" xlink:to="loc_afrm_FinancingReceivableHeldForSaleFairValueDisclosure_c33f78cd-62f2-46ec-b849-d23acbafea38" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableFairValueDisclosure_a518d92b-3225-4b01-8d86-d115e10e0318" xlink:href="afrm-20251231.xsd#afrm_FinancingReceivableFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems_62bc5cc4-2c04-4c5f-b2b0-393bf5badff3" xlink:to="loc_afrm_FinancingReceivableFairValueDisclosure_a518d92b-3225-4b01-8d86-d115e10e0318" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableAssetsFairValueDisclosure_31c8b528-9f2a-4f28-883d-124fcbf5ae8e" xlink:href="afrm-20251231.xsd#afrm_FinancingReceivableAssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems_62bc5cc4-2c04-4c5f-b2b0-393bf5badff3" xlink:to="loc_afrm_FinancingReceivableAssetsFairValueDisclosure_31c8b528-9f2a-4f28-883d-124fcbf5ae8e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtFairValueDisclosures_9b947088-1f19-454b-b111-d59189e1f8f1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConvertibleDebtFairValueDisclosures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems_62bc5cc4-2c04-4c5f-b2b0-393bf5badff3" xlink:to="loc_us-gaap_ConvertibleDebtFairValueDisclosures_9b947088-1f19-454b-b111-d59189e1f8f1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesPayableFairValueDisclosure_ea4f8dd4-f9c1-48c7-a7c8-70341f2e20ad" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NotesPayableFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems_62bc5cc4-2c04-4c5f-b2b0-393bf5badff3" xlink:to="loc_us-gaap_NotesPayableFairValueDisclosure_ea4f8dd4-f9c1-48c7-a7c8-70341f2e20ad" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LinesOfCreditFairValueDisclosure_cc5e0089-72c0-476b-a056-921d02839ae4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LinesOfCreditFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems_62bc5cc4-2c04-4c5f-b2b0-393bf5badff3" xlink:to="loc_us-gaap_LinesOfCreditFairValueDisclosure_cc5e0089-72c0-476b-a056-921d02839ae4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtLiabilitiesFairValueDisclosure_f6c7e775-188f-4698-a7dd-96649f0f03e0" xlink:href="afrm-20251231.xsd#afrm_DebtLiabilitiesFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureAssetAndLiabilityNotMeasuredAtFairValueLineItems_62bc5cc4-2c04-4c5f-b2b0-393bf5badff3" xlink:to="loc_afrm_DebtLiabilitiesFairValueDisclosure_f6c7e775-188f-4698-a7dd-96649f0f03e0" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/StockholdersEquityScheduleofCommonStockReservedforIssuanceDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#StockholdersEquityScheduleofCommonStockReservedforIssuanceDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/StockholdersEquityScheduleofCommonStockReservedforIssuanceDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockLineItems_1e68b3b9-918e-4e0d-ab76-920f2d31be4c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_2774e8b3-9aa0-4941-8605-352c24893482" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfStockByClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_1e68b3b9-918e-4e0d-ab76-920f2d31be4c" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_2774e8b3-9aa0-4941-8605-352c24893482" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_0e7d86c5-d1ba-492c-b18f-02082d5e7dc2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_2774e8b3-9aa0-4941-8605-352c24893482" xlink:to="loc_us-gaap_AwardTypeAxis_0e7d86c5-d1ba-492c-b18f-02082d5e7dc2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0e7d86c5-d1ba-492c-b18f-02082d5e7dc2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_0e7d86c5-d1ba-492c-b18f-02082d5e7dc2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0e7d86c5-d1ba-492c-b18f-02082d5e7dc2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2f76b16f-ea6a-4b6a-9d95-866d8c3bce2a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_0e7d86c5-d1ba-492c-b18f-02082d5e7dc2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2f76b16f-ea6a-4b6a-9d95-866d8c3bce2a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_8ef40843-8963-446b-a55c-b44846743758" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2f76b16f-ea6a-4b6a-9d95-866d8c3bce2a" xlink:to="loc_us-gaap_EmployeeStockOptionMember_8ef40843-8963-446b-a55c-b44846743758" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ShareBasedPaymentAgreementOptionFutureGrantMember_3c52d8de-e615-4c5b-a4da-6ef92c0ab971" xlink:href="afrm-20251231.xsd#afrm_ShareBasedPaymentAgreementOptionFutureGrantMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2f76b16f-ea6a-4b6a-9d95-866d8c3bce2a" xlink:to="loc_afrm_ShareBasedPaymentAgreementOptionFutureGrantMember_3c52d8de-e615-4c5b-a4da-6ef92c0ab971" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_7a354e98-0cff-4951-9ac4-c2430b0fd5ac" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_1e68b3b9-918e-4e0d-ab76-920f2d31be4c" xlink:to="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_7a354e98-0cff-4951-9ac4-c2430b0fd5ac" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/StockholdersEquityAdditionalInformationDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#StockholdersEquityAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/StockholdersEquityAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockLineItems_019bd44a-4b02-7180-97a0-f8247febad92" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_d3ed2c54-600e-4130-952f-f916d1f4820b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfStockByClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_019bd44a-4b02-7180-97a0-f8247febad92" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_d3ed2c54-600e-4130-952f-f916d1f4820b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_019bd44a-4b02-7119-971b-593ddd178e6e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_d3ed2c54-600e-4130-952f-f916d1f4820b" xlink:to="loc_us-gaap_StatementClassOfStockAxis_019bd44a-4b02-7119-971b-593ddd178e6e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019bd44a-4b02-7119-971b-593ddd178e6e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019bd44a-4b02-7119-971b-593ddd178e6e" xlink:to="loc_us-gaap_ClassOfStockDomain_019bd44a-4b02-7119-971b-593ddd178e6e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019bd44a-4b02-7c18-8623-ea7636cb99aa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019bd44a-4b02-7119-971b-593ddd178e6e" xlink:to="loc_us-gaap_ClassOfStockDomain_019bd44a-4b02-7c18-8623-ea7636cb99aa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassAMember_019bd44a-4b02-75be-b89e-b19114ce0cf2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonClassAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019bd44a-4b02-7c18-8623-ea7636cb99aa" xlink:to="loc_us-gaap_CommonClassAMember_019bd44a-4b02-75be-b89e-b19114ce0cf2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_019bd44a-4b02-72b2-a303-1302259eb24a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019bd44a-4b02-7c18-8623-ea7636cb99aa" xlink:to="loc_us-gaap_CommonClassBMember_019bd44a-4b02-72b2-a303-1302259eb24a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfWarrantOrRightAxis_019bd44a-4b02-7e32-82ed-18c0ce068856" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfWarrantOrRightAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_d3ed2c54-600e-4130-952f-f916d1f4820b" xlink:to="loc_us-gaap_ClassOfWarrantOrRightAxis_019bd44a-4b02-7e32-82ed-18c0ce068856" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfWarrantOrRightDomain_019bd44a-4b02-7e32-82ed-18c0ce068856_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfWarrantOrRightDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ClassOfWarrantOrRightAxis_019bd44a-4b02-7e32-82ed-18c0ce068856" xlink:to="loc_us-gaap_ClassOfWarrantOrRightDomain_019bd44a-4b02-7e32-82ed-18c0ce068856_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfWarrantOrRightDomain_019bd44a-4b02-74de-9b41-c38a9a506c0a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfWarrantOrRightDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ClassOfWarrantOrRightAxis_019bd44a-4b02-7e32-82ed-18c0ce068856" xlink:to="loc_us-gaap_ClassOfWarrantOrRightDomain_019bd44a-4b02-74de-9b41-c38a9a506c0a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementWithAmazonNewUsersAcquiredPriorToFebruary1Member_019bd44a-4b02-75cf-8e46-ff23a1216724" xlink:href="afrm-20251231.xsd#afrm_CommercialAgreementWithAmazonNewUsersAcquiredPriorToFebruary1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfWarrantOrRightDomain_019bd44a-4b02-74de-9b41-c38a9a506c0a" xlink:to="loc_afrm_CommercialAgreementWithAmazonNewUsersAcquiredPriorToFebruary1Member_019bd44a-4b02-75cf-8e46-ff23a1216724" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementWithAmazonNewUsersAcquiredSubsequentToFebruary1Member_019bd44a-4b02-7c27-b65c-074ffe7c60ad" xlink:href="afrm-20251231.xsd#afrm_CommercialAgreementWithAmazonNewUsersAcquiredSubsequentToFebruary1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfWarrantOrRightDomain_019bd44a-4b02-74de-9b41-c38a9a506c0a" xlink:to="loc_afrm_CommercialAgreementWithAmazonNewUsersAcquiredSubsequentToFebruary1Member_019bd44a-4b02-7c27-b65c-074ffe7c60ad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementWithAmazonWarrantsMember_019bd44a-4b02-7800-9bdd-1513af5a9eff" xlink:href="afrm-20251231.xsd#afrm_CommercialAgreementWithAmazonWarrantsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfWarrantOrRightDomain_019bd44a-4b02-74de-9b41-c38a9a506c0a" xlink:to="loc_afrm_CommercialAgreementWithAmazonWarrantsMember_019bd44a-4b02-7800-9bdd-1513af5a9eff" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_019bd44a-4b02-7d2f-9764-ca32809d7882" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_d3ed2c54-600e-4130-952f-f916d1f4820b" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_019bd44a-4b02-7d2f-9764-ca32809d7882" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_019bd44a-4b02-7d2f-9764-ca32809d7882_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_019bd44a-4b02-7d2f-9764-ca32809d7882" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_019bd44a-4b02-7d2f-9764-ca32809d7882_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_019bd44a-4b02-75aa-b9f4-1f0cca59faeb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_019bd44a-4b02-7d2f-9764-ca32809d7882" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_019bd44a-4b02-75aa-b9f4-1f0cca59faeb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputExpectedDividendRateMember_019bd44a-4b02-7f9b-8076-ea6f84957087" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputExpectedDividendRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_019bd44a-4b02-75aa-b9f4-1f0cca59faeb" xlink:to="loc_us-gaap_MeasurementInputExpectedDividendRateMember_019bd44a-4b02-7f9b-8076-ea6f84957087" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputExpectedTermMember_019bec5f-6a91-71d8-bb3f-84697ea5f8b1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputExpectedTermMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_019bd44a-4b02-75aa-b9f4-1f0cca59faeb" xlink:to="loc_us-gaap_MeasurementInputExpectedTermMember_019bec5f-6a91-71d8-bb3f-84697ea5f8b1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputPriceVolatilityMember_019c1015-d240-7e6a-bb06-2890edb41ee0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputPriceVolatilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_019bd44a-4b02-75aa-b9f4-1f0cca59faeb" xlink:to="loc_us-gaap_MeasurementInputPriceVolatilityMember_019c1015-d240-7e6a-bb06-2890edb41ee0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputRiskFreeInterestRateMember_019bd44a-4b02-774a-a859-9962f59024fa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MeasurementInputRiskFreeInterestRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_019bd44a-4b02-75aa-b9f4-1f0cca59faeb" xlink:to="loc_us-gaap_MeasurementInputRiskFreeInterestRateMember_019bd44a-4b02-774a-a859-9962f59024fa" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_NumberOfClassesOfCommonStock_019bd44a-4b02-7ea7-a68f-dbdb3aa6c0bf" xlink:href="afrm-20251231.xsd#afrm_NumberOfClassesOfCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_019bd44a-4b02-7180-97a0-f8247febad92" xlink:to="loc_afrm_NumberOfClassesOfCommonStock_019bd44a-4b02-7ea7-a68f-dbdb3aa6c0bf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommonStockVotingRightsNumberOfVotesPerShare_019bd44a-4b02-79a0-813c-e1107dd7a95b" xlink:href="afrm-20251231.xsd#afrm_CommonStockVotingRightsNumberOfVotesPerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_019bd44a-4b02-7180-97a0-f8247febad92" xlink:to="loc_afrm_CommonStockVotingRightsNumberOfVotesPerShare_019bd44a-4b02-79a0-813c-e1107dd7a95b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommonStockConversionRatio_019bd44a-4b02-7d46-a429-d53da94bbc3b" xlink:href="afrm-20251231.xsd#afrm_CommonStockConversionRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_019bd44a-4b02-7180-97a0-f8247febad92" xlink:to="loc_afrm_CommonStockConversionRatio_019bd44a-4b02-7d46-a429-d53da94bbc3b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1_019bd44a-4b02-7b0f-9f79-f6ea7f14efec" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_019bd44a-4b02-7180-97a0-f8247febad92" xlink:to="loc_us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1_019bd44a-4b02-7b0f-9f79-f6ea7f14efec" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WarrantsAndRightsOutstandingMeasurementInput_019bd44a-4b02-7ad9-9193-4d1849fa4d69" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WarrantsAndRightsOutstandingMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_019bd44a-4b02-7180-97a0-f8247febad92" xlink:to="loc_us-gaap_WarrantsAndRightsOutstandingMeasurementInput_019bd44a-4b02-7ad9-9193-4d1849fa4d69" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ClassOfWarrantsOrRightsExpensesOnGrantDateFairValueOnSaleOfWarrants_019bd44a-4b02-7033-95de-c9bd95c33b32" xlink:href="afrm-20251231.xsd#afrm_ClassOfWarrantsOrRightsExpensesOnGrantDateFairValueOnSaleOfWarrants"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_019bd44a-4b02-7180-97a0-f8247febad92" xlink:to="loc_afrm_ClassOfWarrantsOrRightsExpensesOnGrantDateFairValueOnSaleOfWarrants_019bd44a-4b02-7033-95de-c9bd95c33b32" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ClassOfWarrantOrRightUnrecognizedCompensationExpense_019bd45d-1fde-721e-9a58-0a7b47330922" xlink:href="afrm-20251231.xsd#afrm_ClassOfWarrantOrRightUnrecognizedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_019bd44a-4b02-7180-97a0-f8247febad92" xlink:to="loc_afrm_ClassOfWarrantOrRightUnrecognizedCompensationExpense_019bd45d-1fde-721e-9a58-0a7b47330922" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ClassOfWarrantOrRightCostNotYetRecognizedPeriodForRecognition_019bd45d-1fde-7691-84c2-70162c34ece3" xlink:href="afrm-20251231.xsd#afrm_ClassOfWarrantOrRightCostNotYetRecognizedPeriodForRecognition"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_019bd44a-4b02-7180-97a0-f8247febad92" xlink:to="loc_afrm_ClassOfWarrantOrRightCostNotYetRecognizedPeriodForRecognition_019bd45d-1fde-7691-84c2-70162c34ece3" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/EquityIncentivePlansAdditionalInformationDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#EquityIncentivePlansAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/EquityIncentivePlansAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6a4cd28d-cb63-4221-97ae-34fc593e26ab" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ec7e71a3-efb2-460a-ae5f-a021b1eef233" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6a4cd28d-cb63-4221-97ae-34fc593e26ab" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ec7e71a3-efb2-460a-ae5f-a021b1eef233" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_f46f1894-44b0-4856-9826-293d67ff9073" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ec7e71a3-efb2-460a-ae5f-a021b1eef233" xlink:to="loc_us-gaap_PlanNameAxis_f46f1894-44b0-4856-9826-293d67ff9073" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_f46f1894-44b0-4856-9826-293d67ff9073_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_f46f1894-44b0-4856-9826-293d67ff9073" xlink:to="loc_us-gaap_PlanNameDomain_f46f1894-44b0-4856-9826-293d67ff9073_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_bb639223-0009-42d2-b75e-a67b81dbe60d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_f46f1894-44b0-4856-9826-293d67ff9073" xlink:to="loc_us-gaap_PlanNameDomain_bb639223-0009-42d2-b75e-a67b81dbe60d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AmendedAndRestated2012StockPlanMember_f0762bcd-adc3-43da-bcba-ba72fcda8537" xlink:href="afrm-20251231.xsd#afrm_AmendedAndRestated2012StockPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_bb639223-0009-42d2-b75e-a67b81dbe60d" xlink:to="loc_afrm_AmendedAndRestated2012StockPlanMember_f0762bcd-adc3-43da-bcba-ba72fcda8537" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_A2020EmployeeStockPurchasePlanMember_7a475b4a-de17-4623-a447-0aac36f6d4d5" xlink:href="afrm-20251231.xsd#afrm_A2020EmployeeStockPurchasePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_bb639223-0009-42d2-b75e-a67b81dbe60d" xlink:to="loc_afrm_A2020EmployeeStockPurchasePlanMember_7a475b4a-de17-4623-a447-0aac36f6d4d5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_882515b1-21b1-43e7-b3f0-269b7563863e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ec7e71a3-efb2-460a-ae5f-a021b1eef233" xlink:to="loc_us-gaap_StatementClassOfStockAxis_882515b1-21b1-43e7-b3f0-269b7563863e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_882515b1-21b1-43e7-b3f0-269b7563863e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_882515b1-21b1-43e7-b3f0-269b7563863e" xlink:to="loc_us-gaap_ClassOfStockDomain_882515b1-21b1-43e7-b3f0-269b7563863e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_2482d28b-bf29-4c26-ab20-da81b8357ef0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_882515b1-21b1-43e7-b3f0-269b7563863e" xlink:to="loc_us-gaap_ClassOfStockDomain_2482d28b-bf29-4c26-ab20-da81b8357ef0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassAMember_e594c6d9-680f-48f5-84f0-47658c38ca9c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonClassAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_2482d28b-bf29-4c26-ab20-da81b8357ef0" xlink:to="loc_us-gaap_CommonClassAMember_e594c6d9-680f-48f5-84f0-47658c38ca9c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_1fa6e7bf-b587-4a74-a6db-e124491efffd" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ec7e71a3-efb2-460a-ae5f-a021b1eef233" xlink:to="loc_srt_RangeAxis_1fa6e7bf-b587-4a74-a6db-e124491efffd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_1fa6e7bf-b587-4a74-a6db-e124491efffd_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_1fa6e7bf-b587-4a74-a6db-e124491efffd" xlink:to="loc_srt_RangeMember_1fa6e7bf-b587-4a74-a6db-e124491efffd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_b6c7a43b-610a-41fe-8bab-dd1e3fedb14a" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_1fa6e7bf-b587-4a74-a6db-e124491efffd" xlink:to="loc_srt_RangeMember_b6c7a43b-610a-41fe-8bab-dd1e3fedb14a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_ef5f6b3a-2509-40cf-97dc-b1cf180bfc96" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_b6c7a43b-610a-41fe-8bab-dd1e3fedb14a" xlink:to="loc_srt_MinimumMember_ef5f6b3a-2509-40cf-97dc-b1cf180bfc96" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_03d15efc-f894-48bd-b721-f34333a85642" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_b6c7a43b-610a-41fe-8bab-dd1e3fedb14a" xlink:to="loc_srt_MaximumMember_03d15efc-f894-48bd-b721-f34333a85642" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_e37fca3f-22db-4d20-aa0f-e37f7ff0c25b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ec7e71a3-efb2-460a-ae5f-a021b1eef233" xlink:to="loc_us-gaap_AwardTypeAxis_e37fca3f-22db-4d20-aa0f-e37f7ff0c25b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e37fca3f-22db-4d20-aa0f-e37f7ff0c25b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_e37fca3f-22db-4d20-aa0f-e37f7ff0c25b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e37fca3f-22db-4d20-aa0f-e37f7ff0c25b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1bf2bcd6-0192-4f9a-8e68-6a8a27b0bd4d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_e37fca3f-22db-4d20-aa0f-e37f7ff0c25b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1bf2bcd6-0192-4f9a-8e68-6a8a27b0bd4d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_c4d5958c-6075-477e-9cc7-2904e4cb775b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1bf2bcd6-0192-4f9a-8e68-6a8a27b0bd4d" xlink:to="loc_us-gaap_EmployeeStockOptionMember_c4d5958c-6075-477e-9cc7-2904e4cb775b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_PerformanceBasedStockOptionsMember_9d936d08-4f55-4af5-bae1-08bc350fcf9e" xlink:href="afrm-20251231.xsd#afrm_PerformanceBasedStockOptionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1bf2bcd6-0192-4f9a-8e68-6a8a27b0bd4d" xlink:to="loc_afrm_PerformanceBasedStockOptionsMember_9d936d08-4f55-4af5-bae1-08bc350fcf9e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_dbf531a6-9eaf-48bc-9d2a-0159f56fbe99" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1bf2bcd6-0192-4f9a-8e68-6a8a27b0bd4d" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_dbf531a6-9eaf-48bc-9d2a-0159f56fbe99" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceSharesMember_1aafed63-3290-4a13-8369-ef0d57f72c13" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PerformanceSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1bf2bcd6-0192-4f9a-8e68-6a8a27b0bd4d" xlink:to="loc_us-gaap_PerformanceSharesMember_1aafed63-3290-4a13-8369-ef0d57f72c13" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockMember_fd3ee3c7-ac47-4698-ba77-58b8161672dc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1bf2bcd6-0192-4f9a-8e68-6a8a27b0bd4d" xlink:to="loc_us-gaap_EmployeeStockMember_fd3ee3c7-ac47-4698-ba77-58b8161672dc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VestingAxis_2f7e1ccc-e437-487a-9191-fd7e482fec35" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_VestingAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ec7e71a3-efb2-460a-ae5f-a021b1eef233" xlink:to="loc_us-gaap_VestingAxis_2f7e1ccc-e437-487a-9191-fd7e482fec35" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VestingDomain_2f7e1ccc-e437-487a-9191-fd7e482fec35_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_VestingDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VestingAxis_2f7e1ccc-e437-487a-9191-fd7e482fec35" xlink:to="loc_us-gaap_VestingDomain_2f7e1ccc-e437-487a-9191-fd7e482fec35_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VestingDomain_dfab46d7-e849-470f-b5c5-dee7adc7a6e8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_VestingDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VestingAxis_2f7e1ccc-e437-487a-9191-fd7e482fec35" xlink:to="loc_us-gaap_VestingDomain_dfab46d7-e849-470f-b5c5-dee7adc7a6e8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheOneMember_2c3bbc42-60a0-4168-98fd-f16deb7c3ff9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationAwardTrancheOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_dfab46d7-e849-470f-b5c5-dee7adc7a6e8" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheOneMember_2c3bbc42-60a0-4168-98fd-f16deb7c3ff9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheTwoMember_e0e6a6c5-0279-4cb0-bf13-a39884fcde2b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationAwardTrancheTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_dfab46d7-e849-470f-b5c5-dee7adc7a6e8" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheTwoMember_e0e6a6c5-0279-4cb0-bf13-a39884fcde2b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_a23cb8f4-7e16-4d93-bc25-2e9acb440ddc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6a4cd28d-cb63-4221-97ae-34fc593e26ab" xlink:to="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_a23cb8f4-7e16-4d93-bc25-2e9acb440ddc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_f055a5d9-795c-4d94-b3fb-b01fdfad108e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6a4cd28d-cb63-4221-97ae-34fc593e26ab" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_f055a5d9-795c-4d94-b3fb-b01fdfad108e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_9b610b01-f858-4a35-b68c-da998305fed1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6a4cd28d-cb63-4221-97ae-34fc593e26ab" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_9b610b01-f858-4a35-b68c-da998305fed1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_ab775501-0990-4f0e-af2b-2052f42badfb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6a4cd28d-cb63-4221-97ae-34fc593e26ab" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_ab775501-0990-4f0e-af2b-2052f42badfb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod_8b92752d-53eb-494c-ac54-5989cf4bd50b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6a4cd28d-cb63-4221-97ae-34fc593e26ab" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod_8b92752d-53eb-494c-ac54-5989cf4bd50b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_fc632ca4-0357-45f0-8b46-abed0b0017e3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6a4cd28d-cb63-4221-97ae-34fc593e26ab" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_fc632ca4-0357-45f0-8b46-abed0b0017e3" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions_3e8b84f6-c12e-4c77-9ae9-98d61977bae6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6a4cd28d-cb63-4221-97ae-34fc593e26ab" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions_3e8b84f6-c12e-4c77-9ae9-98d61977bae6" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_cdcbc1a1-3a46-40c0-ad37-82212a333563" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6a4cd28d-cb63-4221-97ae-34fc593e26ab" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_cdcbc1a1-3a46-40c0-ad37-82212a333563" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_d814d854-e2b8-456d-ac0c-800747b196a9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6a4cd28d-cb63-4221-97ae-34fc593e26ab" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_d814d854-e2b8-456d-ac0c-800747b196a9" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_03c80dd1-5dc1-4aed-a292-f6356a92e097" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6a4cd28d-cb63-4221-97ae-34fc593e26ab" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_03c80dd1-5dc1-4aed-a292-f6356a92e097" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ShareBasedPaymentArrangementExpensePeriodForRecognition_07ee05cb-7181-4cd8-a1d4-0d5640590d71" xlink:href="afrm-20251231.xsd#afrm_ShareBasedPaymentArrangementExpensePeriodForRecognition"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6a4cd28d-cb63-4221-97ae-34fc593e26ab" xlink:to="loc_afrm_ShareBasedPaymentArrangementExpensePeriodForRecognition_07ee05cb-7181-4cd8-a1d4-0d5640590d71" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_a7e77274-05ec-4f3a-bc1a-10b926a452cb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6a4cd28d-cb63-4221-97ae-34fc593e26ab" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_a7e77274-05ec-4f3a-bc1a-10b926a452cb" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod_94194ba8-bd50-4715-95b1-6fd849d62f5e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6a4cd28d-cb63-4221-97ae-34fc593e26ab" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod_94194ba8-bd50-4715-95b1-6fd849d62f5e" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ShareBasedCompensationArrangementByShareBasedPaymentAwardPurchasePeriod_9f5003df-86e2-404e-ac01-4e84a27e25f3" xlink:href="afrm-20251231.xsd#afrm_ShareBasedCompensationArrangementByShareBasedPaymentAwardPurchasePeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6a4cd28d-cb63-4221-97ae-34fc593e26ab" xlink:to="loc_afrm_ShareBasedCompensationArrangementByShareBasedPaymentAwardPurchasePeriod_9f5003df-86e2-404e-ac01-4e84a27e25f3" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharePurchasePriceDiscountPercent_50dd106c-2b26-4f9d-a253-aa7f42561e8b" xlink:href="afrm-20251231.xsd#afrm_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharePurchasePriceDiscountPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6a4cd28d-cb63-4221-97ae-34fc593e26ab" xlink:to="loc_afrm_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharePurchasePriceDiscountPercent_50dd106c-2b26-4f9d-a253-aa7f42561e8b" xlink:type="arc" order="14"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/EquityIncentivePlansScheduleofStockOptionActivityAndValueCreationAwardactivityDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#EquityIncentivePlansScheduleofStockOptionActivityAndValueCreationAwardactivityDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/EquityIncentivePlansScheduleofStockOptionActivityAndValueCreationAwardactivityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_69e95a0a-5e5d-4368-9e25-ae25998d63b7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_406d3fa2-336e-465c-ba63-c08262366204" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_69e95a0a-5e5d-4368-9e25-ae25998d63b7" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_406d3fa2-336e-465c-ba63-c08262366204" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_5fff4a06-9fa5-4e4b-9919-4522abde9f66" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_406d3fa2-336e-465c-ba63-c08262366204" xlink:to="loc_us-gaap_AwardTypeAxis_5fff4a06-9fa5-4e4b-9919-4522abde9f66" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_5fff4a06-9fa5-4e4b-9919-4522abde9f66_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_5fff4a06-9fa5-4e4b-9919-4522abde9f66" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_5fff4a06-9fa5-4e4b-9919-4522abde9f66_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_6f05fac4-6ef4-44da-a762-b48eb2375020" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_5fff4a06-9fa5-4e4b-9919-4522abde9f66" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_6f05fac4-6ef4-44da-a762-b48eb2375020" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_PerformanceBasedStockOptionsMember_b6916c35-5969-4a85-bd77-847f2dbc366d" xlink:href="afrm-20251231.xsd#afrm_PerformanceBasedStockOptionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_6f05fac4-6ef4-44da-a762-b48eb2375020" xlink:to="loc_afrm_PerformanceBasedStockOptionsMember_b6916c35-5969-4a85-bd77-847f2dbc366d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_18bb4784-7ac5-4baa-a141-003f925f0f3f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_69e95a0a-5e5d-4368-9e25-ae25998d63b7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_18bb4784-7ac5-4baa-a141-003f925f0f3f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_89ae0267-11ce-4676-b031-bb4abc2d2e52" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_18bb4784-7ac5-4baa-a141-003f925f0f3f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_89ae0267-11ce-4676-b031-bb4abc2d2e52" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_a85d1a77-7d9f-477a-8640-58f876606751" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_18bb4784-7ac5-4baa-a141-003f925f0f3f" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_a85d1a77-7d9f-477a-8640-58f876606751" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod_10b8ec5d-d11e-4bc4-a7b9-98e639b60636" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_18bb4784-7ac5-4baa-a141-003f925f0f3f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod_10b8ec5d-d11e-4bc4-a7b9-98e639b60636" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_ab79292e-0e9a-42da-845a-785432b3fde6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber_4852dc98-7dfa-4788-b501-6c9920b39b9d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_69e95a0a-5e5d-4368-9e25-ae25998d63b7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber_4852dc98-7dfa-4788-b501-6c9920b39b9d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber_f052f55e-adb9-43c4-96d5-32e3c0536b62" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_69e95a0a-5e5d-4368-9e25-ae25998d63b7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber_f052f55e-adb9-43c4-96d5-32e3c0536b62" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_b50e4ffc-4d53-4266-b084-d7e067be1528" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_69e95a0a-5e5d-4368-9e25-ae25998d63b7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_b50e4ffc-4d53-4266-b084-d7e067be1528" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_709a3d48-842e-4ee9-ba93-1b2817987585" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_b50e4ffc-4d53-4266-b084-d7e067be1528" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_709a3d48-842e-4ee9-ba93-1b2817987585" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_87568445-62ca-4723-b836-4c75caa7c9d1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_b50e4ffc-4d53-4266-b084-d7e067be1528" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_87568445-62ca-4723-b836-4c75caa7c9d1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_425d92f6-baa3-493c-b596-fbfce65f7c2b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_b50e4ffc-4d53-4266-b084-d7e067be1528" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_425d92f6-baa3-493c-b596-fbfce65f7c2b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_adaa48c7-6609-4799-8cee-ef75e2b72d41" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice_24ee5b57-43e3-41d3-a597-ace8f413f592" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_69e95a0a-5e5d-4368-9e25-ae25998d63b7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice_24ee5b57-43e3-41d3-a597-ace8f413f592" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice_9170f460-d6b7-492f-80e0-60baa655c78e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_69e95a0a-5e5d-4368-9e25-ae25998d63b7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice_9170f460-d6b7-492f-80e0-60baa655c78e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAdditionalDisclosuresAbstract_04faac92-0022-457c-a74a-312eecb2f48d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAdditionalDisclosuresAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_69e95a0a-5e5d-4368-9e25-ae25998d63b7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAdditionalDisclosuresAbstract_04faac92-0022-457c-a74a-312eecb2f48d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_WeightedAverageRemainingContractualTermAbstract_23854d01-46d2-4011-bc0a-a270b8df093d" xlink:href="afrm-20251231.xsd#afrm_WeightedAverageRemainingContractualTermAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAdditionalDisclosuresAbstract_04faac92-0022-457c-a74a-312eecb2f48d" xlink:to="loc_afrm_WeightedAverageRemainingContractualTermAbstract_23854d01-46d2-4011-bc0a-a270b8df093d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_1bdce36b-707f-48f9-9714-762e65c50e17" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_afrm_WeightedAverageRemainingContractualTermAbstract_23854d01-46d2-4011-bc0a-a270b8df093d" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_1bdce36b-707f-48f9-9714-762e65c50e17" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1_65f72168-afd3-405f-b0d5-d26f06c544fb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_afrm_WeightedAverageRemainingContractualTermAbstract_23854d01-46d2-4011-bc0a-a270b8df093d" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1_65f72168-afd3-405f-b0d5-d26f06c544fb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1_69c86156-d946-4f67-a837-3f30a25e8f1e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_afrm_WeightedAverageRemainingContractualTermAbstract_23854d01-46d2-4011-bc0a-a270b8df093d" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1_69c86156-d946-4f67-a837-3f30a25e8f1e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AggregateIntrinsicValueAbstract_5b16a406-1dea-4289-bb2b-84bf087b7c0d" xlink:href="afrm-20251231.xsd#afrm_AggregateIntrinsicValueAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAdditionalDisclosuresAbstract_04faac92-0022-457c-a74a-312eecb2f48d" xlink:to="loc_afrm_AggregateIntrinsicValueAbstract_5b16a406-1dea-4289-bb2b-84bf087b7c0d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1_e9b5c78a-bbae-4b49-8494-2753b1c1a437" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_afrm_AggregateIntrinsicValueAbstract_5b16a406-1dea-4289-bb2b-84bf087b7c0d" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1_e9b5c78a-bbae-4b49-8494-2753b1c1a437" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue_9910ad14-2f48-4ef3-8fb1-1d01baf66bd3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_afrm_AggregateIntrinsicValueAbstract_5b16a406-1dea-4289-bb2b-84bf087b7c0d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue_9910ad14-2f48-4ef3-8fb1-1d01baf66bd3" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/EquityIncentivePlansScheduleofRSUActivityDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#EquityIncentivePlansScheduleofRSUActivityDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/EquityIncentivePlansScheduleofRSUActivityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_344eb35b-3931-40e9-9a18-011655c8968b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_e9984c68-46e2-4fed-a913-38e401fd2139" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_344eb35b-3931-40e9-9a18-011655c8968b" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_e9984c68-46e2-4fed-a913-38e401fd2139" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_18599349-1b2a-4531-a23d-c48c5ece584a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_e9984c68-46e2-4fed-a913-38e401fd2139" xlink:to="loc_us-gaap_AwardTypeAxis_18599349-1b2a-4531-a23d-c48c5ece584a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_18599349-1b2a-4531-a23d-c48c5ece584a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_18599349-1b2a-4531-a23d-c48c5ece584a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_18599349-1b2a-4531-a23d-c48c5ece584a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_bf864e34-b2c1-4d74-9931-f5081bc0e7cf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_18599349-1b2a-4531-a23d-c48c5ece584a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_bf864e34-b2c1-4d74-9931-f5081bc0e7cf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_0253abc5-b169-4d41-a8cf-2a644b9d580f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_bf864e34-b2c1-4d74-9931-f5081bc0e7cf" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_0253abc5-b169-4d41-a8cf-2a644b9d580f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_325b0ec8-0097-4e57-a8b0-f36feedbea96" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_344eb35b-3931-40e9-9a18-011655c8968b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_325b0ec8-0097-4e57-a8b0-f36feedbea96" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_135ae13b-ad7f-47be-b90a-bb192bca1b81" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_325b0ec8-0097-4e57-a8b0-f36feedbea96" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_135ae13b-ad7f-47be-b90a-bb192bca1b81" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_4e16ca1f-72c7-4203-bd15-04a441b76b4c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_325b0ec8-0097-4e57-a8b0-f36feedbea96" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_4e16ca1f-72c7-4203-bd15-04a441b76b4c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_28679b26-dad3-45b0-b5f0-8758a4d5a806" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_325b0ec8-0097-4e57-a8b0-f36feedbea96" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_28679b26-dad3-45b0-b5f0-8758a4d5a806" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_98e949b4-a8fe-4499-83de-d3ae7b93b556" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_325b0ec8-0097-4e57-a8b0-f36feedbea96" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_98e949b4-a8fe-4499-83de-d3ae7b93b556" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_1ecd371c-97bc-4419-b2f7-e21bf06893e4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_e5656e6b-fcb0-433e-8cd1-461e480bc20a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_344eb35b-3931-40e9-9a18-011655c8968b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_e5656e6b-fcb0-433e-8cd1-461e480bc20a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_c3370dac-c8d1-474e-85ae-12fe341f117c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_e5656e6b-fcb0-433e-8cd1-461e480bc20a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_c3370dac-c8d1-474e-85ae-12fe341f117c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_26baea84-64f2-4e5f-b6a1-dd1a520aca81" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_e5656e6b-fcb0-433e-8cd1-461e480bc20a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_26baea84-64f2-4e5f-b6a1-dd1a520aca81" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_0552b489-b462-4a07-93a3-4a49e8c8399c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_e5656e6b-fcb0-433e-8cd1-461e480bc20a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_0552b489-b462-4a07-93a3-4a49e8c8399c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_3501d8ee-c376-4e57-8d62-74cd68250735" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_e5656e6b-fcb0-433e-8cd1-461e480bc20a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_3501d8ee-c376-4e57-8d62-74cd68250735" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_aedd2cb2-b6d9-41ec-bcbf-a2aa7c9f2381" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/EquityIncentivePlansScheduleofPSUActivityDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#EquityIncentivePlansScheduleofPSUActivityDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/EquityIncentivePlansScheduleofPSUActivityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_b311e4bd-43c5-41dd-a904-d545ad8d143f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_c5125099-1028-4a9f-a976-55e43729f46d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_b311e4bd-43c5-41dd-a904-d545ad8d143f" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_c5125099-1028-4a9f-a976-55e43729f46d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_29c18edd-e9c1-41d5-8901-5953d2cf4c65" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_c5125099-1028-4a9f-a976-55e43729f46d" xlink:to="loc_us-gaap_AwardTypeAxis_29c18edd-e9c1-41d5-8901-5953d2cf4c65" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_29c18edd-e9c1-41d5-8901-5953d2cf4c65_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_29c18edd-e9c1-41d5-8901-5953d2cf4c65" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_29c18edd-e9c1-41d5-8901-5953d2cf4c65_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8d0d73c7-698d-49d0-ae6b-9d1a8971bced" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_29c18edd-e9c1-41d5-8901-5953d2cf4c65" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8d0d73c7-698d-49d0-ae6b-9d1a8971bced" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceSharesMember_ea75661b-f5f0-4189-8dba-45d534bd9817" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PerformanceSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8d0d73c7-698d-49d0-ae6b-9d1a8971bced" xlink:to="loc_us-gaap_PerformanceSharesMember_ea75661b-f5f0-4189-8dba-45d534bd9817" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_b88339ce-9c60-4ed6-aec9-41677c770d3b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_b311e4bd-43c5-41dd-a904-d545ad8d143f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_b88339ce-9c60-4ed6-aec9-41677c770d3b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_65aa90b3-1d26-43f5-99ac-8b03454ac879" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_b88339ce-9c60-4ed6-aec9-41677c770d3b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_65aa90b3-1d26-43f5-99ac-8b03454ac879" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_fbcda17d-5126-4e30-915b-4a0c92850ac5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_b88339ce-9c60-4ed6-aec9-41677c770d3b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_fbcda17d-5126-4e30-915b-4a0c92850ac5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_13211f66-97da-4ca0-b8f2-e64c77af54da" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_993bd7bf-e0d2-4b5b-9570-faf0cfce10e3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_b311e4bd-43c5-41dd-a904-d545ad8d143f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_993bd7bf-e0d2-4b5b-9570-faf0cfce10e3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_35704fc8-e737-442c-a092-83e8bb6464ee" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_993bd7bf-e0d2-4b5b-9570-faf0cfce10e3" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_35704fc8-e737-442c-a092-83e8bb6464ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_b7a05d2e-6e76-4795-8357-ee9c8c0230b3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_993bd7bf-e0d2-4b5b-9570-faf0cfce10e3" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_b7a05d2e-6e76-4795-8357-ee9c8c0230b3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_f29aea94-b99d-4869-976f-042cd3e60568" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/EquityIncentivePlansScheduleofComponentsandClassificationofStockBasedCompensationDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#EquityIncentivePlansScheduleofComponentsandClassificationofStockBasedCompensationDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/EquityIncentivePlansScheduleofComponentsandClassificationofStockBasedCompensationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_fadce917-84da-4a50-9b90-e05042542b45" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_3ed86cfd-d4ba-465e-bdb2-17781636caac" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_fadce917-84da-4a50-9b90-e05042542b45" xlink:to="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_3ed86cfd-d4ba-465e-bdb2-17781636caac" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_bf240752-6eab-4ed8-803d-f979e767bd0a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_3ed86cfd-d4ba-465e-bdb2-17781636caac" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_bf240752-6eab-4ed8-803d-f979e767bd0a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_bf240752-6eab-4ed8-803d-f979e767bd0a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_bf240752-6eab-4ed8-803d-f979e767bd0a" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_bf240752-6eab-4ed8-803d-f979e767bd0a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_ba31fc7e-aef8-460c-9887-4433a5e4a1a9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_bf240752-6eab-4ed8-803d-f979e767bd0a" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_ba31fc7e-aef8-460c-9887-4433a5e4a1a9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpenseMember_c238158c-0423-4cf2-ba38-b8b27c0b9def" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GeneralAndAdministrativeExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_ba31fc7e-aef8-460c-9887-4433a5e4a1a9" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpenseMember_c238158c-0423-4cf2-ba38-b8b27c0b9def" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_TechnologyAndDataAnalyticsExpenseMember_a59c0a87-be4f-415a-b9d2-2e660e664bba" xlink:href="afrm-20251231.xsd#afrm_TechnologyAndDataAnalyticsExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_ba31fc7e-aef8-460c-9887-4433a5e4a1a9" xlink:to="loc_afrm_TechnologyAndDataAnalyticsExpenseMember_a59c0a87-be4f-415a-b9d2-2e660e664bba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpenseMember_7771760e-81f8-4aa0-b032-b0759578833f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SellingAndMarketingExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_ba31fc7e-aef8-460c-9887-4433a5e4a1a9" xlink:to="loc_us-gaap_SellingAndMarketingExpenseMember_7771760e-81f8-4aa0-b032-b0759578833f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ProcessingAndServicingExpenseMember_e5895603-0beb-4a65-a17a-fe97540a858e" xlink:href="afrm-20251231.xsd#afrm_ProcessingAndServicingExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_ba31fc7e-aef8-460c-9887-4433a5e4a1a9" xlink:to="loc_afrm_ProcessingAndServicingExpenseMember_e5895603-0beb-4a65-a17a-fe97540a858e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_54c291fd-7b50-4633-b579-d7b4a0d17045" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_fadce917-84da-4a50-9b90-e05042542b45" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_54c291fd-7b50-4633-b579-d7b4a0d17045" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount_e2ef2135-dbd3-48e9-a934-429d05cc4aee" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_fadce917-84da-4a50-9b90-e05042542b45" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount_e2ef2135-dbd3-48e9-a934-429d05cc4aee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1_b277a005-e5f5-4b68-a7c5-cbff41a89af9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_fadce917-84da-4a50-9b90-e05042542b45" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1_b277a005-e5f5-4b68-a7c5-cbff41a89af9" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/NetIncomeLossperShareAttributabletoCommonStockholdersScheduleofBasicandDilutedNetIncomeLossPerShareDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#NetIncomeLossperShareAttributabletoCommonStockholdersScheduleofBasicandDilutedNetIncomeLossPerShareDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/NetIncomeLossperShareAttributabletoCommonStockholdersScheduleofBasicandDilutedNetIncomeLossPerShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDilutedLineItems_9abcec21-a816-45a8-8a9e-0a2615937c26" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EarningsPerShareDilutedLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEarningsPerShareDilutedByCommonClassTable_c9739933-34d1-43a2-a0a0-0544ca979301" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfEarningsPerShareDilutedByCommonClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EarningsPerShareDilutedLineItems_9abcec21-a816-45a8-8a9e-0a2615937c26" xlink:to="loc_us-gaap_ScheduleOfEarningsPerShareDilutedByCommonClassTable_c9739933-34d1-43a2-a0a0-0544ca979301" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_e600e93f-6ebb-40e5-8dac-623847a78c1f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEarningsPerShareDilutedByCommonClassTable_c9739933-34d1-43a2-a0a0-0544ca979301" xlink:to="loc_us-gaap_StatementClassOfStockAxis_e600e93f-6ebb-40e5-8dac-623847a78c1f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_e600e93f-6ebb-40e5-8dac-623847a78c1f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_e600e93f-6ebb-40e5-8dac-623847a78c1f" xlink:to="loc_us-gaap_ClassOfStockDomain_e600e93f-6ebb-40e5-8dac-623847a78c1f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_772fd3f3-5acf-493c-82c2-b9d5a2e38060" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_e600e93f-6ebb-40e5-8dac-623847a78c1f" xlink:to="loc_us-gaap_ClassOfStockDomain_772fd3f3-5acf-493c-82c2-b9d5a2e38060" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassAMember_94f96f94-c407-4204-856c-2b244e0a2abe" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonClassAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_772fd3f3-5acf-493c-82c2-b9d5a2e38060" xlink:to="loc_us-gaap_CommonClassAMember_94f96f94-c407-4204-856c-2b244e0a2abe" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_80027e2e-cd93-4143-891c-2e302a24c267" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_772fd3f3-5acf-493c-82c2-b9d5a2e38060" xlink:to="loc_us-gaap_CommonClassBMember_80027e2e-cd93-4143-891c-2e302a24c267" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_45ab8e52-387e-4697-8299-492b4baa5fbe" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEarningsPerShareDilutedByCommonClassTable_c9739933-34d1-43a2-a0a0-0544ca979301" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_45ab8e52-387e-4697-8299-492b4baa5fbe" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_45ab8e52-387e-4697-8299-492b4baa5fbe_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_45ab8e52-387e-4697-8299-492b4baa5fbe" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_45ab8e52-387e-4697-8299-492b4baa5fbe_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_b9c6721d-dde2-43c9-9764-5a28eda6061c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_45ab8e52-387e-4697-8299-492b4baa5fbe" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_b9c6721d-dde2-43c9-9764-5a28eda6061c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_9c6a7828-a29d-42d1-9355-9cf0f0783b76" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_b9c6721d-dde2-43c9-9764-5a28eda6061c" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_9c6a7828-a29d-42d1-9355-9cf0f0783b76" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_28cb798e-92d7-40ed-bbb8-9de2dd2ee441" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_b9c6721d-dde2-43c9-9764-5a28eda6061c" xlink:to="loc_us-gaap_EmployeeStockOptionMember_28cb798e-92d7-40ed-bbb8-9de2dd2ee441" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ValueCreationAwardVestedSharesMember_9e2a3edf-0123-4893-b956-65315b7e9176" xlink:href="afrm-20251231.xsd#afrm_ValueCreationAwardVestedSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_b9c6721d-dde2-43c9-9764-5a28eda6061c" xlink:to="loc_afrm_ValueCreationAwardVestedSharesMember_9e2a3edf-0123-4893-b956-65315b7e9176" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockMember_6aa26313-2847-43a9-abae-c20119dcf7c3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_b9c6721d-dde2-43c9-9764-5a28eda6061c" xlink:to="loc_us-gaap_EmployeeStockMember_6aa26313-2847-43a9-abae-c20119dcf7c3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WarrantMember_07660204-8809-467c-9eed-160d6d35fb98" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WarrantMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_b9c6721d-dde2-43c9-9764-5a28eda6061c" xlink:to="loc_us-gaap_WarrantMember_07660204-8809-467c-9eed-160d6d35fb98" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasicAbstract_15c77e78-e5f6-4fef-a95e-8ce4db500227" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasicAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedLineItems_9abcec21-a816-45a8-8a9e-0a2615937c26" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasicAbstract_15c77e78-e5f6-4fef-a95e-8ce4db500227" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_ca7186cf-5e62-40cf-b0fa-93a6d0b58648" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasicAbstract_15c77e78-e5f6-4fef-a95e-8ce4db500227" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_ca7186cf-5e62-40cf-b0fa-93a6d0b58648" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_63fc548a-46bd-4cbe-98d9-df7889ddb47b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasicAbstract_15c77e78-e5f6-4fef-a95e-8ce4db500227" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_63fc548a-46bd-4cbe-98d9-df7889ddb47b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasicAbstract_0ee6033e-4716-4244-8584-a2dafe806107" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasicAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedLineItems_9abcec21-a816-45a8-8a9e-0a2615937c26" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasicAbstract_0ee6033e-4716-4244-8584-a2dafe806107" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_fbdda274-101b-4ca7-a27b-9e3fe7b48c78" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasicAbstract_0ee6033e-4716-4244-8584-a2dafe806107" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_fbdda274-101b-4ca7-a27b-9e3fe7b48c78" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_6a1e503a-ea86-460f-8085-84d4759ca96c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasicAbstract_0ee6033e-4716-4244-8584-a2dafe806107" xlink:to="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_6a1e503a-ea86-460f-8085-84d4759ca96c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_8bbbdfd6-3582-447e-944e-7276605a8fd3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasicAbstract_0ee6033e-4716-4244-8584-a2dafe806107" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_8bbbdfd6-3582-447e-944e-7276605a8fd3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasicAbstract_2176bdb7-9b38-42b0-93e9-068d107482f4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EarningsPerShareBasicAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedLineItems_9abcec21-a816-45a8-8a9e-0a2615937c26" xlink:to="loc_us-gaap_EarningsPerShareBasicAbstract_2176bdb7-9b38-42b0-93e9-068d107482f4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_bec4f73b-5b7b-4877-b3fb-a87a97631a50" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_2176bdb7-9b38-42b0-93e9-068d107482f4" xlink:to="loc_us-gaap_EarningsPerShareBasic_bec4f73b-5b7b-4877-b3fb-a87a97631a50" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_89f3953b-0153-41c2-baac-95b38b5bcdbf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_2176bdb7-9b38-42b0-93e9-068d107482f4" xlink:to="loc_us-gaap_EarningsPerShareDiluted_89f3953b-0153-41c2-baac-95b38b5bcdbf" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/NetIncomeLossperShareAttributabletoCommonStockholdersScheduleofCalculationofDilutedNetIncomeLossPerShareDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#NetIncomeLossperShareAttributabletoCommonStockholdersScheduleofCalculationofDilutedNetIncomeLossPerShareDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/NetIncomeLossperShareAttributabletoCommonStockholdersScheduleofCalculationofDilutedNetIncomeLossPerShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_dab58cd8-938d-4874-8cec-61013da4a902" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_3dd031d4-4338-4695-999f-06ff90662a7e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_dab58cd8-938d-4874-8cec-61013da4a902" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_3dd031d4-4338-4695-999f-06ff90662a7e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_34d1ca14-d4da-4308-8fcf-f24918b32377" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_3dd031d4-4338-4695-999f-06ff90662a7e" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_34d1ca14-d4da-4308-8fcf-f24918b32377" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_34d1ca14-d4da-4308-8fcf-f24918b32377_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_34d1ca14-d4da-4308-8fcf-f24918b32377" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_34d1ca14-d4da-4308-8fcf-f24918b32377_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_a4e9b5d3-deb0-47a1-a6af-9f07e653a296" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_34d1ca14-d4da-4308-8fcf-f24918b32377" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_a4e9b5d3-deb0-47a1-a6af-9f07e653a296" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WarrantMember_66434882-8f5d-4894-ba43-5e2b40bd3b66" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WarrantMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_a4e9b5d3-deb0-47a1-a6af-9f07e653a296" xlink:to="loc_us-gaap_WarrantMember_66434882-8f5d-4894-ba43-5e2b40bd3b66" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_5e394a47-b916-476d-8bf5-64b6d92add36" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_a4e9b5d3-deb0-47a1-a6af-9f07e653a296" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_5e394a47-b916-476d-8bf5-64b6d92add36" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockMember_53f11e36-b088-483b-a723-0ef2fba9374e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_a4e9b5d3-deb0-47a1-a6af-9f07e653a296" xlink:to="loc_us-gaap_EmployeeStockMember_53f11e36-b088-483b-a723-0ef2fba9374e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_8da11b3a-4644-496a-b59a-82c40b27cc5f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_a4e9b5d3-deb0-47a1-a6af-9f07e653a296" xlink:to="loc_us-gaap_EmployeeStockOptionMember_8da11b3a-4644-496a-b59a-82c40b27cc5f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ValueCreationAwardVestedSharesMember_81a1b303-57f5-4dbb-825f-2764a1430c1b" xlink:href="afrm-20251231.xsd#afrm_ValueCreationAwardVestedSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_a4e9b5d3-deb0-47a1-a6af-9f07e653a296" xlink:to="loc_afrm_ValueCreationAwardVestedSharesMember_81a1b303-57f5-4dbb-825f-2764a1430c1b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_2e8d3924-020a-4f03-9ba8-3452072ee8ab" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_dab58cd8-938d-4874-8cec-61013da4a902" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_2e8d3924-020a-4f03-9ba8-3452072ee8ab" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.affirm.com/role/SubsequentEventsDetails" xlink:type="simple" xlink:href="afrm-20251231.xsd#SubsequentEventsDetails"/>
  <link:definitionLink xlink:role="http://www.affirm.com/role/SubsequentEventsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventLineItems_019bbb09-ce2d-72e1-a76e-913771f24498" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SubsequentEventLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTable_6243bc3d-04c4-46e6-904e-27fdc24a8ee7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SubsequentEventTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SubsequentEventLineItems_019bbb09-ce2d-72e1-a76e-913771f24498" xlink:to="loc_us-gaap_SubsequentEventTable_6243bc3d-04c4-46e6-904e-27fdc24a8ee7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_ff25d718-9603-4809-ba14-34d5d0351a9c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_6243bc3d-04c4-46e6-904e-27fdc24a8ee7" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_ff25d718-9603-4809-ba14-34d5d0351a9c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_ff25d718-9603-4809-ba14-34d5d0351a9c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_ff25d718-9603-4809-ba14-34d5d0351a9c" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_ff25d718-9603-4809-ba14-34d5d0351a9c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_28f80608-1124-40d4-9021-7b301ff2a42a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_ff25d718-9603-4809-ba14-34d5d0351a9c" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_28f80608-1124-40d4-9021-7b301ff2a42a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_8ece19b8-428e-4090-b6eb-21095a57ec31" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_28f80608-1124-40d4-9021-7b301ff2a42a" xlink:to="loc_us-gaap_SubsequentEventMember_8ece19b8-428e-4090-b6eb-21095a57ec31" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_019bbb09-ce2d-75cb-894f-4d7001fe6d80" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_6243bc3d-04c4-46e6-904e-27fdc24a8ee7" xlink:to="loc_us-gaap_StatementClassOfStockAxis_019bbb09-ce2d-75cb-894f-4d7001fe6d80" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019bbb09-ce2d-75cb-894f-4d7001fe6d80_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019bbb09-ce2d-75cb-894f-4d7001fe6d80" xlink:to="loc_us-gaap_ClassOfStockDomain_019bbb09-ce2d-75cb-894f-4d7001fe6d80_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019bbb09-ce2d-77c7-ba0b-f66d83819bc4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019bbb09-ce2d-75cb-894f-4d7001fe6d80" xlink:to="loc_us-gaap_ClassOfStockDomain_019bbb09-ce2d-77c7-ba0b-f66d83819bc4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassAMember_019bbb09-ce2d-73ae-b155-5fa56b399338" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonClassAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019bbb09-ce2d-77c7-ba0b-f66d83819bc4" xlink:to="loc_us-gaap_CommonClassAMember_019bbb09-ce2d-73ae-b155-5fa56b399338" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_019bbb09-ce2d-7f89-a945-285763d9a220" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_6243bc3d-04c4-46e6-904e-27fdc24a8ee7" xlink:to="loc_us-gaap_AwardTypeAxis_019bbb09-ce2d-7f89-a945-285763d9a220" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019bbb09-ce2d-7f89-a945-285763d9a220_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_019bbb09-ce2d-7f89-a945-285763d9a220" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019bbb09-ce2d-7f89-a945-285763d9a220_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019bbb09-ce2d-7655-8c26-f2b9e62d4124" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_019bbb09-ce2d-7f89-a945-285763d9a220" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019bbb09-ce2d-7655-8c26-f2b9e62d4124" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceSharesMember_019bbb09-ce2d-7cbe-af51-85b721dcfd8a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PerformanceSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019bbb09-ce2d-7655-8c26-f2b9e62d4124" xlink:to="loc_us-gaap_PerformanceSharesMember_019bbb09-ce2d-7cbe-af51-85b721dcfd8a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_019bbb09-ce2d-707e-bbc3-e88ef701d12d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_019bbb09-ce2d-72e1-a76e-913771f24498" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_019bbb09-ce2d-707e-bbc3-e88ef701d12d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_019bbb09-ce2d-7d52-8452-5ee455815b2b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_019bbb09-ce2d-72e1-a76e-913771f24498" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_019bbb09-ce2d-7d52-8452-5ee455815b2b" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="simple" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-roles-2025.xsd#eedm"/>
  <link:definitionLink xlink:role="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccruedLiabilitiesAndOtherLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract" xlink:to="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities" xlink:type="arc" order="31"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementOfOtherComprehensiveIncomeAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementOfOtherComprehensiveIncomeAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementOfOtherComprehensiveIncomeAbstract" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:type="arc" order="81"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://xbrl.sec.gov/ecd/role/IndividualsOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2025/ecd-2025.xsd#IndividualsOnly"/>
  <link:definitionLink xlink:role="http://xbrl.sec.gov/ecd/role/IndividualsOnly" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ecd_AllIndividualsMember" xlink:href="https://xbrl.sec.gov/ecd/2025/ecd-2025.xsd#ecd_AllIndividualsMember"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_NoelWatsonMember_019bb117-6bff-7559-a190-1462c4436c9b" xlink:href="afrm-20251231.xsd#afrm_NoelWatsonMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_afrm_NoelWatsonMember_019bb117-6bff-7559-a190-1462c4436c9b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_LiborMichalekMember_019bb10e-4c5b-7177-825d-995328c86179" xlink:href="afrm-20251231.xsd#afrm_LiborMichalekMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_afrm_LiborMichalekMember_019bb10e-4c5b-7177-825d-995328c86179" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_MichaelLinfordMember_513097b7-8bbe-485e-8eee-fafbdb74a7ab" xlink:href="afrm-20251231.xsd#afrm_MichaelLinfordMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_afrm_MichaelLinfordMember_513097b7-8bbe-485e-8eee-fafbdb74a7ab" xlink:type="arc" order="4"/>
  </link:definitionLink>
</link:linkbase>