Add the merchant’s self-custody payout address in Payout addresses and
complete the emailed verification-code step. Checkout destinations are
allowlisted because they receive merchant funds; an exchange deposit address
cannot be used.
Keep the sk_ key in the server’s secret store. Checkout creation is a
server operation, not a browser operation.
Create a small test Checkout, open its returned URL, and confirm the session
reaches completed from a server-side read before fulfilling anything.
Payer choices and the publishable-key customer-wallet path do not configure a
Checkout. For a no-backend fixed-price flow, use a payment link instead.See Payments for the method comparison and Checkout flow.
For the no-backend path, use the payment links guide;
the payment-links SDK reference documents the server-side
CRUD signatures.
What the payer sees
They choose any token they hold on any supported chain. You still receive
exactly token on chain — the swap and any bridge happen on our side.
For a checkout, recipient must be on your payout allowlist — a checkout
pays the merchant, so the destination is not payer-owned. An un-allowlisted
address is refused at creation with 403 RECIPIENT_NOT_ALLOWLISTED; add it in
the partner portal first.
Fees
GET /v1/payments/fee-config returns two fee legs: Hypermid’s fee and your
optional developer fee. The developer fee defaults to 0, is limited to 0–100
basis points, and is added to Hypermid’s fee on the same payer-input amount. A
partner-specific Hypermid override replaces the global rate; it is never added
to or clamped by that global.The figure quoted for the session is snapshotted, so a later config change never
retroactively alters a payment already opened. A same-token EVM transfer quotes
a zero fee because a plain transfer cannot collect one. On EVM routes your
developer earnings are held by Hypermid and settled periodically by manual
transfer; on the Near deposit-address rail they are paid directly by the
provider, which keeps half of every declared app fee.
Reading the result
import { getPayment } from "@hypermid/sdk";const s = await getPayment(session.id, { secretKey: process.env.HYPERMID_SECRET_KEY! });if (s.status === "completed") fulfil(invoice);
Release goods on the session read, not on the webhook body. A webhook tells
you when to look; the read tells you what is true.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Hypermid","description":"Accept crypto payments and move funds across chains. Checkout, deposit, withdrawal and swap orchestration through one API.","colors":{"primary":"#2157FF","light":"#5B8CFF","dark":"#2157FF"},"logo":{"light":"https://mintcdn.com/hypermid/ZgoQ9v7kwZNXAi8T/branding/wordmark-light.svg?fit=max\u0026auto=format\u0026n=ZgoQ9v7kwZNXAi8T\u0026q=85\u0026s=3d6e533d402b8e8877972a1e467eeb8b","dark":"https://mintcdn.com/hypermid/ZgoQ9v7kwZNXAi8T/branding/wordmark-dark.svg?fit=max\u0026auto=format\u0026n=ZgoQ9v7kwZNXAi8T\u0026q=85\u0026s=58f4c0b9df5610df24e8a9e6cb9793da","href":"https://hypermid.io"},"favicon":"https://mintcdn.com/hypermid/AmEN-tehvpi6yz0-/branding/favicon.svg?fit=max\u0026auto=format\u0026n=AmEN-tehvpi6yz0-\u0026q=85\u0026s=c22b526f09d8dde79ad633cb984d7ede","api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","javascript","python"]}},"appearance":{"default":"system"},"background":{"color":{"light":"#f9f8f5","dark":"#0a0a0a"}},"navbar":{"links":[{"href":"mailto:support@hypermid.io","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://partner.hypermid.io"}},"footer":{"socials":{"website":"https://hypermid.io","x":"https://x.com/hypermid"}},"seo":{"indexing":"navigable"},"fonts":{"family":"Geist","weight":400,"source":"fonts/GeistVF.woff","format":"woff"},"styling":{"codeblocks":"system","latex":false},"contextual":{"options":["copy","view","chatgpt","claude","grok","cursor","vscode","add-mcp","mcp","download-spec"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"hypermid","hasAudioNarration":false,"actualSubdomain":"hypermid","customDomains":["docs.hypermid.io"],"gitSource":{"type":"github","owner":"hypermid-io","repo":"offchain-agents","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10dd149ffae5051c40fdaf"},"entitlements":{},"buildId":"6b12eafe30343046f0ec4eb2","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"API Reference","count":52},{"language":"default","tag":"Endpoints","count":42},{"language":"default","tag":"Documentation","count":18},{"language":"default","tag":"payments","count":14},{"language":"default","tag":"Webhooks","count":10},{"language":"default","tag":"catalog","count":8},{"language":"default","tag":"SDK","count":7},{"language":"default","tag":"@hypermid/sdk","count":7},{"language":"default","tag":"Payments","count":6},{"language":"default","tag":"onramp","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"rbac-expansion","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":"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":"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":"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":"turbopuffer-dual-write","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},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":":root{--hm-bg: #f9f8f5;--hm-surface: #ffffff;--hm-text: #0a0a0a;--hm-muted: #6b6b6b;--hm-hint: #5a5a58;--hm-border: rgba(0, 0, 0, 0.08);--hm-border-strong: rgba(0, 0, 0, 0.14);--hm-accent: #2157ff;--hm-accent-wash: rgba(33, 87, 255, 0.12)}.dark{--hm-bg: #0a0a0a;--hm-surface: #161616;--hm-text: #f0f0ee;--hm-muted: #a0a09e;--hm-hint: #aeaead;--hm-border: rgba(255, 255, 255, 0.08);--hm-border-strong: rgba(255, 255, 255, 0.14);--hm-accent: #5b8cff;--hm-accent-wash: rgba(91, 140, 255, 0.16)}:root,.dark{--radius: 0px;--radius-sm: 0px;--radius-md: 0px;--radius-lg: 0px;--radius-xl: 0px;--radius-2xl: 0px;--radius-3xl: 0px;--radius-full: 0px}*,*::before,*::after{border-radius:0!important}html,body,button,input,textarea,select,code,pre,kbd,samp{font-family:\"Geist\", system-ui, sans-serif}.prose p,.prose ul,.prose ol,.prose li,.prose table,.mdx-content p,.mdx-content ul,.mdx-content ol,.mdx-content li{font-size:14px;line-height:1.65}.prose h1,.mdx-content h1{font-size:1.875rem;letter-spacing:-0.02em}.prose h2,.mdx-content h2{font-size:1.5rem;letter-spacing:-0.015em}.prose h3,.mdx-content h3{font-size:1.125rem;letter-spacing:-0.01em}.prose pre code,.mdx-content pre code{font-size:13px;line-height:1.6}.prose code,.mdx-content code{font-size:0.875em}.prose :not(pre)>code,.mdx-content :not(pre)>code{background:var(--hm-accent-wash);border:1px solid var(--hm-border);padding:0.1em 0.35em}.prose table,.mdx-content table{border:1px solid var(--hm-border);overflow:hidden}.prose thead,.mdx-content thead{background:var(--hm-accent-wash)}.prose th,.mdx-content th{font-weight:600;letter-spacing:0.01em}.prose td,.prose th,.mdx-content td,.mdx-content th{border-color:var(--hm-border)}.param-field-description{font-size:13px;color:var(--hm-muted)}.eyebrow{font-size:0.75rem;font-weight:500;text-transform:uppercase;letter-spacing:0.1em;color:var(--hm-muted)}"}]}
{"page":{"pagePath":"guides/checkout","slug":"/guides/checkout","pageMetadata":{"title":"Checkout","description":"Bill a payer a fixed amount.","href":"/guides/checkout"},"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: \"Bill a payer a fixed amount.\"\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`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Create the session server-side, send the payer to the returned URL, then read\nthe session back when you hear about it.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,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:`17`,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:`createCheckout`}),_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:` \"@hypermid/sdk\"`}),_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:` session`}),_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`,_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:` chain:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 8453`}),_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:` token:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\"`}),_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:` amount:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"10000000\"`}),_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:` recipient:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"0xYourTreasuryAddress\"`}),_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:` orderId:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` invoice`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`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:` metadata:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`invoiceId:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` invoice`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`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:` successUrl:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://shop.example/thanks\"`}),_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:` cancelUrl:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://shop.example/cart\"`}),_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\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`secretKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`HYPERMID_SECRET_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},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:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`redirect`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`session`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`set-up-in-the-portal`,children:`Set up in the portal`}),`\n`,_jsx(_components.p,{children:`Before creating a Checkout, an operator should:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Add the merchant’s self-custody payout address in `,_jsx(_components.strong,{children:`Payout addresses`}),` and\ncomplete the emailed verification-code step. Checkout destinations are\nallowlisted because they receive merchant funds; an exchange deposit address\ncannot be used.`]}),`\n`,_jsxs(_components.li,{children:[`Keep the `,_jsx(_components.code,{children:`sk_`}),` key in the server’s secret store. Checkout creation is a\nserver operation, not a browser operation.`]}),`\n`,_jsxs(_components.li,{children:[`Create a small test Checkout, open its returned URL, and confirm the session\nreaches `,_jsx(_components.code,{children:`completed`}),` from a server-side read before fulfilling anything.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Payer choices and the publishable-key customer-wallet path do not configure a\nCheckout. For a no-backend fixed-price flow, use a payment link instead.`}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/guides/payments`,children:`Payments`}),` for the method comparison and Checkout flow.\nFor the no-backend path, use the `,_jsx(_components.a,{href:`/guides/payment-links`,children:`payment links guide`}),`;\nthe `,_jsx(_components.a,{href:`/sdk/payment-links`,children:`payment-links SDK reference`}),` documents the server-side\nCRUD signatures.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-the-payer-sees`,children:`What the payer sees`}),`\n`,_jsxs(_components.p,{children:[`They choose any token they hold on any supported chain. You still receive\nexactly `,_jsx(_components.code,{children:`token`}),` on `,_jsx(_components.code,{children:`chain`}),` — the swap and any bridge happen on our side.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`For a checkout, `,_jsx(_components.code,{children:`recipient`}),` must be on your `,_jsx(_components.strong,{children:`payout allowlist`}),` — a checkout\npays the merchant, so the destination is not payer-owned. An un-allowlisted\naddress is refused at creation with `,_jsx(_components.code,{children:`403 RECIPIENT_NOT_ALLOWLISTED`}),`; add it in\nthe partner portal first.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`fees`,children:`Fees`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`GET /v1/payments/fee-config`}),` returns two fee legs: Hypermid’s fee and your\noptional developer fee. The developer fee defaults to 0, is limited to 0–100\nbasis points, and is added to Hypermid’s fee on the same payer-input amount. A\npartner-specific Hypermid override replaces the global rate; it is never added\nto or clamped by that global.`]}),`\n`,_jsx(_components.p,{children:`The figure quoted for the session is snapshotted, so a later config change never\nretroactively alters a payment already opened. A same-token EVM transfer quotes\na zero fee because a plain transfer cannot collect one. On EVM routes your\ndeveloper earnings are held by Hypermid and settled periodically by manual\ntransfer; on the Near deposit-address rail they are paid directly by the\nprovider, which keeps half of every declared app fee.`}),`\n`,_jsx(Heading,{level:`2`,id:`reading-the-result`,children:`Reading the result`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,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:`getPayment`}),_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:` \"@hypermid/sdk\"`}),_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:` s`}),_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:` getPayment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`session`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`secretKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`HYPERMID_SECRET_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_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:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`s`}),_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:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`fulfil`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`invoice`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Release goods on the `,_jsx(_components.strong,{children:`session read`}),`, not on the webhook body. A webhook tells\nyou when to look; the read tells you what is true.`]})})]})}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":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Checkout","description":"Bill a payer a fixed amount.","href":"/guides/checkout"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Set up in the portal","slug":"set-up-in-the-portal","depth":2,"children":[]},{"title":"What the payer sees","slug":"what-the-payer-sees","depth":2,"children":[]},{"title":"Fees","slug":"fees","depth":2,"children":[]},{"title":"Reading the result","slug":"reading-the-result","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"hypermid","siteName":"Hypermid","title":"Checkout - Hypermid","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-04T13:48:00.866Z","originalFileLocation":"guides/checkout.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=\"Bill a payer a fixed amount.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Hypermid\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/hypermid/qyyB5eOK2Rv0IBDo/_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=\"/mintlify-assets/_mintlify/favicons/hypermid/qyyB5eOK2Rv0IBDo/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hypermid/qyyB5eOK2Rv0IBDo/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/hypermid/qyyB5eOK2Rv0IBDo/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/hypermid/qyyB5eOK2Rv0IBDo/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/hypermid/qyyB5eOK2Rv0IBDo/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hypermid/qyyB5eOK2Rv0IBDo/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/hypermid/qyyB5eOK2Rv0IBDo/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/hypermid/qyyB5eOK2Rv0IBDo/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Checkout - Hypermid\">\u003cmeta data-mint-head property=\"og:description\" content=\"Bill a payer a fixed amount.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Hypermid\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.hypermid.io/guides/checkout\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://hypermid.mintlify.site/_mintlify/api/og/v2?division=Payments\u0026amp;title=Checkout\u0026amp;description=Bill+a+payer+a+fixed+amount.\u0026amp;theme=7f6a3e58a9c5ff5d60958e15\u0026amp;signature=e2a14fe0dd7e112fa22f5eea1518775153906acd66d43480c3724761a4e53b07\">\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=\"Checkout - Hypermid\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Bill a payer a fixed amount.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://hypermid.mintlify.site/_mintlify/api/og/v2?division=Payments\u0026amp;title=Checkout\u0026amp;description=Bill+a+payer+a+fixed+amount.\u0026amp;theme=7f6a3e58a9c5ff5d60958e15\u0026amp;signature=e2a14fe0dd7e112fa22f5eea1518775153906acd66d43480c3724761a4e53b07\">\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=\"/mintlify-assets/_mintlify/favicons/hypermid/qyyB5eOK2Rv0IBDo/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Hypermid\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2157FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.hypermid.io/guides/checkout\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/checkout.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.hypermid.io/#organization\",\"name\":\"Hypermid\",\"url\":\"https://docs.hypermid.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/hypermid/ZgoQ9v7kwZNXAi8T/branding/wordmark-light.svg?fit=max\u0026auto=format\u0026n=ZgoQ9v7kwZNXAi8T\u0026q=85\u0026s=3d6e533d402b8e8877972a1e467eeb8b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.hypermid.io#website\",\"name\":\"Hypermid\",\"url\":\"https://docs.hypermid.io\",\"publisher\":{\"@id\":\"https://docs.hypermid.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.hypermid.io/guides/checkout#webpage\",\"url\":\"https://docs.hypermid.io/guides/checkout\",\"name\":\"Checkout\",\"description\":\"Bill a payer a fixed amount.\",\"dateModified\":\"2026-09-04T13:48:00.866Z\",\"isPartOf\":{\"@id\":\"https://docs.hypermid.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.hypermid.io/guides/checkout#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.hypermid.io/guides/checkout#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Payments\",\"item\":\"https://docs.hypermid.io/guides/payments\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Checkout\",\"item\":\"https://docs.hypermid.io/guides/checkout\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.hypermid.io/guides/checkout#article\",\"headline\":\"Checkout\",\"name\":\"Checkout\",\"description\":\"Bill a payer a fixed amount.\",\"url\":\"https://docs.hypermid.io/guides/checkout\",\"mainEntityOfPage\":{\"@id\":\"https://docs.hypermid.io/guides/checkout#webpage\"},\"dateModified\":\"2026-09-04T13:48:00.866Z\",\"publisher\":{\"@id\":\"https://docs.hypermid.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.hypermid.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Hypermid\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Hypermid\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/checkout.md","siteName":"Hypermid","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Get started","pages":[{"title":"Hypermid","href":""},{"title":"Get an account","href":"/account"},{"title":"Quickstart","href":"/quickstart"},{"title":"Authentication","href":"/authentication"},{"title":"Sandbox and production","href":"/environments"}]},{"group":"Payments","pages":[{"title":"Payments","description":"One Payments product with three modes and two integration methods.","href":"/guides/payments"},{"title":"Checkout","href":"/guides/checkout"},{"title":"Payment links","description":"Create a reusable fixed-price payment link without building a backend.","href":"/guides/payment-links"},{"title":"Deposit","href":"/guides/deposit"},{"title":"Withdrawal","href":"/guides/withdrawal"},{"title":"Swap orchestration","href":"/guides/swap"}]},{"group":"Concepts","pages":[{"title":"Payment modes","href":"/concepts/payment-modes"},{"title":"Execution flows","href":"/concepts/execution-flows"},{"title":"Session lifecycle","href":"/concepts/lifecycle"}]},{"group":"Webhooks","pages":[{"title":"Webhooks","href":"/guides/webhooks"}]},{"group":"Resources","pages":[{"title":"Postman collection","href":"/resources/postman"},{"title":"Error codes","href":"/resources/errors"},{"title":"Support","href":"/resources/support"}]}]},{"tab":"API Reference","icon":"square-terminal","pages":[{"title":"API Reference","href":"/api-reference/overview"}]},{"tab":"SDK","icon":"code","pages":[{"title":"SDK","href":"/sdk/overview"}]}]},"basePath":"","title":"Checkout - Hypermid","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":[],"chunks":[]}