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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2025 Workiva-->
<!--r:4cbea456-42d6-4d56-9ed1-d7caeea7baec,g:01f95bc7-ccb1-4cd3-84d5-1fd352a29725-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:afrm="http://www.affirm.com/20250930" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:dtr-types="http://www.xbrl.org/dtr/type/2024-01-31" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.affirm.com/20250930">
  <xs:import namespace="http://fasb.org/srt/2025" schemaLocation="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd"/>
  <xs:import namespace="http://fasb.org/us-gaap/2025" schemaLocation="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd"/>
  <xs:import namespace="http://www.xbrl.org/2003/instance" schemaLocation="http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/2003/linkbase" schemaLocation="http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/dtr/type/2024-01-31" schemaLocation="https://www.xbrl.org/dtr/type/2024-01-31/types.xsd"/>
  <xs:import namespace="http://xbrl.org/2005/xbrldt" schemaLocation="http://www.xbrl.org/2005/xbrldt-2005.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/dei/2025" schemaLocation="https://xbrl.sec.gov/dei/2025/dei-2025.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/ecd/2025" schemaLocation="https://xbrl.sec.gov/ecd/2025/ecd-2025.xsd"/>
  <xs:annotation>
    <xs:appinfo>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="afrm-20250930_pre.xml" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="afrm-20250930_def.xml" xlink:role="http://www.xbrl.org/2003/role/definitionLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="afrm-20250930_lab.xml" xlink:role="http://www.xbrl.org/2003/role/labelLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="afrm-20250930_cal.xml" xlink:role="http://www.xbrl.org/2003/role/calculationLinkbaseRef" xlink:type="simple"/>
      <link:roleType id="CoverPage" roleURI="http://www.affirm.com/role/CoverPage">
        <link:definition>0000001 - Document - Cover Page</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONDENSEDCONSOLIDATEDBALANCESHEETS" roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS">
        <link:definition>9952151 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical" roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical">
        <link:definition>9952152 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS (Parenthetical)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVEINCOMELOSS" roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVEINCOMELOSS">
        <link:definition>9952153 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS AND COMPREHENSIVE INCOME (LOSS)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONDENSEDCONSOLIDATEDSTATEMENTOFSTOCKHOLDERSEQUITY" roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTOFSTOCKHOLDERSEQUITY">
        <link:definition>9952154 - Statement - CONDENSED CONSOLIDATED STATEMENT OF STOCKHOLDERS&#8217; EQUITY</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS">
        <link:definition>9952155 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BusinessDescription" roleURI="http://www.affirm.com/role/BusinessDescription">
        <link:definition>9952156 - Disclosure - Business Description</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SummaryofSignificantAccountingPolicies" roleURI="http://www.affirm.com/role/SummaryofSignificantAccountingPolicies">
        <link:definition>9952157 - Disclosure - Summary of Significant Accounting Policies</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Revenue" roleURI="http://www.affirm.com/role/Revenue">
        <link:definition>9952158 - Disclosure - Revenue</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansHeldforInvestmentandAllowanceforCreditLosses" roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLosses">
        <link:definition>9952159 - Disclosure - Loans Held for Investment and Allowance for Credit Losses</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BalanceSheetComponents" roleURI="http://www.affirm.com/role/BalanceSheetComponents">
        <link:definition>9952160 - Disclosure - Balance Sheet Components</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Leases" roleURI="http://www.affirm.com/role/Leases">
        <link:definition>9952161 - Disclosure - Leases</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CommitmentsandContingencies" roleURI="http://www.affirm.com/role/CommitmentsandContingencies">
        <link:definition>9952162 - Disclosure - Commitments and Contingencies</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Debt" roleURI="http://www.affirm.com/role/Debt">
        <link:definition>9952163 - Disclosure - Debt</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SecuritizationandVariableInterestEntities" roleURI="http://www.affirm.com/role/SecuritizationandVariableInterestEntities">
        <link:definition>9952164 - Disclosure - Securitization and Variable Interest Entities</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Investments" roleURI="http://www.affirm.com/role/Investments">
        <link:definition>9952165 - Disclosure - Investments</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DerivativeFinancialInstruments" roleURI="http://www.affirm.com/role/DerivativeFinancialInstruments">
        <link:definition>9952166 - Disclosure - Derivative Financial Instruments</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilities" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilities">
        <link:definition>9952167 - Disclosure - Fair Value of Financial Assets and Liabilities</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquity" roleURI="http://www.affirm.com/role/StockholdersEquity">
        <link:definition>9952168 - Disclosure - Stockholders' Equity</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="EquityIncentivePlans" roleURI="http://www.affirm.com/role/EquityIncentivePlans">
        <link:definition>9952169 - Disclosure - Equity Incentive Plans</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxes" roleURI="http://www.affirm.com/role/IncomeTaxes">
        <link:definition>9952170 - Disclosure - Income Taxes</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="NetIncomeLossperShareAttributabletoCommonStockholders" roleURI="http://www.affirm.com/role/NetIncomeLossperShareAttributabletoCommonStockholders">
        <link:definition>9952171 - Disclosure - Net Income (Loss) per Share Attributable to Common Stockholders</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SegmentInformation" roleURI="http://www.affirm.com/role/SegmentInformation">
        <link:definition>9952172 - Disclosure - Segment Information</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SubsequentEvents" roleURI="http://www.affirm.com/role/SubsequentEvents">
        <link:definition>9952173 - Disclosure - Subsequent Events</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SummaryofSignificantAccountingPoliciesPolicies" roleURI="http://www.affirm.com/role/SummaryofSignificantAccountingPoliciesPolicies">
        <link:definition>9955511 - Disclosure - Summary of Significant Accounting Policies (Policies)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RevenueTables" roleURI="http://www.affirm.com/role/RevenueTables">
        <link:definition>9955512 - Disclosure - Revenue (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansHeldforInvestmentandAllowanceforCreditLossesTables" roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesTables">
        <link:definition>9955513 - Disclosure - Loans Held for Investment and Allowance for Credit Losses (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BalanceSheetComponentsTables" roleURI="http://www.affirm.com/role/BalanceSheetComponentsTables">
        <link:definition>9955514 - Disclosure - Balance Sheet Components (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesTables" roleURI="http://www.affirm.com/role/LeasesTables">
        <link:definition>9955515 - Disclosure - Leases (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DebtTables" roleURI="http://www.affirm.com/role/DebtTables">
        <link:definition>9955516 - Disclosure - Debt (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SecuritizationandVariableInterestEntitiesTables" roleURI="http://www.affirm.com/role/SecuritizationandVariableInterestEntitiesTables">
        <link:definition>9955517 - Disclosure - Securitization and Variable Interest Entities (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentsTables" roleURI="http://www.affirm.com/role/InvestmentsTables">
        <link:definition>9955518 - Disclosure - Investments (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DerivativeFinancialInstrumentsTables" roleURI="http://www.affirm.com/role/DerivativeFinancialInstrumentsTables">
        <link:definition>9955519 - Disclosure - Derivative Financial Instruments (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilitiesTables" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesTables">
        <link:definition>9955520 - Disclosure - Fair Value of Financial Assets and Liabilities (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquityTables" roleURI="http://www.affirm.com/role/StockholdersEquityTables">
        <link:definition>9955521 - Disclosure - Stockholders' Equity (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="EquityIncentivePlansTables" roleURI="http://www.affirm.com/role/EquityIncentivePlansTables">
        <link:definition>9955522 - Disclosure - Equity Incentive Plans (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="NetIncomeLossperShareAttributabletoCommonStockholdersTables" roleURI="http://www.affirm.com/role/NetIncomeLossperShareAttributabletoCommonStockholdersTables">
        <link:definition>9955523 - Disclosure - Net Income (Loss) per Share Attributable to Common Stockholders (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RevenueScheduleofDisaggregationofRevenueDetails" roleURI="http://www.affirm.com/role/RevenueScheduleofDisaggregationofRevenueDetails">
        <link:definition>9955524 - Disclosure - Revenue - Schedule of Disaggregation of Revenue (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RevenueAdditionalInformationDetails" roleURI="http://www.affirm.com/role/RevenueAdditionalInformationDetails">
        <link:definition>9955525 - Disclosure - Revenue - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RevenueScheduleofInterestIncomeDetails" roleURI="http://www.affirm.com/role/RevenueScheduleofInterestIncomeDetails">
        <link:definition>9955526 - Disclosure - Revenue - Schedule of Interest Income (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofLoansHeldforInvestmentDetails" roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofLoansHeldforInvestmentDetails">
        <link:definition>9955527 - Disclosure - Loans Held for Investment and Allowance for Credit Losses - Schedule of Loans Held for Investment (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansHeldforInvestmentandAllowanceforCreditLossesAdditionalInformationDetails" roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesAdditionalInformationDetails">
        <link:definition>9955528 - Disclosure - Loans Held for Investment and Allowance for Credit Losses - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofLoansHeldforInvestmentbyDelinquencyDetails" roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofLoansHeldforInvestmentbyDelinquencyDetails">
        <link:definition>9955529 - Disclosure - Loans Held for Investment and Allowance for Credit Losses - Schedule of Loans Held for Investment by Delinquency (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofNetChargeOffsDetails" roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofNetChargeOffsDetails">
        <link:definition>9955530 - Disclosure - Loans Held for Investment and Allowance for Credit Losses - Schedule of Net Charge Offs (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofAllowanceforCreditLossDetails" roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofAllowanceforCreditLossDetails">
        <link:definition>9955531 - Disclosure - Loans Held for Investment and Allowance for Credit Losses - Schedule of Allowance for Credit Loss (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofAmortizedCostBasisofLoansDetails" roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofAmortizedCostBasisofLoansDetails">
        <link:definition>9955532 - Disclosure - Loans Held for Investment and Allowance for Credit Losses - Schedule of Amortized Cost Basis of Loans (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofDelinquencyStatusofLoansDetails" roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofDelinquencyStatusofLoansDetails">
        <link:definition>9955533 - Disclosure - Loans Held for Investment and Allowance for Credit Losses - Schedule of Delinquency Status of Loans (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BalanceSheetComponentsAdditionalInformationDetails" roleURI="http://www.affirm.com/role/BalanceSheetComponentsAdditionalInformationDetails">
        <link:definition>9955534 - Disclosure - Balance Sheet Components - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BalanceSheetComponentsScheduleofPropertyEquipmentandSoftwareNetDetails" roleURI="http://www.affirm.com/role/BalanceSheetComponentsScheduleofPropertyEquipmentandSoftwareNetDetails">
        <link:definition>9955535 - Disclosure - Balance Sheet Components - Schedule of Property, Equipment and Software, Net (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BalanceSheetComponentsScheduleofChangesintheCarryingAmountofGoodwillDetails" roleURI="http://www.affirm.com/role/BalanceSheetComponentsScheduleofChangesintheCarryingAmountofGoodwillDetails">
        <link:definition>9955536 - Disclosure - Balance Sheet Components - Schedule of Changes in the Carrying Amount of Goodwill (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BalanceSheetComponentsScheduleofIntangibleAssetsDetails" roleURI="http://www.affirm.com/role/BalanceSheetComponentsScheduleofIntangibleAssetsDetails">
        <link:definition>9955537 - Disclosure - Balance Sheet Components - Schedule of Intangible Assets (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BalanceSheetComponentsScheduleofIntangibleAssetsDetails_1" roleURI="http://www.affirm.com/role/BalanceSheetComponentsScheduleofIntangibleAssetsDetails_1">
        <link:definition>9955537 - Disclosure - Balance Sheet Components - Schedule of Intangible Assets (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BalanceSheetComponentsScheduleofExpectedFutureAmortizationExpenseDetails" roleURI="http://www.affirm.com/role/BalanceSheetComponentsScheduleofExpectedFutureAmortizationExpenseDetails">
        <link:definition>9955538 - Disclosure - Balance Sheet Components - Schedule of Expected Future Amortization Expense (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BalanceSheetComponentsScheduleofOtherAssetsDetails" roleURI="http://www.affirm.com/role/BalanceSheetComponentsScheduleofOtherAssetsDetails">
        <link:definition>9955539 - Disclosure - Balance Sheet Components - Schedule of Other Assets (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BalanceSheetComponentsScheduleofAccruedExpensesandOtherLiabilitiesDetails" roleURI="http://www.affirm.com/role/BalanceSheetComponentsScheduleofAccruedExpensesandOtherLiabilitiesDetails">
        <link:definition>9955540 - Disclosure - Balance Sheet Components - Schedule of Accrued Expenses and Other Liabilities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesAdditionalInformationDetails" roleURI="http://www.affirm.com/role/LeasesAdditionalInformationDetails">
        <link:definition>9955541 - Disclosure - Leases - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesScheduleofComponentsofLeaseExpenseDetails" roleURI="http://www.affirm.com/role/LeasesScheduleofComponentsofLeaseExpenseDetails">
        <link:definition>9955542 - Disclosure - Leases - Schedule of Components of Lease Expense (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesScheduleofLeaseTermandDiscountRateDetails" roleURI="http://www.affirm.com/role/LeasesScheduleofLeaseTermandDiscountRateDetails">
        <link:definition>9955543 - Disclosure - Leases - Schedule of Lease Term and Discount Rate (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesScheduleofFutureMinimumLeasePaymentsDetails" roleURI="http://www.affirm.com/role/LeasesScheduleofFutureMinimumLeasePaymentsDetails">
        <link:definition>9955544 - Disclosure - Leases - Schedule of Future Minimum Lease Payments (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesScheduleofFutureMinimumLeasePaymentsDetails_1" roleURI="http://www.affirm.com/role/LeasesScheduleofFutureMinimumLeasePaymentsDetails_1">
        <link:definition>9955544 - Disclosure - Leases - Schedule of Future Minimum Lease Payments (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CommitmentsandContingenciesDetails" roleURI="http://www.affirm.com/role/CommitmentsandContingenciesDetails">
        <link:definition>9955545 - Disclosure - Commitments and Contingencies (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DebtScheduleofComponentsSecuredandUnsecuredDebtDetails" roleURI="http://www.affirm.com/role/DebtScheduleofComponentsSecuredandUnsecuredDebtDetails">
        <link:definition>9955546 - Disclosure - Debt - Schedule of Components Secured and Unsecured Debt (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DebtScheduleofAggregateFutureMaturitiesDetails" roleURI="http://www.affirm.com/role/DebtScheduleofAggregateFutureMaturitiesDetails">
        <link:definition>9955547 - Disclosure - Debt - Schedule of Aggregate Future Maturities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DebtAdditionalInformationDetails" roleURI="http://www.affirm.com/role/DebtAdditionalInformationDetails">
        <link:definition>9955548 - Disclosure - Debt - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DebtScheduleofInterestExpenseRecognizedRelatedtotheConvertibleSeniorNotesDetails" roleURI="http://www.affirm.com/role/DebtScheduleofInterestExpenseRecognizedRelatedtotheConvertibleSeniorNotesDetails">
        <link:definition>9955549 - Disclosure - Debt - Schedule of Interest Expense Recognized Related to the Convertible Senior Notes (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SecuritizationsandVariableInterestEntitiesScheduleofAggregateCarryingValueofFinancialAssetsandLiabilitiesfromVIEsDetails" roleURI="http://www.affirm.com/role/SecuritizationsandVariableInterestEntitiesScheduleofAggregateCarryingValueofFinancialAssetsandLiabilitiesfromVIEsDetails">
        <link:definition>9955550 - Disclosure - Securitizations and Variable Interest Entities - Schedule of Aggregate Carrying Value of Financial Assets and Liabilities from VIEs (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SecuritizationsandVariableInterestEntitiesScheduleofVariableInterestEntitiesDetails" roleURI="http://www.affirm.com/role/SecuritizationsandVariableInterestEntitiesScheduleofVariableInterestEntitiesDetails">
        <link:definition>9955551 - Disclosure - Securitizations and Variable Interest Entities - Schedule of Variable Interest Entities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentsScheduleofCashandCashEquivalentsandSecuritiesAvailableforSaleDetails" roleURI="http://www.affirm.com/role/InvestmentsScheduleofCashandCashEquivalentsandSecuritiesAvailableforSaleDetails">
        <link:definition>9955552 - Disclosure - Investments - Schedule of Cash and Cash Equivalents and Securities Available for Sale (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentsScheduleofSecuritiesAvailableforSaleatFairValueDetails" roleURI="http://www.affirm.com/role/InvestmentsScheduleofSecuritiesAvailableforSaleatFairValueDetails">
        <link:definition>9955553 - Disclosure - Investments - Schedule of Securities Available for Sale at Fair Value (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentsScheduleofSecuritiesAvailableforSaleWithUnrealizedLossesDetails" roleURI="http://www.affirm.com/role/InvestmentsScheduleofSecuritiesAvailableforSaleWithUnrealizedLossesDetails">
        <link:definition>9955554 - Disclosure - Investments - Schedule of Securities Available for Sale With Unrealized Losses (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentsScheduleofContractualMaturitiesofSecuritiesAvailableforSaleDetails" roleURI="http://www.affirm.com/role/InvestmentsScheduleofContractualMaturitiesofSecuritiesAvailableforSaleDetails">
        <link:definition>9955555 - Disclosure - Investments - Schedule of Contractual Maturities of Securities Available for Sale (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentsAdditionalInformationDetails" roleURI="http://www.affirm.com/role/InvestmentsAdditionalInformationDetails">
        <link:definition>9955556 - Disclosure - Investments - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DerivativeFinancialInstrumentsScheduleofFairValueofDerivativeInstrumentsDetails" roleURI="http://www.affirm.com/role/DerivativeFinancialInstrumentsScheduleofFairValueofDerivativeInstrumentsDetails">
        <link:definition>9955557 - Disclosure - Derivative Financial Instruments - Schedule of Fair Value of Derivative Instruments (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DerivativeFinancialInstrumentsScheduleofImpactoftheCashFlowHedgesonAccumulatedOtherComprehensiveIncomeDetails" roleURI="http://www.affirm.com/role/DerivativeFinancialInstrumentsScheduleofImpactoftheCashFlowHedgesonAccumulatedOtherComprehensiveIncomeDetails">
        <link:definition>9955558 - Disclosure - Derivative Financial Instruments - Schedule of Impact of the Cash Flow Hedges on Accumulated Other Comprehensive Income (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DerivativeFinancialInstrumentsScheduleofImpactoftheDerivativeInstrumentsonConsolidatedStatementsofOperationsandComprehensiveIncomeLossDetails" roleURI="http://www.affirm.com/role/DerivativeFinancialInstrumentsScheduleofImpactoftheDerivativeInstrumentsonConsolidatedStatementsofOperationsandComprehensiveIncomeLossDetails">
        <link:definition>9955559 - Disclosure - Derivative Financial Instruments - Schedule of Impact of the Derivative Instruments on Consolidated Statements of Operations and Comprehensive Income (Loss) (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilitiesScheduleofAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails">
        <link:definition>9955560 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Assets and Liabilities Measured at Fair Value on Recurring Basis (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilitiesAdditionalInformationDetails" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesAdditionalInformationDetails">
        <link:definition>9955561 - Disclosure - Fair Value of Financial Assets and Liabilities - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilitiesScheduleofAggregateFairValueofServicingAssetsDetails" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAggregateFairValueofServicingAssetsDetails">
        <link:definition>9955562 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Aggregate Fair Value of Servicing Assets (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilitiesScheduleofAggregateFairValueofServicingLiabilitiesDetails" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAggregateFairValueofServicingLiabilitiesDetails">
        <link:definition>9955563 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Aggregate Fair Value of Servicing Liabilities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofServicingAssetsandLiabilitiesDetails" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofServicingAssetsandLiabilitiesDetails">
        <link:definition>9955564 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Significant Unobservable Inputs Used for Level 3 Fair Value Measurement of Servicing Assets and Liabilities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofServicingAssetsandLiabilitiesDetails" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofServicingAssetsandLiabilitiesDetails">
        <link:definition>9955565 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Adverse Changes in the Fair Value of Servicing Assets and Liabilities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofthePerformanceFeeLiabilityDetails" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofthePerformanceFeeLiabilityDetails">
        <link:definition>9955566 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Fair Value of the Performance Fee Liability (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofPerformanceFeeLiabilityDetails" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofPerformanceFeeLiabilityDetails">
        <link:definition>9955567 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Significant Unobservable Inputs Used for Level 3 Fair Value Measurement of Performance Fee Liability (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofNotesandResidualTrustCertificatesDetails" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofNotesandResidualTrustCertificatesDetails">
        <link:definition>9955568 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Fair Value of Notes and Residual Trust Certificates (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofNotesandResidualTrustCertificatesDetails" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofNotesandResidualTrustCertificatesDetails">
        <link:definition>9955569 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Significant Unobservable Inputs Used for Level 3 Fair Value Measurement of Notes and Residual Trust Certificates (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofNotesReceivableandResidualTrustCertificatesDetails" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofNotesReceivableandResidualTrustCertificatesDetails">
        <link:definition>9955570 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Adverse Changes in the Fair Value of Notes Receivable and Residual Trust Certificates (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofAssetsDetails" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofAssetsDetails">
        <link:definition>9955571 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Fair Value of Assets (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofResidualInterestsinStructuredTransactionsDetails" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedforLevel3FairValueMeasurementofResidualInterestsinStructuredTransactionsDetails">
        <link:definition>9955572 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Significant Unobservable Inputs Used for Level 3 Fair Value Measurement of Residual Interests in Structured Transactions (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofResidualInterestsinStructuredTransactionsDetails" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofResidualInterestsinStructuredTransactionsDetails">
        <link:definition>9955573 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Adverse Changes in the Fair Value of Residual Interests in Structured Transactions (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofProfitShareLiabilityDetails" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofProfitShareLiabilityDetails">
        <link:definition>9955574 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Fair Value of Profit Share Liability (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilitiesScheduleofQuantitativeInformationAboutSignificantUnobservableInputsforProfitShareLiabilityDetails" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofQuantitativeInformationAboutSignificantUnobservableInputsforProfitShareLiabilityDetails">
        <link:definition>9955575 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Quantitative Information About Significant Unobservable Inputs for Profit Share Liability (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofRiskSharingAssetsandLiabilitiesDetails" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFairValueofRiskSharingAssetsandLiabilitiesDetails">
        <link:definition>9955576 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Fair Value of Risk Sharing Assets and Liabilities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedinRiskSharingArrangementDetails" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofSignificantUnobservableInputsUsedinRiskSharingArrangementDetails">
        <link:definition>9955577 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Significant Unobservable Inputs Used in Risk Sharing Arrangement (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofRiskSharingAssetsandLiabilitiesDetails" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAdverseChangesintheFairValueofRiskSharingAssetsandLiabilitiesDetails">
        <link:definition>9955578 - Disclosure - Fair Value of Financial Assets and Liabilities - Schedule of Adverse Changes in the Fair Value of Risk Sharing Assets and Liabilities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueofFinancialAssetsandLiabilitiesFairValueofFinancialAssetsandLiabilitiesScheduleofFairValueHierarchyforFinancialAssetsandLiabilitiesHeldatAmortizedCostDetailsDetails" roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesFairValueofFinancialAssetsandLiabilitiesScheduleofFairValueHierarchyforFinancialAssetsandLiabilitiesHeldatAmortizedCostDetailsDetails">
        <link:definition>9955579 - Disclosure - Fair Value of Financial Assets and Liabilities - Fair Value of Financial Assets and Liabilities - Schedule of Fair Value Hierarchy for Financial Assets and Liabilities Held at Amortized Cost (Details) (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquityScheduleofCommonStockReservedforIssuanceDetails" roleURI="http://www.affirm.com/role/StockholdersEquityScheduleofCommonStockReservedforIssuanceDetails">
        <link:definition>9955580 - Disclosure - Stockholders' Equity - Schedule of Common Stock Reserved for Issuance (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquityAdditionalInformationDetails" roleURI="http://www.affirm.com/role/StockholdersEquityAdditionalInformationDetails">
        <link:definition>9955581 - Disclosure - Stockholders&#8217; Equity - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StockholdersEquityScheduleofWarrantActivityDetails" roleURI="http://www.affirm.com/role/StockholdersEquityScheduleofWarrantActivityDetails">
        <link:definition>9955582 - Disclosure - Stockholders&#8217; Equity - Schedule of Warrant Activity (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="EquityIncentivePlansAdditionalInformationDetails" roleURI="http://www.affirm.com/role/EquityIncentivePlansAdditionalInformationDetails">
        <link:definition>9955583 - Disclosure - Equity Incentive Plans - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="EquityIncentivePlansScheduleofStockOptionActivityAndValueCreationAwardactivityDetails" roleURI="http://www.affirm.com/role/EquityIncentivePlansScheduleofStockOptionActivityAndValueCreationAwardactivityDetails">
        <link:definition>9955584 - Disclosure - Equity Incentive Plans - Schedule of Stock Option Activity And Value Creation Award activity (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="EquityIncentivePlansScheduleofRSUActivityDetails" roleURI="http://www.affirm.com/role/EquityIncentivePlansScheduleofRSUActivityDetails">
        <link:definition>9955585 - Disclosure - Equity Incentive Plans - Schedule of RSU Activity (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="EquityIncentivePlansScheduleofPSUActivityDetails" roleURI="http://www.affirm.com/role/EquityIncentivePlansScheduleofPSUActivityDetails">
        <link:definition>9955586 - Disclosure - Equity Incentive Plans - Schedule of PSU Activity (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="EquityIncentivePlansScheduleofComponentsandClassificationofStockBasedCompensationDetails" roleURI="http://www.affirm.com/role/EquityIncentivePlansScheduleofComponentsandClassificationofStockBasedCompensationDetails">
        <link:definition>9955587 - Disclosure - Equity Incentive Plans - Schedule of Components and Classification of Stock-Based Compensation (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxesDetails" roleURI="http://www.affirm.com/role/IncomeTaxesDetails">
        <link:definition>9955588 - Disclosure - Income Taxes (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="NetIncomeLossperShareAttributabletoCommonStockholdersScheduleofBasicandDilutedNetIncomeLossPerShareDetails" roleURI="http://www.affirm.com/role/NetIncomeLossperShareAttributabletoCommonStockholdersScheduleofBasicandDilutedNetIncomeLossPerShareDetails">
        <link:definition>9955589 - Disclosure - Net Income (Loss) per Share Attributable to Common Stockholders - Schedule of Basic and Diluted Net Income (Loss) Per Share (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="NetIncomeLossperShareAttributabletoCommonStockholdersScheduleofCalculationofDilutedNetIncomeLossPerShareDetails" roleURI="http://www.affirm.com/role/NetIncomeLossperShareAttributabletoCommonStockholdersScheduleofCalculationofDilutedNetIncomeLossPerShareDetails">
        <link:definition>9955590 - Disclosure - Net Income (Loss) per Share Attributable to Common Stockholders - Schedule of Calculation of Diluted Net Income (Loss) Per Share (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SegmentInformationDetails" roleURI="http://www.affirm.com/role/SegmentInformationDetails">
        <link:definition>9955591 - Disclosure - Segment Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SubsequentEventsDetails" roleURI="http://www.affirm.com/role/SubsequentEventsDetails">
        <link:definition>9955592 - Disclosure - Subsequent Events (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
    </xs:appinfo>
  </xs:annotation>
  <xs:element id="afrm_NotesIssuedBySecuritizationTrustsMember" abstract="true" name="NotesIssuedBySecuritizationTrustsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_CommercialAgreementAssetNet" abstract="false" name="CommercialAgreementAssetNet" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_ThirdPartyLoanOwnerPayable" abstract="false" name="ThirdPartyLoanOwnerPayable" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_MerchantNetworkMember" abstract="true" name="MerchantNetworkMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_VirtualCardNetworkMember" abstract="true" name="VirtualCardNetworkMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_LossOnFinancingReceivableCommitmentsToPurchase" abstract="false" name="LossOnFinancingReceivableCommitmentsToPurchase" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_ProcessingAndServicingExpense" abstract="false" name="ProcessingAndServicingExpense" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_TechnologyAndDataAnalyticsExpense" abstract="false" name="TechnologyAndDataAnalyticsExpense" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_RestructuringChargesReversalsAndOtherExpense" abstract="false" name="RestructuringChargesReversalsAndOtherExpense" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_AccretionAmortizationOfDiscountsAndPremiumsFinancingReceivables" abstract="false" name="AccretionAmortizationOfDiscountsAndPremiumsFinancingReceivables" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_GainLossOnChangesInFairValueOfAssetsAndLiabilities" abstract="false" name="GainLossOnChangesInFairValueOfAssetsAndLiabilities" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_CommercialAgreementAssetAmortizationExpense" abstract="false" name="CommercialAgreementAssetAmortizationExpense" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_AccruedInterestOnDebtSecuritiesAvailableForSale" abstract="false" name="AccruedInterestOnDebtSecuritiesAvailableForSale" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_IncreaseDecreaseInCommercialAgreementAssets" abstract="false" name="IncreaseDecreaseInCommercialAgreementAssets" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_IncreaseDecreaseInThirdPartyLoanOwnerPayable" abstract="false" name="IncreaseDecreaseInThirdPartyLoanOwnerPayable" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_ProceedsFromOtherInvestingActivities" abstract="false" name="ProceedsFromOtherInvestingActivities" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_PaymentForOtherInvestingActivity" abstract="false" name="PaymentForOtherInvestingActivity" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_ProceedsFromStockOptionsAndWarrantsExercised" abstract="false" name="ProceedsFromStockOptionsAndWarrantsExercised" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_CostOfIssuanceOfTreasuryStock" abstract="false" name="CostOfIssuanceOfTreasuryStock" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SignificantAccountingPoliciesPolicyTextBlock" abstract="false" name="SignificantAccountingPoliciesPolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="afrm_ScheduleOfAccruedLiabilitiesAndOtherLiabilitiesTableTextBlock" abstract="false" name="ScheduleOfAccruedLiabilitiesAndOtherLiabilitiesTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="afrm_ScheduleOfInterestExpenseRecognizedRelatedToTheConvertibleSeniorNotesTableTextBlock" abstract="false" name="ScheduleOfInterestExpenseRecognizedRelatedToTheConvertibleSeniorNotesTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="afrm_ScheduleSensitivityAnalysisOfFairValueResidualTrustCertificatesTableTextBlock" abstract="false" name="ScheduleSensitivityAnalysisOfFairValueResidualTrustCertificatesTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="afrm_ScheduleOfSensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsTableTextBlock" abstract="false" name="ScheduleOfSensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="afrm_ScheduleOfCommonStockReservedForFutureIssuanceTableTextBlock" abstract="false" name="ScheduleOfCommonStockReservedForFutureIssuanceTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="afrm_FinancingReceivableThresholdPeriodPastDueSuspendedAccruedInterest" abstract="false" name="FinancingReceivableThresholdPeriodPastDueSuspendedAccruedInterest" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="afrm_AccretionOfDiscountsFinancingReceivables" abstract="false" name="AccretionOfDiscountsFinancingReceivables" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_AmortizationOfPremiumsFinancingReceivables" abstract="false" name="AmortizationOfPremiumsFinancingReceivables" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FinancingReceivableUnamortizedPurchasePremium" abstract="false" name="FinancingReceivableUnamortizedPurchasePremium" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FinancingReceivableUnamortizedPurchaseDiscount" abstract="false" name="FinancingReceivableUnamortizedPurchaseDiscount" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FinancingReceivableLossOnSelfOrganizingLoans" abstract="false" name="FinancingReceivableLossOnSelfOrganizingLoans" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FinancingReceivableExcludingAccruedInterestOriginatedLoans" abstract="false" name="FinancingReceivableExcludingAccruedInterestOriginatedLoans" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FinancingReceivableLoanTerm" abstract="false" name="FinancingReceivableLoanTerm" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="afrm_FinancingReceivableModifiedNumberOfDeferrals" abstract="false" name="FinancingReceivableModifiedNumberOfDeferrals" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="afrm_FinancingReceivableModifiedLengthOfDeferralTerm" abstract="false" name="FinancingReceivableModifiedLengthOfDeferralTerm" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="afrm_FinancingReceivableModifiedLengthOfRemainingTermMaximum" abstract="false" name="FinancingReceivableModifiedLengthOfRemainingTermMaximum" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="afrm_FinancialAsset4To29DaysPastDueMember" abstract="true" name="FinancialAsset4To29DaysPastDueMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_FinancingReceivableIncludingLoansHeldForSaleExcludingAccruedInterestBeforeAllowanceForCreditLoss" abstract="false" name="FinancingReceivableIncludingLoansHeldForSaleExcludingAccruedInterestBeforeAllowanceForCreditLoss" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecoveryByOriginationYearAbstract" abstract="true" name="FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecoveryByOriginationYearAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="afrm_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearRecoveries" abstract="false" name="FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearRecoveries" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries" abstract="false" name="FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries" abstract="false" name="FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries" abstract="false" name="FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries" abstract="false" name="FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries" abstract="false" name="FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffNetByOriginationYearAbstract" abstract="true" name="FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffNetByOriginationYearAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="afrm_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet" abstract="false" name="FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet" abstract="false" name="FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet" abstract="false" name="FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet" abstract="false" name="FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet" abstract="false" name="FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet" abstract="false" name="FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversalExcludingCertainProvisions" abstract="false" name="FinancingReceivableExcludingAccruedInterestCreditLossExpenseReversalExcludingCertainProvisions" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_LoanReAmortizationMember" abstract="true" name="LoanReAmortizationMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_CommercialAgreementAssetTypeAxis" abstract="true" name="CommercialAgreementAssetTypeAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="afrm_CommercialAgreementAssetTypeDomain" abstract="true" name="CommercialAgreementAssetTypeDomain" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_CommercialAgreementAmazonMember" abstract="true" name="CommercialAgreementAmazonMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_CommercialAgreementShopifyMember" abstract="true" name="CommercialAgreementShopifyMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_CommercialAgreementAssetWarrantsVestedAssetRecognized" abstract="false" name="CommercialAgreementAssetWarrantsVestedAssetRecognized" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_CommercialAgreementAssetAmortizationPeriod" abstract="false" name="CommercialAgreementAssetAmortizationPeriod" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="afrm_AmortizationOfSalesAndMarketingExpense" abstract="false" name="AmortizationOfSalesAndMarketingExpense" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_CommercialAgreementAssetAccumulatedAmortization" abstract="false" name="CommercialAgreementAssetAccumulatedAmortization" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_CommercialAgreementAssetAmortizationPeriodRemainingExpectedBenefitPeriod" abstract="false" name="CommercialAgreementAssetAmortizationPeriodRemainingExpectedBenefitPeriod" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="afrm_CommercialAgreementAssetRemainingUsefulLife" abstract="false" name="CommercialAgreementAssetRemainingUsefulLife" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="afrm_FurnitureAndEquipmentMember" abstract="true" name="FurnitureAndEquipmentMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_MerchantRelationshipsMember" abstract="true" name="MerchantRelationshipsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_AssembledWorkforceMember" abstract="true" name="AssembledWorkforceMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_TrademarksAndDomainsMember" abstract="true" name="TrademarksAndDomainsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_TrademarksLicensesAndDomainsMember" abstract="true" name="TrademarksLicensesAndDomainsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService" abstract="false" name="IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearThree" abstract="false" name="FiniteLivedIntangibleAssetExpectedAmortizationAfterYearThree" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_CashDepositsProcessingReserves" abstract="false" name="CashDepositsProcessingReserves" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_RiskSharingAsset" abstract="false" name="RiskSharingAsset" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_PrepaidPayrollTax" abstract="false" name="PrepaidPayrollTax" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_LesseeOperatingLeaseTerminationNoticePeriod" abstract="false" name="LesseeOperatingLeaseTerminationNoticePeriod" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="afrm_RequiredCollateralAssetsPledgedAsCollateral" abstract="false" name="RequiredCollateralAssetsPledgedAsCollateral" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_LesseeOperatingLeaseLiabilityToBePaidYearFourAndAfterYearFour" abstract="false" name="LesseeOperatingLeaseLiabilityToBePaidYearFourAndAfterYearFour" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_USWarehouseFacilitiesMember" abstract="true" name="USWarehouseFacilitiesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_InternationalWarehouseFacilitiesMember" abstract="true" name="InternationalWarehouseFacilitiesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_VariableFundingNotesMember" abstract="true" name="VariableFundingNotesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_SalesAndRepurchaseAgreementsMember" abstract="true" name="SalesAndRepurchaseAgreementsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_FundingDebtMember" abstract="true" name="FundingDebtMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_ConvertibleSeniorNotesDue2026Member" abstract="true" name="ConvertibleSeniorNotesDue2026Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_ConvertibleSeniorNotesDue2029Member" abstract="true" name="ConvertibleSeniorNotesDue2029Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_TotalLineOfCreditFacilityMaximumBorrowingCapacityAndDebtInstrumentFaceAmount" abstract="false" name="TotalLineOfCreditFacilityMaximumBorrowingCapacityAndDebtInstrumentFaceAmount" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_LongTermDebtMaturityAfterYearFour" abstract="false" name="LongTermDebtMaturityAfterYearFour" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_VariableRateComponentAxis" abstract="true" name="VariableRateComponentAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="afrm_VariableRateComponentDomain" abstract="true" name="VariableRateComponentDomain" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_OneMonthSecuredOvernightFinancingRateSOFRMember" abstract="true" name="OneMonthSecuredOvernightFinancingRateSOFRMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_DebtInstrumentConversionAxis" abstract="true" name="DebtInstrumentConversionAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="afrm_DebtInstrumentConversionDomain" abstract="true" name="DebtInstrumentConversionDomain" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_ConversionPeriodOneMember" abstract="true" name="ConversionPeriodOneMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_ConversionPeriodTwoMember" abstract="true" name="ConversionPeriodTwoMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_DebtInstrumentConvertiblePeriodFollowingThresholdConsecutiveTradingDays" abstract="false" name="DebtInstrumentConvertiblePeriodFollowingThresholdConsecutiveTradingDays" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="afrm_MinimumPercentageOfTradingPriceToLastReportedSalePrice" abstract="false" name="MinimumPercentageOfTradingPriceToLastReportedSalePrice" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="afrm_DebtInstrumentConvertibleTradingDayObservationPeriod" abstract="false" name="DebtInstrumentConvertibleTradingDayObservationPeriod" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="afrm_DebtInstrumentAuthorizedRepurchaseAmount" abstract="false" name="DebtInstrumentAuthorizedRepurchaseAmount" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_DebtInstrumentDebtRepurchasedDuringThePeriod" abstract="false" name="DebtInstrumentDebtRepurchasedDuringThePeriod" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_DebtInstrumentRepurchasedCarryingAmount" abstract="false" name="DebtInstrumentRepurchasedCarryingAmount" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_WarehouseCreditFacilityMember" abstract="true" name="WarehouseCreditFacilityMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_SecuritizationMember" abstract="true" name="SecuritizationMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_ResidualInterestsInStructuredTransactionsMember" abstract="true" name="ResidualInterestsInStructuredTransactionsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_RiskSharingAssetsMember" abstract="true" name="RiskSharingAssetsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_RiskSharingLiabilitiesMember" abstract="true" name="RiskSharingLiabilitiesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_NonUSGovernmentAgenciesDebtSecuritiesMember" abstract="true" name="NonUSGovernmentAgenciesDebtSecuritiesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_SecuritizationNotesReceivableAndCertificatesMember" abstract="true" name="SecuritizationNotesReceivableAndCertificatesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_AgencyBondsCommercialPaperAndUSGovernmentBondsMember" abstract="true" name="AgencyBondsCommercialPaperAndUSGovernmentBondsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_OtherReceivablesMember" abstract="true" name="OtherReceivablesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_AffirmAssetSecuritizationTrust2021Z1And2021Z2NotesMember" abstract="true" name="AffirmAssetSecuritizationTrust2021Z1And2021Z2NotesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_RepurchaseAgreementMember" abstract="true" name="RepurchaseAgreementMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_DebtSecuritiesAvailableForSaleAmortizedCostIncludingCreditLossAllowance" abstract="false" name="DebtSecuritiesAvailableForSaleAmortizedCostIncludingCreditLossAllowance" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_RiskSharingAssetsLiabilitiesMember" abstract="true" name="RiskSharingAssetsLiabilitiesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_PerformanceFeeLiabilityFairValueDisclosure" abstract="false" name="PerformanceFeeLiabilityFairValueDisclosure" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_CommercialAgreementProfitShareLiabilityFairValueDisclosure" abstract="false" name="CommercialAgreementProfitShareLiabilityFairValueDisclosure" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_RiskSharingLiability" abstract="false" name="RiskSharingLiability" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SeniorNotesAndResidualTrustCertificatesMember" abstract="true" name="SeniorNotesAndResidualTrustCertificatesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_LoansSoldContinuingInvolvementWithTransferredFinancialAssetsPrincipalAmountOutstanding" abstract="false" name="LoansSoldContinuingInvolvementWithTransferredFinancialAssetsPrincipalAmountOutstanding" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_VariableInterestEntityNotPrimaryBeneficiaryRequiredEconomicRiskRetention" abstract="false" name="VariableInterestEntityNotPrimaryBeneficiaryRequiredEconomicRiskRetention" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="afrm_MeasurementInputAdequateCompensationMember" abstract="true" name="MeasurementInputAdequateCompensationMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueServicingAssetEffectOfTwentyFivePercentagePointIncreaseInMeasurementInput" abstract="false" name="SensitivityAnalysisOfFairValueServicingAssetEffectOfTwentyFivePercentagePointIncreaseInMeasurementInput" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueServicingAssetEffectOfFiftyPercentagePointIncreaseInMeasurementInput" abstract="false" name="SensitivityAnalysisOfFairValueServicingAssetEffectOfFiftyPercentagePointIncreaseInMeasurementInput" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueServicingAssetEffectOfTenPercentagePointIncreaseInMeasurementInput" abstract="false" name="SensitivityAnalysisOfFairValueServicingAssetEffectOfTenPercentagePointIncreaseInMeasurementInput" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueServicingAssetEffectOfTwentyPercentagePointIncreaseInMeasurementInput" abstract="false" name="SensitivityAnalysisOfFairValueServicingAssetEffectOfTwentyPercentagePointIncreaseInMeasurementInput" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueServicingLiabilityEffectOfTwentyFivePercentagePointIncreaseInMeasurementInput" abstract="false" name="SensitivityAnalysisOfFairValueServicingLiabilityEffectOfTwentyFivePercentagePointIncreaseInMeasurementInput" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueServicingLiabilityEffectOfFiftyPercentagePointIncreaseInMeasurementInput" abstract="false" name="SensitivityAnalysisOfFairValueServicingLiabilityEffectOfFiftyPercentagePointIncreaseInMeasurementInput" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueServicingLiabilityEffectOfTenPercentagePointIncreaseInMeasurementInput" abstract="false" name="SensitivityAnalysisOfFairValueServicingLiabilityEffectOfTenPercentagePointIncreaseInMeasurementInput" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueServicingLiabilityEffectOfTwentyPercentagePointIncreaseInMeasurementInput" abstract="false" name="SensitivityAnalysisOfFairValueServicingLiabilityEffectOfTwentyPercentagePointIncreaseInMeasurementInput" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_PerformanceFeeLiabilityMember" abstract="true" name="PerformanceFeeLiabilityMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_MeasurementInputRefundRateMember" abstract="true" name="MeasurementInputRefundRateMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_MeasurementInputLossRateMember" abstract="true" name="MeasurementInputLossRateMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_PerformanceFeeLiabilityMeasurementInput" abstract="false" name="PerformanceFeeLiabilityMeasurementInput" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:decimalItemType"/>
  <xs:element id="afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlementAndSales" abstract="false" name="FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlementAndSales" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityAccruedInterest" abstract="false" name="FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityAccruedInterest" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityImpairmentOnSecuritiesAvailableForSale" abstract="false" name="FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityImpairmentOnSecuritiesAvailableForSale" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_ResidualTrustCertificatesMeasurementInput" abstract="false" name="ResidualTrustCertificatesMeasurementInput" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:decimalItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueSecuritizationNotesAndResidualTrustCertificatesLiabilityEffectOfTwentyFivePercentagePointIncreaseDecreaseInMeasurementInput" abstract="false" name="SensitivityAnalysisOfFairValueSecuritizationNotesAndResidualTrustCertificatesLiabilityEffectOfTwentyFivePercentagePointIncreaseDecreaseInMeasurementInput" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueSecuritizationNotesAndResidualTrustCertificatesLiabilityEffectOfFiftyPercentagePointIncreaseDecreaseInMeasurementInput" abstract="false" name="SensitivityAnalysisOfFairValueSecuritizationNotesAndResidualTrustCertificatesLiabilityEffectOfFiftyPercentagePointIncreaseDecreaseInMeasurementInput" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueSecuritizationNotesAndResidualTrustCertificatesLiabilityChangeOfTwentyFivePercentagePointInMeasurementInput" abstract="false" name="SensitivityAnalysisOfFairValueSecuritizationNotesAndResidualTrustCertificatesLiabilityChangeOfTwentyFivePercentagePointInMeasurementInput" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueSecuritizationNotesAndResidualTrustCertificatesLiabilityChangeOfFiftyPercentagePointInMeasurementInput" abstract="false" name="SensitivityAnalysisOfFairValueSecuritizationNotesAndResidualTrustCertificatesLiabilityChangeOfFiftyPercentagePointInMeasurementInput" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetCapitalContribution" abstract="false" name="FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetCapitalContribution" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_ResidualInterestsInStructuredTransactionsMeasurementInput" abstract="false" name="ResidualInterestsInStructuredTransactionsMeasurementInput" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:decimalItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf20PercentAdverseChangeInDiscountRate" abstract="false" name="SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf20PercentAdverseChangeInDiscountRate" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf40PercentAdverseChangeInDiscountRate" abstract="false" name="SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf40PercentAdverseChangeInDiscountRate" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf20PercentAdverseChangeInDefaultRate" abstract="false" name="SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf20PercentAdverseChangeInDefaultRate" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf40PercentAdverseChangeInDefaultRate" abstract="false" name="SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf40PercentAdverseChangeInDefaultRate" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf20PercentAdverseChangeInPrepaymentSpeed" abstract="false" name="SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf20PercentAdverseChangeInPrepaymentSpeed" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf40PercentAdverseChangeInPrepaymentSpeed" abstract="false" name="SensitivityAnalysisOfFairValueResidualInterestsInStructuredTransactionsImpactOf40PercentAdverseChangeInPrepaymentSpeed" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_CommercialAgreementProfitShareLiabilityMember" abstract="true" name="CommercialAgreementProfitShareLiabilityMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityFacilitationOfLoans" abstract="false" name="FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityFacilitationOfLoans" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityActualGainLoss" abstract="false" name="FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityActualGainLoss" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySubsequentChangesToFairValue" abstract="false" name="FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySubsequentChangesToFairValue" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_MeasurementInputProgramProfitabilityMember" abstract="true" name="MeasurementInputProgramProfitabilityMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_CommercialAgreementProfitShareLiabilityMeasurementInput" abstract="false" name="CommercialAgreementProfitShareLiabilityMeasurementInput" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:decimalItemType"/>
  <xs:element id="afrm_RiskSharingArrangementMember" abstract="true" name="RiskSharingArrangementMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf25PercentDecreaseChangeInPrepaymentSpeed" abstract="false" name="SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf25PercentDecreaseChangeInPrepaymentSpeed" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf50PercentDecreaseChangeInPrepaymentSpeed" abstract="false" name="SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf50PercentDecreaseChangeInPrepaymentSpeed" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf25PercentAdverseChangeInLossRate" abstract="false" name="SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf25PercentAdverseChangeInLossRate" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf50PercentAdverseChangeInLossRate" abstract="false" name="SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf50PercentAdverseChangeInLossRate" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf25PercentAdverseChangeInDiscountRate" abstract="false" name="SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf25PercentAdverseChangeInDiscountRate" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf50PercentAdverseChangeInDiscountRate" abstract="false" name="SensitivityAnalysisOfFairValueRiskSharingArrangementImpactOf50PercentAdverseChangeInDiscountRate" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FinancingReceivableHeldForSaleFairValueDisclosure" abstract="false" name="FinancingReceivableHeldForSaleFairValueDisclosure" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_FinancingReceivableFairValueDisclosure" abstract="false" name="FinancingReceivableFairValueDisclosure" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_ShareBasedPaymentAgreementOptionFutureGrantMember" abstract="true" name="ShareBasedPaymentAgreementOptionFutureGrantMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_CommercialAgreementWithAmazonWarrantsMember" abstract="true" name="CommercialAgreementWithAmazonWarrantsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_CommercialAgreementWithAmazon0.01WarrantsMember" abstract="true" name="CommercialAgreementWithAmazon0.01WarrantsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_CommercialAgreementWithAmazon100WarrantsMember" abstract="true" name="CommercialAgreementWithAmazon100WarrantsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_NumberOfClassesOfCommonStock" abstract="false" name="NumberOfClassesOfCommonStock" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="afrm_CommonStockVotingRightsNumberOfVotesPerShare" abstract="false" name="CommonStockVotingRightsNumberOfVotesPerShare" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="afrm_CommonStockConversionRatio" abstract="false" name="CommonStockConversionRatio" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:pureItemType"/>
  <xs:element id="afrm_ClassOfWarrantOrRightExercised" abstract="false" name="ClassOfWarrantOrRightExercised" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="afrm_ClassOfWarrantsOrRightsExtensionTerm" abstract="false" name="ClassOfWarrantsOrRightsExtensionTerm" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="afrm_ClassOrWarrantsOrRightsSaleOrWarrantsRecognized" abstract="false" name="ClassOrWarrantsOrRightsSaleOrWarrantsRecognized" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_ClassOfWarrantsOrRightsAmortizationExpense" abstract="false" name="ClassOfWarrantsOrRightsAmortizationExpense" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_ClassOfWarrantsOrRightsExpensesOnGrantDateFairValueOnSaleOfWarrants" abstract="false" name="ClassOfWarrantsOrRightsExpensesOnGrantDateFairValueOnSaleOfWarrants" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_ClassOfWarrantOrRightOutstandingWeightedAverageGrantDateFairValue" abstract="false" name="ClassOfWarrantOrRightOutstandingWeightedAverageGrantDateFairValue" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="afrm_ClassOfWarrantOrRightExercisableWeightedAverageGrantDateFairValue" abstract="false" name="ClassOfWarrantOrRightExercisableWeightedAverageGrantDateFairValue" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="afrm_ClassOfWarrantsAndRightsNumberOfSharesRollForward" abstract="true" name="ClassOfWarrantsAndRightsNumberOfSharesRollForward" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="afrm_ClassOfWarrantOrRightSharesWarrantsGranted" abstract="false" name="ClassOfWarrantOrRightSharesWarrantsGranted" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="afrm_ClassOfWarrantOrRightSharesWarrantsExercised" abstract="false" name="ClassOfWarrantOrRightSharesWarrantsExercised" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="afrm_ClassOfWarrantOrRightSharesWarrantsCanceled" abstract="false" name="ClassOfWarrantOrRightSharesWarrantsCanceled" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="afrm_ClassOfWarrantOrRightExercisable" abstract="false" name="ClassOfWarrantOrRightExercisable" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="afrm_ClassOfWarrantsAndRightsWeightedAverageExercisePriceRollForward" abstract="true" name="ClassOfWarrantsAndRightsWeightedAverageExercisePriceRollForward" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="afrm_ClassOfWarrantOrRightGrantedWeightedAverageExercisePrice" abstract="false" name="ClassOfWarrantOrRightGrantedWeightedAverageExercisePrice" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="afrm_ClassOfWarrantOrRightExercisedWeightedAverageExercisePrice" abstract="false" name="ClassOfWarrantOrRightExercisedWeightedAverageExercisePrice" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="afrm_ClassOfWarrantOrRightCanceledWeightedAverageExercisePrice" abstract="false" name="ClassOfWarrantOrRightCanceledWeightedAverageExercisePrice" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="afrm_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRightsExercisable" abstract="false" name="ClassOfWarrantOrRightExercisePriceOfWarrantsOrRightsExercisable" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="afrm_ClassOfWarrantsAndRightsWeightedAverageRemainingLifeRollForward" abstract="true" name="ClassOfWarrantsAndRightsWeightedAverageRemainingLifeRollForward" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="afrm_ClassOfWarrantOrRightOutstandingWeightedAverageRemainingLife" abstract="false" name="ClassOfWarrantOrRightOutstandingWeightedAverageRemainingLife" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="afrm_ClassOfWarrantOrRightExercisableWeightedAverageRemainingLife" abstract="false" name="ClassOfWarrantOrRightExercisableWeightedAverageRemainingLife" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="afrm_AmendedAndRestated2012StockPlanMember" abstract="true" name="AmendedAndRestated2012StockPlanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_A2020EmployeeStockPurchasePlanMember" abstract="true" name="A2020EmployeeStockPurchasePlanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_PerformanceBasedStockOptionsMember" abstract="true" name="PerformanceBasedStockOptionsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_ShareBasedPaymentArrangementExpensePeriodForRecognition" abstract="false" name="ShareBasedPaymentArrangementExpensePeriodForRecognition" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="afrm_ShareBasedCompensationArrangementByShareBasedPaymentAwardPurchasePeriod" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardPurchasePeriod" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="afrm_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharePurchasePriceDiscountPercent" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardSharePurchasePriceDiscountPercent" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="afrm_WeightedAverageRemainingContractualTermAbstract" abstract="true" name="WeightedAverageRemainingContractualTermAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="afrm_AggregateIntrinsicValueAbstract" abstract="true" name="AggregateIntrinsicValueAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="afrm_TechnologyAndDataAnalyticsExpenseMember" abstract="true" name="TechnologyAndDataAnalyticsExpenseMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_ProcessingAndServicingExpenseMember" abstract="true" name="ProcessingAndServicingExpenseMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_ValueCreationAwardVestedSharesMember" abstract="true" name="ValueCreationAwardVestedSharesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_CommercialAgreementWithAmazonNewUsersAcquiredPriorToFebruary1Member" abstract="true" name="CommercialAgreementWithAmazonNewUsersAcquiredPriorToFebruary1Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_CommercialAgreementWithAmazonNewUsersAcquiredSubsequentToFebruary1Member" abstract="true" name="CommercialAgreementWithAmazonNewUsersAcquiredSubsequentToFebruary1Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_InstallmentFinancingServiceAgreementTerm" abstract="false" name="InstallmentFinancingServiceAgreementTerm" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="afrm_InstallmentFinancingServiceAgreementExtensionTerm" abstract="false" name="InstallmentFinancingServiceAgreementExtensionTerm" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="afrm_SellingAndMarkingExpenseWarrants" abstract="false" name="SellingAndMarkingExpenseWarrants" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="afrm_KatherineAdkinsMember" abstract="true" name="KatherineAdkinsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="afrm_SipheleleJiyaneMember" abstract="true" name="SipheleleJiyaneMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
</xs:schema>
