TypeScript type definitions for the FunnelFox Payments Web SDK
The FunnelFox Payments Web SDK ships with TypeScript type definitions for all
methods, options, and objects. They catch errors early and give you
autocompletion in your code editor.Import types from @funnelfox/billing, or from @funnelfox/billing/types
if you only need the types.
Call initMethod(), silentPurchase(), and the Stripe methods through the
Billing object: Billing.initMethod(), Billing.silentPurchase(), and
Billing.stripe.*. The type definitions also declare them as named exports,
but those named imports are undefined at runtime.
orgId in createCheckout(): The options type requires orgId, even
after you call configure().
Error classes: The type definitions declare them as interfaces, so
instanceof doesn’t compile. Narrow errors by error.name instead. Learn
more in Error handling.
Events beyond the core four: on() accepts 'success', 'error',
'status-change', and 'destroy' as strings. For other events, such as
purchase-failure, pass the EVENTS constant and cast the handler
argument. Learn more about
purchase-failure.
Tax callbacks: onTaxChange receives a typed TaxInfo. Use the
callbacks rather than events for tax updates.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"FunnelFox","colors":{"primary":"#e18535","light":"#e18535","dark":"#e18535"},"logo":{"light":"https://mintcdn.com/funnelfox/j1sUFlbSAuzPUvc1/logo2.png?fit=max\u0026auto=format\u0026n=j1sUFlbSAuzPUvc1\u0026q=85\u0026s=96e66e531e885dda9f0f968608e3d80a","dark":"https://mintcdn.com/funnelfox/j1sUFlbSAuzPUvc1/logo2.png?fit=max\u0026auto=format\u0026n=j1sUFlbSAuzPUvc1\u0026q=85\u0026s=96e66e531e885dda9f0f968608e3d80a"},"favicon":"https://mintcdn.com/funnelfox/j1sUFlbSAuzPUvc1/logo2.png?fit=max\u0026auto=format\u0026n=j1sUFlbSAuzPUvc1\u0026q=85\u0026s=96e66e531e885dda9f0f968608e3d80a","navbar":{"links":[],"primary":{"type":"button","label":"Dashboard","href":"https://app.funnelfox.com"}},"footer":{"socials":{"x":"https://x.com/Funnelfoxhq","linkedin":"https://linkedin.com/company/funnelfoxhq"}},"integrations":{"ga4":{"measurementId":"G-P77PNGGTRP"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"funnelfox","hasAudioNarration":false,"actualSubdomain":"funnelfox","customDomains":["funnelfox.com"],"gitSource":{"type":"github","owner":"adaptyteam","repo":"funnelfox-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae3550686c7ae22426db31e","collectionId":"2407e5a7-f4be-4b12-b595-25285a1d76a5","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae3550686c7ae22426db31e"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae3550686c7ae22426db31e","clientVersion":"0.0.4043","searchFilterCounts":[{"language":"default","tag":"FunnelFox","count":127},{"language":"default","tag":"Developer Docs","count":87},{"language":"default","tag":"FunnelFox Payments","count":81},{"language":"default","tag":"API reference","count":48},{"language":"default","tag":"Release Notes","count":47},{"language":"default","tag":"Changelog","count":47},{"language":"default","tag":"Integrations","count":43},{"language":"default","tag":"Webhook reference","count":42},{"language":"default","tag":"2025","count":34},{"language":"default","tag":"Editor","count":33}],"searchSettings":{"maxResults":6}},"assistantConfig":{"enableStarterQuestions":false},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".psp-compare table td:nth-child(n+2),.psp-compare table th:nth-child(n+2){text-align:center;vertical-align:middle}.psp-compare table td:first-child,.psp-compare table th:first-child{text-align:left;white-space:nowrap}"}],"page":{"pagePath":"develop/types","slug":"/develop/types","pageMetadata":{"title":"Types","sidebarTitle":"Types","description":"TypeScript type definitions for the FunnelFox Payments Web SDK","href":"/develop/types"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"TypeScript type definitions for the FunnelFox Payments Web SDK\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The FunnelFox Payments Web SDK ships with TypeScript type definitions for all\nmethods, options, and objects. They catch errors early and give you\nautocompletion in your code editor.`}),`\n`,_jsxs(_components.p,{children:[`Import types from `,_jsx(_components.code,{children:`@funnelfox/billing`}),`, or from `,_jsx(_components.code,{children:`@funnelfox/billing/types`}),`\nif you only need the types.`]}),`\n`,_jsx(Heading,{level:`2`,id:`imports`,children:`Imports`}),`\n`,_jsx(_components.p,{children:`These names are available as named imports:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Methods`}),`: `,_jsx(_components.code,{children:`configure`}),`, `,_jsx(_components.code,{children:`createCheckout`}),`, `,_jsx(_components.code,{children:`createClientSession`}),`,\n`,_jsx(_components.code,{children:`getAvailablePaymentMethods`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Namespace`}),`: `,_jsx(_components.code,{children:`Billing`}),` (also the default export).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Enum`}),`: `,_jsx(_components.code,{children:`PaymentMethod`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Constants`}),`: `,_jsx(_components.code,{children:`EVENTS`}),`, `,_jsx(_components.code,{children:`CHECKOUT_STATES`}),`, `,_jsx(_components.code,{children:`ERROR_CODES`}),`, `,_jsx(_components.code,{children:`DEFAULTS`}),`,\n`,_jsx(_components.code,{children:`SDK_VERSION`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Error classes`}),`: `,_jsx(_components.code,{children:`FunnefoxSDKError`}),`, `,_jsx(_components.code,{children:`APIError`}),`, `,_jsx(_components.code,{children:`NetworkError`}),`,\n`,_jsx(_components.code,{children:`PrimerError`}),`, `,_jsx(_components.code,{children:`CheckoutError`}),`, `,_jsx(_components.code,{children:`ValidationError`}),`, `,_jsx(_components.code,{children:`ConfigurationError`}),`.`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Call `,_jsx(_components.code,{children:`initMethod()`}),`, `,_jsx(_components.code,{children:`silentPurchase()`}),`, and the Stripe methods through the\n`,_jsx(_components.code,{children:`Billing`}),` object: `,_jsx(_components.code,{children:`Billing.initMethod()`}),`, `,_jsx(_components.code,{children:`Billing.silentPurchase()`}),`, and\n`,_jsx(_components.code,{children:`Billing.stripe.*`}),`. The type definitions also declare them as named exports,\nbut those named imports are `,_jsx(_components.code,{children:`undefined`}),` at runtime.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`main-types`,children:`Main types`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Describes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CreateCheckoutOptions`})}),_jsxs(_components.td,{children:[`Options for `,_jsx(_components.a,{href:`/develop/create-checkout`,children:`createCheckout()`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CheckoutInstance`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.a,{href:`/develop/checkout-instance`,children:`checkout object`}),` `,_jsx(_components.code,{children:`createCheckout()`}),` returns`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CheckoutState`})}),_jsxs(_components.td,{children:[`A `,_jsx(_components.a,{href:`/develop/checkout-instance#states`,children:`checkout state`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CheckoutStatus`})}),_jsxs(_components.td,{children:[`The result of `,_jsx(_components.code,{children:`getStatus()`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PaymentResult`})}),_jsxs(_components.td,{children:[`Data of the `,_jsx(_components.code,{children:`success`}),` event`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`InitMethodOptions`})}),_jsxs(_components.td,{children:[`Options for `,_jsx(_components.a,{href:`/develop/init-method`,children:`Billing.initMethod()`}),`, including callbacks`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PaymentMethodInterface`})}),_jsxs(_components.td,{children:[`The object `,_jsx(_components.code,{children:`Billing.initMethod()`}),` returns`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PaymentMethod`})}),_jsxs(_components.td,{children:[`Enum: `,_jsx(_components.code,{children:`PAYMENT_CARD`}),`, `,_jsx(_components.code,{children:`PAYPAL`}),`, `,_jsx(_components.code,{children:`GOOGLE_PAY`}),`, `,_jsx(_components.code,{children:`APPLE_PAY`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`StripeCardFormOptions`})}),_jsxs(_components.td,{children:[`Options for `,_jsx(_components.a,{href:`/develop/stripe#create-card-form`,children:`Billing.stripe.createCardForm()`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`StripeCardForm`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`{ submit() }`}),` handle the card form returns`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`StripeWalletOptions`})}),_jsxs(_components.td,{children:[`Options for `,_jsx(_components.a,{href:`/develop/stripe#purchase-with-wallet`,children:`Billing.stripe.purchaseWallet()`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CreateClientSessionOptions`})}),_jsxs(_components.td,{children:[`Options for `,_jsx(_components.a,{href:`/develop/create-client-session`,children:`createClientSession()`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ClientSessionData`})}),_jsxs(_components.td,{children:[`The session `,_jsx(_components.code,{children:`createClientSession()`}),` returns`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`TaxInfo`})}),_jsxs(_components.td,{children:[`Data passed to `,_jsx(_components.a,{href:`/develop/web-sdk-taxes#taxinfo`,children:`onTaxChange`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`TaxBehavior`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`'inclusive'`}),` or `,_jsx(_components.code,{children:`'exclusive'`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`TaxBreakdownEntry`})}),_jsxs(_components.td,{children:[`One jurisdiction in `,_jsx(_components.code,{children:`TaxInfo.taxBreakdown`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PaymentFailure`})}),_jsxs(_components.td,{children:[`An `,_jsx(_components.code,{children:`Error`}),` with `,_jsx(_components.a,{href:`/develop/error-handling#decline-codes`,children:`decline code`}),` fields`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DeclineCodeSource`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`'primer'`}),`, `,_jsx(_components.code,{children:`'stripe'`}),`, `,_jsx(_components.code,{children:`'adyen'`}),`, or another provider name`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ApplePayButtonType`})}),_jsxs(_components.td,{children:[`An `,_jsx(_components.a,{href:`/develop/checkout-customization#apple-pay`,children:`Apple Pay button type`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`BillingCardOptions`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`card`}),` option: cardholder name and email fields`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`SDKConfig`})}),_jsxs(_components.td,{children:[`Options for `,_jsx(_components.a,{href:`/develop/configure`,children:`configure()`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`APIConfig`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`apiConfig`}),` option: `,_jsx(_components.code,{children:`baseUrl`}),` and `,_jsx(_components.code,{children:`region`})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`typescript-notes`,children:`TypeScript notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`orgId`}),` in `,_jsx(_components.code,{children:`createCheckout()`})]}),`: The options type requires `,_jsx(_components.code,{children:`orgId`}),`, even\nafter you call `,_jsx(_components.code,{children:`configure()`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Error classes`}),`: The type definitions declare them as interfaces, so\n`,_jsx(_components.code,{children:`instanceof`}),` doesn’t compile. Narrow errors by `,_jsx(_components.code,{children:`error.name`}),` instead. Learn\nmore in `,_jsx(_components.a,{href:`/develop/error-handling#handle-errors`,children:`Error handling`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Events beyond the core four`}),`: `,_jsx(_components.code,{children:`on()`}),` accepts `,_jsx(_components.code,{children:`'success'`}),`, `,_jsx(_components.code,{children:`'error'`}),`,\n`,_jsx(_components.code,{children:`'status-change'`}),`, and `,_jsx(_components.code,{children:`'destroy'`}),` as strings. For other events, such as\n`,_jsx(_components.code,{children:`purchase-failure`}),`, pass the `,_jsx(_components.code,{children:`EVENTS`}),` constant and cast the handler\nargument. Learn more about\n`,_jsx(_components.a,{href:`/develop/web-sdk-events#purchase-failure`,children:`purchase-failure`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Tax callbacks`}),`: `,_jsx(_components.code,{children:`onTaxChange`}),` receives a typed `,_jsx(_components.code,{children:`TaxInfo`}),`. Use the\ncallbacks rather than events for tax updates.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`39`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`39`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`configure`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`createCheckout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PaymentMethod`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@funnelfox/billing'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` CheckoutInstance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PaymentResult`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` TaxInfo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@funnelfox/billing'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`configure`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` orgId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'your-org-id'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` checkout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` CheckoutInstance`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` createCheckout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` orgId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'your-org-id'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` priceId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'price_123'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` customer:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` externalId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'user_456'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` email:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'user@example.com'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` countryCode:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'US'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` container:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '#checkout'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` clientMetadata:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` source:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'web'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` campaign:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'summer-sale'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` paymentMethodOrder:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PaymentMethod`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`PAYPAL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PaymentMethod`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`PAYMENT_CARD`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PaymentMethod`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`GOOGLE_PAY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PaymentMethod`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`APPLE_PAY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onTaxChange`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`info`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` TaxInfo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Total:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`info`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`amountTotal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`info`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`currency`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`checkout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`on`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'success'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` PaymentResult`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Order:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`orderId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Status:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Types","sidebarTitle":"Types","description":"TypeScript type definitions for the FunnelFox Payments Web SDK","href":"/develop/types"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Imports","slug":"imports","depth":2,"children":[]},{"title":"Main types","slug":"main-types","depth":2,"children":[]},{"title":"TypeScript notes","slug":"typescript-notes","depth":2,"children":[]},{"title":"Example","slug":"example","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"funnelfox","siteName":"FunnelFox","title":"Types - FunnelFox","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-23T10:11:18.079Z","originalFileLocation":"develop/types.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"TypeScript type definitions for the FunnelFox Payments Web SDK\">\u003cmeta data-mint-head name=\"application-name\" content=\"FunnelFox\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/funnelfox/WR6O_i08dMvZ1LJb/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/funnelfox/WR6O_i08dMvZ1LJb/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/funnelfox/WR6O_i08dMvZ1LJb/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/funnelfox/WR6O_i08dMvZ1LJb/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/funnelfox/WR6O_i08dMvZ1LJb/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/funnelfox/WR6O_i08dMvZ1LJb/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/funnelfox/WR6O_i08dMvZ1LJb/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/funnelfox/WR6O_i08dMvZ1LJb/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/funnelfox/WR6O_i08dMvZ1LJb/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Types - FunnelFox\">\u003cmeta data-mint-head property=\"og:description\" content=\"TypeScript type definitions for the FunnelFox Payments Web SDK\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"FunnelFox\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://funnelfox.com/docs/develop/types\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://funnelfox.mintlify.app/_mintlify/api/og/v2?division=SDK+reference\u0026amp;title=Types\u0026amp;description=TypeScript+type+definitions+for+the+FunnelFox+Payments+Web+SDK\u0026amp;theme=255e85bca02bae65bbe41ad3\u0026amp;signature=6eb90817bc32c4f24aa8db241e14c52741cef9fc4babd28e37fed3ee12e0709f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Types - FunnelFox\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"TypeScript type definitions for the FunnelFox Payments Web SDK\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://funnelfox.mintlify.app/_mintlify/api/og/v2?division=SDK+reference\u0026amp;title=Types\u0026amp;description=TypeScript+type+definitions+for+the+FunnelFox+Payments+Web+SDK\u0026amp;theme=255e85bca02bae65bbe41ad3\u0026amp;signature=6eb90817bc32c4f24aa8db241e14c52741cef9fc4babd28e37fed3ee12e0709f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/funnelfox/WR6O_i08dMvZ1LJb/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"FunnelFox\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#e18535\">\u003clink data-mint-head rel=\"canonical\" href=\"https://funnelfox.com/docs/develop/types\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/develop/types.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://funnelfox.com/#organization\",\"name\":\"FunnelFox\",\"url\":\"https://funnelfox.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/funnelfox/j1sUFlbSAuzPUvc1/logo2.png?fit=max\u0026auto=format\u0026n=j1sUFlbSAuzPUvc1\u0026q=85\u0026s=96e66e531e885dda9f0f968608e3d80a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://funnelfox.com/docs#website\",\"name\":\"FunnelFox\",\"url\":\"https://funnelfox.com/docs\",\"publisher\":{\"@id\":\"https://funnelfox.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://funnelfox.com/docs/develop/types#webpage\",\"url\":\"https://funnelfox.com/docs/develop/types\",\"name\":\"Types\",\"description\":\"TypeScript type definitions for the FunnelFox Payments Web SDK\",\"dateModified\":\"2026-10-23T10:11:18.079Z\",\"isPartOf\":{\"@id\":\"https://funnelfox.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://funnelfox.com/docs/develop/types#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://funnelfox.com/docs/develop/types#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Billing Web SDK\",\"item\":\"https://funnelfox.com/docs/develop/web-sdk-quickstart\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SDK reference\",\"item\":\"https://funnelfox.com/docs/develop/configure\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Types\",\"item\":\"https://funnelfox.com/docs/develop/types\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://funnelfox.com/docs/develop/types#article\",\"headline\":\"Types\",\"name\":\"Types\",\"description\":\"TypeScript type definitions for the FunnelFox Payments Web SDK\",\"url\":\"https://funnelfox.com/docs/develop/types\",\"mainEntityOfPage\":{\"@id\":\"https://funnelfox.com/docs/develop/types#webpage\"},\"dateModified\":\"2026-10-23T10:11:18.079Z\",\"publisher\":{\"@id\":\"https://funnelfox.com/#organization\"},\"isPartOf\":{\"@id\":\"https://funnelfox.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"FunnelFox\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"FunnelFox","nav":{"global":null,"tabs":[{"tab":"FunnelFox","pages":[{"title":"FunnelFox","href":"/getting-started"}]},{"tab":"FunnelFox Payments","pages":[{"title":"FunnelFox Payments","href":"/billing"}]},{"tab":"Market Radar","pages":[{"title":"Market Radar","href":"/radar/overview"}]},{"tab":"Developer Docs","anchors":[{"anchor":"FunnelFox","icon":"square-chevron-up","pages":[{"title":"FunnelFox","href":"/develop/api"}]},{"anchor":"FunnelFox Payments","icon":"square-chevron-down","groups":[{"group":"API reference","pages":[{"title":"FunnelFox Payments API","sidebarTitle":"FunnelFox Payments API","href":"/develop/api-billing"},{"group":"Payment management","pages":[{"title":"Refund an order","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /payment/refund","href":"/api-reference/payment-management/refund-an-order"},{"title":"Cancel an order","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /payment/cancel","href":"/api-reference/payment-management/cancel-an-order"},{"title":"Charge a custom amount to a saved card","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /payment/one_off_charge","href":"/api-reference/payment-management/charge-a-custom-amount-to-a-saved-card"}]},{"group":"Subscription management","pages":[{"title":"Enable subscription auto-renewal","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /subscription/enable_autorenew","href":"/api-reference/subscription-management/enable-subscription-auto-renewal"},{"title":"Disable subscription auto-renewal (cancel)","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /subscription/disable_autorenew","href":"/api-reference/subscription-management/disable-subscription-auto-renewal-cancel"},{"title":"Migrate a subscription to a new plan","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /subscription/migration","href":"/api-reference/subscription-management/migrate-a-subscription-to-a-new-plan"},{"title":"Apply a discount to a subscription","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /discount","href":"/api-reference/subscription-management/apply-a-discount-to-a-subscription"},{"title":"Defer a subscription's next charge","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /subscription/defer","href":"/api-reference/subscription-management/defer-a-subscriptions-next-charge"},{"title":"Pause a subscription","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /subscription/pause","href":"/api-reference/subscription-management/pause-a-subscription"},{"title":"Resume a paused subscription","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /subscription/resume","href":"/api-reference/subscription-management/resume-a-paused-subscription"},{"title":"Search and filter subscriptions","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /subscription/search","href":"/api-reference/subscription-management/search-and-filter-subscriptions"}]},{"group":"PricePoints","pages":[{"title":"List price points","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /price_points","href":"/api-reference/pricepoints/list-price-points"},{"title":"List price points with admin fields","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /pp/list","href":"/api-reference/pricepoints/list-price-points-with-admin-fields"},{"title":"Export price points as CSV","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /pp/export_csv","href":"/api-reference/pricepoints/export-price-points-as-csv"},{"title":"Import price points from CSV","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /pp/import_csv","href":"/api-reference/pricepoints/import-price-points-from-csv"},{"title":"Update a price point","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /pp/update","href":"/api-reference/pricepoints/update-a-price-point"},{"title":"Create a price point","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /pp/create","href":"/api-reference/pricepoints/create-a-price-point"},{"title":"Create a feature (offering)","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /feature/create","href":"/api-reference/pricepoints/create-a-feature-offering"},{"title":"List all features (offerings)","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /features","href":"/api-reference/pricepoints/list-all-features-offerings"}]},{"group":"Information","pages":[{"title":"List a user's subscriptions and one-off purchases","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /my_assets","href":"/api-reference/information/list-a-users-subscriptions-and-one-off-purchases"},{"title":"Return successful payments of user","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /payments_history","href":"/api-reference/information/return-successful-payments-of-user"},{"title":"Return all transactions","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /transaction_report","href":"/api-reference/information/return-all-transactions"},{"title":"Search user","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /search_users","href":"/api-reference/information/search-user"}]},{"group":"User management","pages":[{"title":"Update email of user","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /user/update_email","href":"/api-reference/user-management/update-email-of-user"}]},{"group":"Checkout","pages":[{"title":"Create a checkout session (client token)","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /checkout/create_client_session","href":"/api-reference/checkout/create-a-checkout-session-client-token"},{"title":"Create a simple checkout session","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /checkout/create_simple_client_session","href":"/api-reference/checkout/create-a-simple-checkout-session"},{"title":"Update a checkout session","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /checkout/update_client_session","href":"/api-reference/checkout/update-a-checkout-session"},{"title":"Complete payment for an order","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /checkout/create_payment","href":"/api-reference/checkout/complete-payment-for-an-order"},{"title":"Perform a one-click purchase","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /checkout/one_click","href":"/api-reference/checkout/perform-a-one-click-purchase"},{"title":"Resume a pending payment","deprecated":null,"version":null,"openapi":"/swagger/openapi-billing.json post /checkout/resume_payment","href":"/api-reference/checkout/resume-a-pending-payment"}]}]},{"group":"Webhook reference","pages":[{"title":"Subscription engine webhook events","sidebarTitle":"FunnelFox Payments webhooks","href":"/develop/webhooks-billing"},{"group":"Webhook reference","pages":[{"title":"Order","version":null,"deprecated":null,"openapi":"/swagger/webhooks-billing.json webhook order","href":"/api-reference/webhook-reference/order"},{"title":"Subscription","version":null,"deprecated":null,"openapi":"/swagger/webhooks-billing.json webhook subscription","href":"/api-reference/webhook-reference/subscription"},{"title":"Oneoff","version":null,"deprecated":null,"openapi":"/swagger/webhooks-billing.json webhook oneoff","href":"/api-reference/webhook-reference/oneoff"},{"title":"Refund","version":null,"deprecated":null,"openapi":"/swagger/webhooks-billing.json webhook refund","href":"/api-reference/webhook-reference/refund"},{"title":"User","version":null,"deprecated":null,"openapi":"/swagger/webhooks-billing.json webhook user","href":"/api-reference/webhook-reference/user"},{"title":"Dispute","version":null,"deprecated":null,"openapi":"/swagger/webhooks-billing.json webhook dispute","href":"/api-reference/webhook-reference/dispute"}]}]},{"group":"Billing Web SDK","pages":[{"title":"Web SDK quickstart guide","sidebarTitle":"Quickstart","href":"/develop/web-sdk-quickstart"},{"group":"SDK reference","pages":[{"group":"Methods","pages":[{"title":"configure(config)","sidebarTitle":"configure","href":"/develop/configure"},{"title":"Create checkout programmatically","sidebarTitle":"createCheckout","href":"/develop/create-checkout"},{"title":"initMethod(method, element, options)","sidebarTitle":"initMethod","href":"/develop/init-method"},{"title":"getAvailablePaymentMethods(params)","sidebarTitle":"getAvailablePaymentMethods","href":"/develop/get-available-payment-methods"},{"title":"silentPurchase(options)","sidebarTitle":"silentPurchase","href":"/develop/silent-purchase"},{"title":"createClientSession(params)","sidebarTitle":"createClientSession","href":"/develop/create-client-session"},{"title":"Stripe methods","sidebarTitle":"Billing.stripe","href":"/develop/stripe"}]},{"title":"CheckoutInstance","sidebarTitle":"CheckoutInstance","href":"/develop/checkout-instance"},{"title":"Web SDK events reference","sidebarTitle":"Events","description":"Events a FunnelFox Payments Web SDK checkout emits: success, errors, state changes, destroy, and failed payment attempts.","href":"/develop/web-sdk-events"},{"title":"Types","sidebarTitle":"Types","href":"/develop/types"}]},{"title":"Error handling","sidebarTitle":"Error handling","description":"Error classes, decline codes, and handling strategies for the FunnelFox Payments Web SDK","href":"/develop/error-handling"},{"title":"Taxes in Web SDK","sidebarTitle":"Taxes","href":"/develop/web-sdk-taxes"},{"title":"Code examples \u0026 tutorials","sidebarTitle":"Examples","href":"/develop/examples"},{"title":"Checkout customization","sidebarTitle":"Checkout customization","href":"/develop/checkout-customization"},{"title":"Advanced SDK usage","sidebarTitle":"Advanced usage","href":"/develop/advanced-usage"}]}]}]},{"tab":"Release Notes","pages":[{"title":"Release Notes","href":"/release-notes/changelog"}]}]},"basePath":"","title":"Types - FunnelFox","buildId":"dpl_4RHMRqtvdHvKgaEfTTjFqjzja3B6","deploymentId":"dpl_4RHMRqtvdHvKgaEfTTjFqjzja3B6","dynamics":[],"chunks":[]}