(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1944],{9537:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/integration/checkout/how-checkout-works",function(){return s(1188)}])},1188:function(e,t,s){"use strict";s.r(t),s.d(t,{__toc:function(){return c}});var i=s(2676),n=s(4022),r=s(1907),o=s(7464);s(3362);var a=s(2293);let c=[{depth:2,value:"Checkout lifecycle",id:"checkout-lifecycle"},{depth:3,value:"Checkout Session",id:"checkout-session"},{depth:4,value:"Checkout Session HSA FSA Eligibility Types",id:"checkout-session-hsa-fsa-eligibility-types"},{depth:4,value:"One-time and recurring payments",id:"one-time-and-recurring-payments"},{depth:3,value:"Complete a transaction",id:"complete-a-transaction"}];function d(e){let t=Object.assign({h1:"h1",p:"p",strong:"strong",h2:"h2",ol:"ol",li:"li",h3:"h3",pre:"pre",code:"code",span:"span",h4:"h4",ul:"ul",table:"table",thead:"thead",tr:"tr",th:"th",tbody:"tbody",td:"td"},(0,a.a)(),e.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.h1,{children:"How Checkout Works"}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.strong,{children:"Learn how to use checkout to collect HSA/FSA payments on your website."})}),"\n",(0,i.jsx)(t.p,{children:"Flex provides a hosted checkout page that allows businesses to accept HSA/FSA as a payment method. Flex\ntakes care of ensuring your customer's remain compliant with the IRS."}),"\n",(0,i.jsx)(t.p,{children:"Flex Checkout supports payments for both one-time purchases and subscriptions."}),"\n",(0,i.jsx)(t.h2,{id:"checkout-lifecycle",children:"Checkout lifecycle"}),"\n",(0,i.jsxs)(t.ol,{children:["\n",(0,i.jsx)(t.li,{children:"When customers are ready to complete their purchase, your application creates a new Checkout Session."}),"\n",(0,i.jsx)(t.li,{children:"The Checkout Session provides a URL that redirects customers to a Flex-hosted payment page."}),"\n",(0,i.jsx)(t.li,{children:"Customers enter their payment details and intake form if applicaple on the payment page and complete the transaction."}),"\n",(0,i.jsx)(t.li,{children:"After the transaction, a webhook fulfills the order using the checkout.session.completed event."}),"\n"]}),"\n",(0,i.jsx)(t.h3,{id:"checkout-session",children:"Checkout Session"}),"\n",(0,i.jsx)(t.p,{children:"The Checkout Session is a programmatic representation of what your customers see on the payment form.\nAfter creating a Checkout Session, redirect your customers to the Session’s URL to complete the purchase.\nWhen customers complete their purchase, you can fulfill their orders by configuring webhooks on Checkout Session events.\nThis code snippet from the quickstart guide is an example of how to create a Checkout Session in your application."}),"\n",(0,i.jsx)(t.pre,{"data-language":"bash","data-theme":"default",hasCopyCode:!0,children:(0,i.jsxs)(t.code,{"data-language":"bash","data-theme":"default",children:[(0,i.jsxs)(t.span,{className:"line",children:[(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"curl"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-string)"},children:"--request"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,i.jsxs)(t.span,{className:"line",children:[(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-string)"},children:"POST"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,i.jsxs)(t.span,{className:"line",children:[(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-string)"},children:"--url"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,i.jsxs)(t.span,{className:"line",children:[(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-string)"},children:"https://api.withflex.com/v1/checkout/sessions"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,i.jsxs)(t.span,{className:"line",children:[(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-string)"},children:"--header"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'authorization: Bearer fsk_test_YzNiYjdhNWItN2FkOS00ZTMyLWE5MmQtZTdhNzMzYzE2NTIy'"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,i.jsx)(t.span,{className:"line",children:(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})}),"\n",(0,i.jsxs)(t.span,{className:"line",children:[(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-string)"},children:"--header"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-string-expression)"},children:"'content-type: application/json'"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,i.jsx)(t.span,{className:"line",children:(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})}),"\n",(0,i.jsxs)(t.span,{className:"line",children:[(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-string)"},children:"--data"}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-token-string-expression)"},children:'\'{"checkout_session": {"line_items": [{"price": "fprice_01HT5GKN33F6E31WE2RF1GYYKH","quantity": 1}],"success_url": "https://withflex.com","mode": "payment","cancel_url": "https://withflex.com/cancel",}}\''}),(0,i.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" \\"})]}),"\n",(0,i.jsx)(t.span,{className:"line",children:" "})]})}),"\n",(0,i.jsx)(t.h4,{id:"checkout-session-hsa-fsa-eligibility-types",children:"Checkout Session HSA FSA Eligibility Types"}),"\n",(0,i.jsx)(t.p,{children:"Depending on the products or services being purchased a checkout session could fall under one of the following:"}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.strong,{children:"Not Eligible"})," - None of the items being purchased are HSA/FSA eligible."]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.strong,{children:"Auto Substantiation"})," - The items being purchased are on the Eligible Product List or Private Label List."]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.strong,{children:"Letter of Medical Necessity"})," - The item being purchased may become eligible via a letter of medical necessity."]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.strong,{children:"Split Cart"})," - Some of the items are HSA/FSA eligible and the remaining items are not. A customer will be prompted for both their HSA/FSA card and a credit card."]}),"\n"]}),"\n",(0,i.jsx)(t.p,{children:"Flex will determine the type of cheeckout for you based off of the price id's that are passed into the payload when creating a checkout session."}),"\n",(0,i.jsx)(t.h4,{id:"one-time-and-recurring-payments",children:"One-time and recurring payments"}),"\n",(0,i.jsx)(t.p,{children:"Allow customers to make one-time payments or subscribe to a product or service by setting the mode parameter in a Checkout Session."}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Mode"}),(0,i.jsx)(t.th,{children:"Purchase Type"})]})}),(0,i.jsxs)(t.tbody,{children:[(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Payment"}),(0,i.jsx)(t.td,{children:"One-time purchases"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Subscription"}),(0,i.jsx)(t.td,{children:"Recurring purchases and recurring purchases with one-time purchases"})]})]})]}),"\n",(0,i.jsx)(t.h3,{id:"complete-a-transaction",children:"Complete a transaction"}),"\n",(0,i.jsxs)(t.p,{children:["Fulfill orders when a customer completes their purchase by running webhooks after the checkout.session.completed event sends a notification.\nWebhooks are HTTP calls that run when an event occurs. For example, if a customer doesn’t make a purchase and their cart expires, you can set\na webhook on the ",(0,i.jsx)(t.code,{children:"checkout.session.expired"})," event and return items to your inventory or you can send them a cart abandonment email."]})]})}let l={MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:t}=Object.assign({},(0,a.a)(),e.components);return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(d,{...e})}):d(e)},pageOpts:{filePath:"pages/integration/checkout/how-checkout-works.mdx",route:"/integration/checkout/how-checkout-works",timestamp:1739390611e3,pageMap:[{kind:"Meta",data:{"-- overview":{type:"separator",title:"Overview"},index:"Introduction",onboarding:"Onboarding",integration:"Integration","product-prices":"Products and prices",subscription:"Subscriptions",webhooks:"Webhooks",dashboard:"Dashboard","-- merchant-success":{type:"separator",title:"Merchant Success"},"post-implementation-checklist":"Post Implementation Checklist",compliance:"Compliance","marketing-resources":"Marketing Resources","customer-support":"Customer Support","-- api-reference":{type:"separator",title:"API Reference"},"expanding-resources":{title:"Expanding Resources"},"checkout-sessions":{title:"Checkout Session",theme:{toc:!1}},coupons:{title:"Coupons",theme:{toc:!1}},customers:{title:"Customer",theme:{toc:!1}},disputes:{title:"Dispute",theme:{toc:!1}},events:{title:"Events",theme:{toc:!1}},exports:{title:"Exports",theme:{toc:!1}},invoices:{title:"Invoices",theme:{toc:!1}},"payment-intents":{title:"Payment Intent",theme:{toc:!1}},"payment-links":{title:"Payment Link",theme:{toc:!1}},prices:{title:"Price",theme:{toc:!1}},products:{title:"Product",theme:{toc:!1}},"promo-codes":{title:"Promo Codes",theme:{toc:!1}},refunds:{title:"Refund",theme:{toc:!1}},"shipping-rates":{title:"Shipping Rate",theme:{toc:!1}},subscriptions:{title:"Subscription",theme:{toc:!1}},"-- faq":{type:"separator",title:"FAQ"},faq:"HSA/FSA's"}},{kind:"Folder",name:"captures",route:"/captures",children:[{kind:"Meta",data:{"list-captures":{title:"List Captures",href:"/captures#list-captures"},"get-capture":{title:"Get Capture",href:"/captures#get-capture"},"update-capture":{title:"Update Capture",href:"/captures#update-capture"}}}]},{kind:"Folder",name:"checkout-sessions",route:"/checkout-sessions",children:[{kind:"Meta",data:{"list-checkout-sessions":{title:"List Checkout Sessions",href:"/checkout-sessions#list-checkout-sessions"},"create-checkout-session":{title:"Create Checkout Session",href:"/checkout-sessions#create-checkout-session"},"get-checkout-session":{title:"Get Checkout Session",href:"/checkout-sessions#get-checkout-session"},"capture-checkout-session":{title:"Capture Checkout Session",href:"/checkout-sessions#capture-checkout-session"},"get-line-items":{title:"Get Line Items",href:"/checkout-sessions#get-line-items"},"reauth-checkout-session":{title:"Reauth Checkout Session",href:"/checkout-sessions#reauth-checkout-session"},"refund-checkout-session":{title:"Refund Checkout Session",href:"/checkout-sessions#refund-checkout-session"}}}]},{kind:"MdxPage",name:"checkout-sessions",route:"/checkout-sessions"},{kind:"Folder",name:"compliance",route:"/compliance",children:[{kind:"Meta",data:{sigis:"SIGIS Merchant Certification",messaging:"Messaging HSA/FSA"}},{kind:"MdxPage",name:"messaging",route:"/compliance/messaging"},{kind:"MdxPage",name:"sigis",route:"/compliance/sigis"}]},{kind:"Folder",name:"coupons",route:"/coupons",children:[{kind:"Meta",data:{"list-coupons":{title:"List Coupons",href:"/coupons#list-coupons"},"create-coupon":{title:"Create Coupon",href:"/coupons#create-coupon"},"get-coupon":{title:"Get Coupon",href:"/coupons#get-coupon"}}}]},{kind:"MdxPage",name:"coupons",route:"/coupons"},{kind:"Folder",name:"customer-support",route:"/customer-support",children:[{kind:"Meta",data:{"hsa-fsa-questions":"HSA/FSA Questions","lomn-questions":"LOMN Questions","reimbursement-questions":"Reimbursement Questions"}},{kind:"MdxPage",name:"hsa-fsa-questions",route:"/customer-support/hsa-fsa-questions"},{kind:"MdxPage",name:"lomn-questions",route:"/customer-support/lomn-questions"},{kind:"MdxPage",name:"reimbursement-questions",route:"/customer-support/reimbursement-questions"}]},{kind:"MdxPage",name:"customer-support",route:"/customer-support"},{kind:"Folder",name:"customers",route:"/customers",children:[{kind:"Meta",data:{"list-customers":{title:"List Customers",href:"/customers#list-customers"},"create-customer":{title:"Create Customer",href:"/customers#create-customer"},"delete-customer":{title:"Delete Customer",href:"/customers#delete-customer"},"get-customer":{title:"Get Customer",href:"/customers#get-customer"},"update-customer":{title:"Update Customer",href:"/customers#update-customer"}}}]},{kind:"MdxPage",name:"customers",route:"/customers"},{kind:"Folder",name:"dashboard",route:"/dashboard",children:[{kind:"Meta",data:{overview:"Overview","invite-users":"Invite Users","manage-products-and-prices":"Products and Prices","manage-hsa-fsa-payments":"HSA/FSA Payments","manage-customers":"Customers"}},{kind:"MdxPage",name:"invite-users",route:"/dashboard/invite-users"},{kind:"MdxPage",name:"manage-customers",route:"/dashboard/manage-customers"},{kind:"MdxPage",name:"manage-hsa-fsa-payments",route:"/dashboard/manage-hsa-fsa-payments"},{kind:"MdxPage",name:"manage-products-and-prices",route:"/dashboard/manage-products-and-prices"},{kind:"MdxPage",name:"overview",route:"/dashboard/overview"}]},{kind:"Folder",name:"disputes",route:"/disputes",children:[{kind:"Meta",data:{"list-disputes":{title:"List Disputes",href:"/disputes#list-disputes"},"get-dispute":{title:"Get Dispute",href:"/disputes#get-dispute"},"update-dispute":{title:"Update Dispute",href:"/disputes#update-dispute"}}}]},{kind:"MdxPage",name:"disputes",route:"/disputes"},{kind:"Folder",name:"events",route:"/events",children:[{kind:"Meta",data:{"retry-event":{title:"Retry Event",href:"/events#retry-event"}}}]},{kind:"MdxPage",name:"expanding-resources",route:"/expanding-resources"},{kind:"Folder",name:"exports",route:"/exports",children:[{kind:"Meta",data:{"list-exports":{title:"List Exports",href:"/exports#list-exports"},"create-export":{title:"Create Export",href:"/exports#create-export"},"get-export":{title:"Get Export",href:"/exports#get-export"},"cancel-export":{title:"Cancel Export",href:"/exports#cancel-export"},"create-export-url":{title:"Create Export Url",href:"/exports#create-export-url"}}}]},{kind:"MdxPage",name:"exports",route:"/exports"},{kind:"MdxPage",name:"faq",route:"/faq"},{kind:"MdxPage",name:"index",route:"/"},{kind:"Folder",name:"integration",route:"/integration",children:[{kind:"Meta",data:{checkout:"Checkout","payment-links":"Payment Links",shopify:"Shopify",reimbursement:"Reimbursement","test-mode":"Test Mode"}},{kind:"Folder",name:"checkout",route:"/integration/checkout",children:[{kind:"Meta",data:{"how-checkout-works":"How Checkout Works","quick-start":"Quick Start",fulfillment:"Fulfillment",guides:"Guides"}},{kind:"MdxPage",name:"fulfillment",route:"/integration/checkout/fulfillment"},{kind:"MdxPage",name:"guides",route:"/integration/checkout/guides"},{kind:"MdxPage",name:"how-checkout-works",route:"/integration/checkout/how-checkout-works"},{kind:"MdxPage",name:"quick-start",route:"/integration/checkout/quick-start"}]},{kind:"Folder",name:"payment-links",route:"/integration/payment-links",children:[{kind:"Meta",data:{overview:"Overview",create:"Create a Payment Link"}},{kind:"MdxPage",name:"create",route:"/integration/payment-links/create"},{kind:"MdxPage",name:"overview",route:"/integration/payment-links/overview"}]},{kind:"MdxPage",name:"reimbursement",route:"/integration/reimbursement"},{kind:"Folder",name:"shopify",route:"/integration/shopify",children:[{kind:"Meta",data:{overview:"Overview","how-shopify-payments-app-works":"How Shopify Payments works",installation:"Installation",reconciliation:"Reconciliation","shopify-dev-store":"Shopify Dev Store"}},{kind:"MdxPage",name:"how-shopify-payments-app-works",route:"/integration/shopify/how-shopify-payments-app-works"},{kind:"MdxPage",name:"installation",route:"/integration/shopify/installation"},{kind:"MdxPage",name:"overview",route:"/integration/shopify/overview"},{kind:"MdxPage",name:"reconciliation",route:"/integration/shopify/reconciliation"},{kind:"MdxPage",name:"shopify-dev-store",route:"/integration/shopify/shopify-dev-store"}]},{kind:"MdxPage",name:"test-mode",route:"/integration/test-mode"}]},{kind:"Folder",name:"invoices",route:"/invoices",children:[{kind:"Meta",data:{"list-invoices":{title:"List Invoices",href:"/invoices#list-invoices"},"get-invoice":{title:"Get Invoice",href:"/invoices#get-invoice"}}}]},{kind:"MdxPage",name:"invoices",route:"/invoices"},{kind:"Folder",name:"marketing-resources",route:"/marketing-resources",children:[{kind:"Meta",data:{"best-practices":"Marketing Best Practices","q4-marketing":"Q4 Marketing Guide",shopify:"Shopify Theme App","website-templates":"Landing Page Templates","email-templates":"Email Templates","social-media-templates":"Social Media Templates","ad-templates":"Ad Templates",webflow:"Webflow Assets",react:"React Prebuilt Components"}},{kind:"MdxPage",name:"ad-templates",route:"/marketing-resources/ad-templates"},{kind:"MdxPage",name:"best-practices",route:"/marketing-resources/best-practices"},{kind:"MdxPage",name:"email-templates",route:"/marketing-resources/email-templates"},{kind:"MdxPage",name:"q4-marketing",route:"/marketing-resources/q4-marketing"},{kind:"MdxPage",name:"react",route:"/marketing-resources/react"},{kind:"MdxPage",name:"shopify",route:"/marketing-resources/shopify"},{kind:"MdxPage",name:"social-media-templates",route:"/marketing-resources/social-media-templates"},{kind:"MdxPage",name:"webflow",route:"/marketing-resources/webflow"},{kind:"MdxPage",name:"website-templates",route:"/marketing-resources/website-templates"}]},{kind:"MdxPage",name:"marketing-resources",route:"/marketing-resources"},{kind:"MdxPage",name:"onboarding",route:"/onboarding"},{kind:"Folder",name:"payment-intents",route:"/payment-intents",children:[{kind:"Meta",data:{"list-payment-intents":{title:"List Payment Intents",href:"/payment-intents#list-payment-intents"},"send-receipt":{title:"Send Receipt",href:"/payment-intents#send-receipt"},"get-payment-intent":{title:"Get Payment Intent",href:"/payment-intents#get-payment-intent"},"cancel-payment-intent":{title:"Cancel Payment Intent",href:"/payment-intents#cancel-payment-intent"}}}]},{kind:"MdxPage",name:"payment-intents",route:"/payment-intents"},{kind:"Folder",name:"payment-links",route:"/payment-links",children:[{kind:"Meta",data:{"list-payment-links":{title:"List Payment Links",href:"/payment-links#list-payment-links"},"create-payment-link":{title:"Create Payment Link",href:"/payment-links#create-payment-link"},"get-payment-link":{title:"Get Payment Link",href:"/payment-links#get-payment-link"}}}]},{kind:"MdxPage",name:"payment-links",route:"/payment-links"},{kind:"MdxPage",name:"post-implementation-checklist",route:"/post-implementation-checklist"},{kind:"Folder",name:"prices",route:"/prices",children:[{kind:"Meta",data:{"list-prices":{title:"List Prices",href:"/prices#list-prices"},"create-price":{title:"Create Price",href:"/prices#create-price"},"get-price":{title:"Get Price",href:"/prices#get-price"},"update-price":{title:"Update Price",href:"/prices#update-price"}}}]},{kind:"MdxPage",name:"prices",route:"/prices"},{kind:"Folder",name:"product-prices",route:"/product-prices",children:[{kind:"Meta",data:{"how-product-and-prices-work":"How Product and Prices Work","get-started-with-products-and-prices":"Get Started with Products and Prices"}},{kind:"MdxPage",name:"get-started-with-products-and-prices",route:"/product-prices/get-started-with-products-and-prices"},{kind:"MdxPage",name:"how-product-and-prices-work",route:"/product-prices/how-product-and-prices-work"}]},{kind:"Folder",name:"products",route:"/products",children:[{kind:"Meta",data:{"list-products":{title:"List Products",href:"/products#list-products"},"get-product":{title:"Get Product",href:"/products#get-product"},"update-product":{title:"Update Product",href:"/products#update-product"}}}]},{kind:"MdxPage",name:"products",route:"/products"},{kind:"Folder",name:"promo-codes",route:"/promo-codes",children:[{kind:"Meta",data:{"list-promo-codes":{title:"List Promo Codes",href:"/promo-codes#list-promo-codes"},"create-promo-code":{title:"Create Promo Code",href:"/promo-codes#create-promo-code"},"get-promo-code":{title:"Get Promo Code",href:"/promo-codes#get-promo-code"},"update-promo-code":{title:"Update Promo Code",href:"/promo-codes#update-promo-code"}}}]},{kind:"MdxPage",name:"promo-codes",route:"/promo-codes"},{kind:"Folder",name:"refunds",route:"/refunds",children:[{kind:"Meta",data:{"list-refunds":{title:"List Refunds",href:"/refunds#list-refunds"},"create-refund":{title:"Create Refund",href:"/refunds#create-refund"},"get-refund":{title:"Get Refund",href:"/refunds#get-refund"}}}]},{kind:"MdxPage",name:"refunds",route:"/refunds"},{kind:"Folder",name:"setup-intents",route:"/setup-intents",children:[{kind:"Meta",data:{"list-setup-intents":{title:"List Setup Intents",href:"/setup-intents#list-setup-intents"},"get-setup-intent":{title:"Get Setup Intent",href:"/setup-intents#get-setup-intent"}}}]},{kind:"Folder",name:"shipping-rates",route:"/shipping-rates",children:[{kind:"Meta",data:{"list-shipping-rates":{title:"List Shipping Rates",href:"/shipping-rates#list-shipping-rates"},"create-shipping-rate":{title:"Create Shipping Rate",href:"/shipping-rates#create-shipping-rate"},"get-shipping-rate":{title:"Get Shipping Rate",href:"/shipping-rates#get-shipping-rate"},"update-shipping-rate":{title:"Update Shipping Rate",href:"/shipping-rates#update-shipping-rate"}}}]},{kind:"MdxPage",name:"shipping-rates",route:"/shipping-rates"},{kind:"Folder",name:"subscription",route:"/subscription",children:[{kind:"Meta",data:{overview:"Overview","how-subscriptions-work":"How Subscriptions Work",quickstart:"Quickstart"}},{kind:"MdxPage",name:"how-subscriptions-work",route:"/subscription/how-subscriptions-work"},{kind:"MdxPage",name:"overview",route:"/subscription/overview"},{kind:"MdxPage",name:"quickstart",route:"/subscription/quickstart"}]},{kind:"Folder",name:"subscriptions",route:"/subscriptions",children:[{kind:"Meta",data:{"list-subscriptions":{title:"List Subscriptions",href:"/subscriptions#list-subscriptions"},"cancel-subscription":{title:"Cancel Subscription",href:"/subscriptions#cancel-subscription"},"get-subscription":{title:"Get Subscription",href:"/subscriptions#get-subscription"},"update-subscription":{title:"Update Subscription",href:"/subscriptions#update-subscription"}}}]},{kind:"MdxPage",name:"subscriptions",route:"/subscriptions"},{kind:"Folder",name:"webhooks",route:"/webhooks",children:[{kind:"Meta",data:{overview:"Overview","verifying-webhooks":"Verifying Webhooks",events:"Events"}},{kind:"MdxPage",name:"events",route:"/webhooks/events"},{kind:"MdxPage",name:"overview",route:"/webhooks/overview"},{kind:"MdxPage",name:"verifying-webhooks",route:"/webhooks/verifying-webhooks"}]}],flexsearch:{codeblocks:!0},title:"How Checkout Works",headings:c},pageNextRoute:"/integration/checkout/how-checkout-works",nextraLayout:r.ZP,themeConfig:o.Z};t.default=(0,n.j)(l)},7464:function(e,t,s){"use strict";s.d(t,{Z:function(){return f}});var i=s(2676),n=s(5271),r=s(2914),o=s.n(r),a=s(5850),c={src:"/_next/static/media/flex-logo.c5b2c780.svg",height:32,width:70,blurWidth:0,blurHeight:0},d={src:"/_next/static/media/flex-logo-white.04a1bec8.svg",height:95,width:200,blurWidth:0,blurHeight:0},l=s(4399),p=s(9361),u=s(1487),h=s(5341),m=s(6777);let k=["/post-implementation-checklist(.*)","/marketing-resources(.*)","/customer-support(.*)","/compliance(.*)"];var g=s(9369);let x=n.forwardRef((e,t)=>{let{className:s,orientation:n="horizontal",decorative:r=!0,...o}=e;return(0,i.jsx)(g.f,{ref:t,decorative:r,orientation:n,className:function(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,m.m6)((0,h.W)(t))}("shrink-0 bg-border","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",s),...o})});x.displayName=g.f.displayName;var f={logo:()=>{let{resolvedTheme:e}=(0,a.F)();return"dark"===e?(0,i.jsxs)("span",{style:{display:"flex",height:"24px"},children:[(0,i.jsx)(o(),{src:d,alt:"Logo",width:54,height:54,style:{marginRight:"8px"}}),(0,i.jsx)(x,{orientation:"vertical"}),(0,i.jsx)(p.Li,{hidePersonal:!0})]}):(0,i.jsxs)("span",{style:{display:"flex",height:"24px"},children:[(0,i.jsx)(o(),{src:c,alt:"Logo",width:54,height:54,style:{marginRight:"8px"}}),(0,i.jsx)(x,{orientation:"vertical"}),(0,i.jsx)(p.Li,{hidePersonal:!0})]})},sidebar:{defaultMenuCollapseLevel:1,titleComponent(e){let{title:t,route:s}=e;for(let e of k)if(new RegExp(e).test(s)){let{orgId:e}=(0,p.aC)();return(0,i.jsx)(i.Fragment,{children:e?t:(0,i.jsxs)("span",{className:"flex items-center",children:[(0,i.jsx)(l.Z,{size:12,style:{marginRight:"8px"}}),t]})})}return t}},navbar:{extraContent:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.tj,{children:(0,i.jsx)(p.$d,{})}),(0,i.jsx)(u.CH,{children:(0,i.jsx)(p.l8,{})})]})},editLink:{component:()=>null},feedback:{content:null},nextThemes:{defaultTheme:"light"},useNextSeoProps:()=>({titleTemplate:"%s - Flex Documentation"}),footer:{text:"Flex Developer Docs"},head:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,i.jsx)("meta",{property:"og:title",content:"Flex"}),(0,i.jsx)("meta",{property:"og:description",content:"The best way to accept HSA/FSA Payments"})]})}},5184:function(){}},function(e){e.O(0,[5145,2888,9774,179],function(){return e(e.s=9537)}),_N_E=e.O()}]);