Uma âncora acessível para abrir o checkout a partir de um slug público.
Use este componente depois de criar um link no servidor. Ele não cria cobranças: apenas navega para o checkout.
Prévia
PRÉVIA VISUALIr para o pagamento ↗
Código
payment-button.tsx
type PaymentButtonProps = { slug: string | null; label?: string;};export function PaymentButton({ slug, label = "Ir para o pagamento",}: PaymentButtonProps) { if (!slug?.trim()) { return <button className="sinnu-pay-button" disabled>Pagamento indisponível</button>; } const href = new URL(encodeURIComponent(slug), "https://pay.sinnu.com.br/").href; return <a className="sinnu-pay-button" href={href}>{label}</a>;}
Propriedades
Prop
Tipo
Descrição
slug
string | null
Slug retornado pela sinnu. null exibe o estado indisponível.
label
string
Texto da ação. Padrão: “Ir para o pagamento”.
Uso
<PaymentButton slug={link.slug} />
O componente restringe a URL à origem do checkout e codifica o slug. Para navegação, ele usa uma âncora nativa, que preserva os comportamentos de teclado e de abertura em outra aba.
Mantenha uma ação principal por etapa. Se abrir uma nova aba por escolha do seu produto, informe esse comportamento no texto acessível.
⌘I
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"sinnu developers","description":"Construa com a sinnu. Guias de integração, SDK TypeScript, componentes e referência da API de pagamentos.","colors":{"primary":"#465A00","light":"#C6F211","dark":"#7A8F34"},"logo":{"light":"https://mintcdn.com/sinnu/PQ0UtBEGrFaxApzL/assets/logo-light.svg?fit=max\u0026auto=format\u0026n=PQ0UtBEGrFaxApzL\u0026q=85\u0026s=c6fccb1b5a7c40ccce0d7fb25fb0fdc3","dark":"https://mintcdn.com/sinnu/PQ0UtBEGrFaxApzL/assets/logo-dark.svg?fit=max\u0026auto=format\u0026n=PQ0UtBEGrFaxApzL\u0026q=85\u0026s=e405a5c308c3b0bd369b37ca73b9eec3","href":"/"},"favicon":"https://mintcdn.com/sinnu/PQ0UtBEGrFaxApzL/assets/favicon.svg?fit=max\u0026auto=format\u0026n=PQ0UtBEGrFaxApzL\u0026q=85\u0026s=e96e738a49b8587926850b9c61923832","api":{"openapi":"api/openapi.yaml","playground":{"display":"none"},"examples":{"prefill":true,"autogenerate":false}},"appearance":{"default":"dark","strict":false},"background":{"color":{"light":"#FFFFFF","dark":"#0A0B09"}},"navbar":{"links":[{"href":"mailto:suporte@sinnu.com.br","label":"Suporte"}],"primary":{"type":"button","label":"Abrir painel","href":"https://app.sinnu.com.br"}},"footer":{"links":[{"header":"sinnu","items":[{"label":"Conheça a sinnu","href":"https://sinnu.com.br"},{"label":"Painel","href":"https://app.sinnu.com.br"}]},{"header":"Desenvolvedores","items":[{"label":"Suporte de integração","href":"mailto:suporte@sinnu.com.br"}]}]},"search":{"prompt":"Busque um guia, método ou componente..."},"fonts":{"heading":{"family":"Space Grotesk"},"body":{"family":"Instrument Sans"}},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","claude","chatgpt","mcp","cursor","vscode"],"display":"header"},"markdown":{"instructions":["Documentação oficial da sinnu, gateway de pagamento brasileiro: Pix e cartão de crédito. O índice de todas as páginas está em https://docs.sinnu.com.br/llms.txt.","A API (https://api.sinnu.com.br) e o checkout (https://pay.sinnu.com.br) documentados são de produção. Não há ambiente público de testes: cada chamada cria ou altera dados reais.","A chave secreta sk_live_ fica só no servidor. O navegador recebe apenas o slug do link ou a URL do checkout.","Unidades: amountCents do link e os valores de /api/transactions/ estão em centavos (inteiro). data.amount do webhook e amount das transações de um link estão em reais. Compare na mesma unidade.","Status: a API de transações usa approved; o corpo do webhook usa paid; o evento é transaction.approved.","Libere o pedido só pelo webhook assinado (X-Sinnu-Signature, validado sobre o corpo cru com constructEvent({ payload, signature, secret })) e confirme com transactions.get. Nunca pelo evento completed do Sinnu Elements nem pelos parâmetros da URL de retorno.","Estorno é sempre do valor total. Não invente métodos, campos ou eventos: confira na referência do SDK e da API."]},"styling":{"latex":false},"navigation":{"languages":[{"language":"pt-BR","default":true,"href":""}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sinnu","hasAudioNarration":false,"actualSubdomain":"sinnu","customDomains":["docs.sinnu.com.br"],"gitSource":{"type":"github","owner":"ismcos","repo":"sinnu-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6ae3ceda60633356df40629f"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6afaa2b9f20ad22eaaee5521","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"pt-BR","tag":"Comece aqui","count":20},{"language":"pt-BR","tag":"API","count":14},{"language":"pt-BR","tag":"Elements","count":13},{"language":"pt-BR","tag":"SDK","count":9},{"language":"pt-BR","tag":"Construa com IA","count":7},{"language":"pt-BR","tag":"Links de pagamento","count":6},{"language":"pt-BR","tag":"Receba e acompanhe","count":6},{"language":"pt-BR","tag":"Referência do SDK","count":5},{"language":"pt-BR","tag":"Clientes","count":4},{"language":"pt-BR","tag":"Comunidade","count":4}]},"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":"custom-rbac-roles","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":"workos-onboarding","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":"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":"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},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"styles.css","content":":root{--sinnu-lime: #C6F211;--sinnu-on-lime: #0A0B09;--sinnu-panel: #F5F6F1;--sinnu-line: #DDE1D4;--sinnu-muted: #51564A;--sinnu-text: #15180F}.dark{--sinnu-panel: #141511;--sinnu-line: #303328;--sinnu-muted: #B2B7A6;--sinnu-text: #F4F4EF}.sinnu-eyebrow,.sinnu-preview-label{font-family:ui-monospace, SFMono-Regular, monospace;font-size:11px;font-weight:600;letter-spacing:.14em;color:var(--sinnu-muted)}.sinnu-home{padding:clamp(24px, 4vw, 64px);max-width:1600px;margin:0 auto;color:var(--sinnu-text)}.sinnu-home>h2{font-family:'Space Grotesk', sans-serif;font-size:26px;font-weight:600;margin:48px 0 24px;letter-spacing:-.03em}.sinnu-home>p{max-width:76ch;color:var(--sinnu-muted);line-height:1.75;margin:24px 0}.sinnu-home>p a{color:var(--sinnu-text);text-decoration:underline;text-underline-offset:3px}.sinnu-home table{width:100%;text-align:left;font-size:14px;border-collapse:collapse}.sinnu-home th,.sinnu-home td{padding:16px 20px 16px 0;border-bottom:1px solid var(--sinnu-line);vertical-align:top}.sinnu-home td{color:var(--sinnu-muted);line-height:1.7}.sinnu-hero-grid{display:grid;grid-template-columns:minmax(0, 1.15fr) minmax(0, 1fr);gap:clamp(28px, 4vw, 64px);align-items:center;padding-bottom:40px}.sinnu-hero-title{font-family:'Space Grotesk', sans-serif;font-size:clamp(2.4rem, 3.5vw, 4rem);font-weight:600;letter-spacing:-.06em;line-height:1.1;margin:24px 0;text-wrap:balance;color:var(--sinnu-text)}.sinnu-hero-copy{max-width:34rem;font-size:18px;line-height:1.7;color:var(--sinnu-muted);margin-bottom:28px}.sinnu-code-preview{min-width:0;border:1px solid var(--sinnu-line);border-radius:20px;background:var(--sinnu-panel);overflow:hidden}.sinnu-code-caption{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--sinnu-line)}.sinnu-code-dot{width:7px;height:7px;border-radius:50%;background:#465A00}.dark .sinnu-code-dot{background:var(--sinnu-lime)}.sinnu-code-preview pre{margin:0;padding:28px 24px;font-size:13px;line-height:1.9;overflow-x:auto;background:transparent}.sinnu-code-preview code{font-family:ui-monospace, SFMono-Regular, monospace;color:var(--sinnu-text)}.sinnu-code-muted{color:var(--sinnu-muted)}.sinnu-code-string{color:#465A00}.sinnu-code-number{color:#815F00}.dark .sinnu-code-string{color:#C6F211}.dark .sinnu-code-number{color:#E8B54A}.sinnu-code-result{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:20px 24px;border-top:1px solid var(--sinnu-line);font-size:13px;color:var(--sinnu-muted)}.sinnu-code-result a{color:var(--sinnu-text);text-decoration:underline;text-underline-offset:3px}.sinnu-code-result strong{color:var(--sinnu-text);font-size:20px;font-family:'Space Grotesk', sans-serif}@media (max-width: 1199px){.sinnu-hero-grid{grid-template-columns:1fr;gap:32px}}.sinnu-primary,.sinnu-pay-button{display:inline-flex;align-items:center;justify-content:center;gap:24px;min-height:44px;padding:12px 22px;border:0;border-radius:999px;background:var(--sinnu-lime);color:var(--sinnu-on-lime)!important;font-weight:650;text-decoration:none!important}.sinnu-primary:hover,a.sinnu-pay-button:hover{background:#D9FF3D}.sinnu-primary:focus-visible,.sinnu-pay-button:focus-visible{outline:3px solid #506600;outline-offset:4px}.dark .sinnu-primary:focus-visible,.dark .sinnu-pay-button:focus-visible{outline-color:#F4F4EF}.sinnu-flow{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:24px;border:1px solid var(--sinnu-line);border-radius:16px;background:var(--sinnu-panel);color:var(--sinnu-muted);font-size:12px}.sinnu-flow b{margin-right:7px;font-family:ui-monospace, monospace;font-weight:500}.sinnu-component-preview,.sinnu-status-demo{border:1px solid var(--sinnu-line);border-radius:20px;padding:28px;background:var(--sinnu-panel);margin:28px 0}.sinnu-component-preview{display:flex;flex-direction:column;align-items:center;gap:24px}.sinnu-component-preview small{color:var(--sinnu-muted)}.sinnu-state-picker{border:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}.sinnu-state-picker legend{font-weight:600;margin-bottom:14px}.sinnu-state-picker label{cursor:pointer;position:relative}.sinnu-state-picker input{position:absolute;opacity:0;width:1px;height:1px}.sinnu-state-picker span{display:inline-flex;align-items:center;min-height:44px;border:1px solid var(--sinnu-line);border-radius:999px;padding:7px 12px;font-size:12px}.sinnu-state-picker input:checked+span{background:var(--sinnu-lime);color:var(--sinnu-on-lime);border-color:var(--sinnu-lime)}.sinnu-state-picker input:focus-visible+span{outline:3px solid #506600;outline-offset:3px}.dark .sinnu-state-picker input:focus-visible+span{outline-color:#F4F4EF}.sinnu-status-card{margin-top:24px;padding:26px;border:1px solid var(--sinnu-line);border-radius:16px}.sinnu-demo-amount{font-family:'Space Grotesk', sans-serif;font-weight:600;font-size:38px;letter-spacing:-1.5px;margin:18px 0}.sinnu-status-line{font-weight:600}.sinnu-status-card p{color:var(--sinnu-muted);font-size:14px}.dark .sinnu-status-card[data-state=\"approved\"] .sinnu-status-line{color:#C6F211}.dark .sinnu-status-card[data-state=\"pending\"] .sinnu-status-line{color:#E8B54A}.dark .sinnu-status-card[data-state=\"refused\"] .sinnu-status-line{color:#E86A4A}@media (max-width: 480px){.sinnu-component-preview,.sinnu-status-demo{padding:18px}.sinnu-flow{align-items:flex-start;flex-direction:column}.sinnu-flow>span[aria-hidden]{display:none}}@media (prefers-reduced-motion: reduce){.sinnu-home *,.sinnu-status-demo *,.sinnu-component-preview *{animation:none!important;transition:none!important}}"}],"page":{"pagePath":"elements/botao-de-pagamento","slug":"/elements/botao-de-pagamento","pageMetadata":{"title":"Botão de pagamento","description":"Uma âncora acessível para abrir o checkout a partir de um slug público.","href":"/elements/botao-de-pagamento"},"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: \"Uma âncora acessível para abrir o checkout a partir de um slug público.\"\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={code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Use este componente depois de criar um link no servidor. Ele não cria cobranças: apenas navega para o checkout.`}),`\n`,_jsx(Heading,{level:`2`,id:`prévia`,children:`Prévia`}),`\n`,_jsxs(`div`,{className:`sinnu-component-preview`,children:[_jsx(`span`,{className:`sinnu-preview-label`,children:`PRÉVIA VISUAL`}),_jsxs(`span`,{className:`sinnu-pay-button`,children:[`Ir para o pagamento `,_jsx(`span`,{\"aria-hidden\":`true`,children:`↗`})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`código`,children:`Código`}),`\n`,_jsx(CodeBlock,{filename:`payment-button.tsx`,numberOfLines:`16`,language:`tsx`,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:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`type`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` PaymentButtonProps`}),_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:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` slug`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` label`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_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\":`#C586C0`},children:`export`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` PaymentButton`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` slug`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` label`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Ir para o pagamento\"`}),_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\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` PaymentButtonProps`}),_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:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`slug`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`trim`}),_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:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` className`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sinnu-pay-button\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` disabled`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Pagamento indisponível`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` href`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` URL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`encodeURIComponent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`slug`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`), `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://pay.sinnu.com.br/\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`href`}),_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:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`a`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` className`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sinnu-pay-button\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` href`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`href`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`label`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`a`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},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`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`propriedades`,children:`Propriedades`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Prop`}),_jsx(_components.th,{children:`Tipo`}),_jsx(_components.th,{children:`Descrição`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`slug`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string | null`})}),_jsxs(_components.td,{children:[`Slug retornado pela sinnu. `,_jsx(_components.code,{children:`null`}),` exibe o estado indisponível.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`label`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Texto da ação. Padrão: “Ir para o pagamento”.`})]})]})]}),`\n`,_jsx(CodeBlock,{filename:`Uso`,numberOfLines:`1`,language:`tsx`,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:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`PaymentButton`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` slug`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`link`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`slug`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`O componente restringe a URL à origem do checkout e codifica o slug. Para navegação, ele usa uma âncora nativa, que preserva os comportamentos de teclado e de abertura em outra aba.`}),`\n`,_jsx(Heading,{level:`2`,id:`estilo-sugerido`,children:`Estilo sugerido`}),`\n`,_jsx(CodeBlock,{filename:`CSS`,numberOfLines:`22`,language:`css`,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:`css`,children:_jsxs(_components.code,{language:`css`,numberOfLines:`22`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D7BA7D`},children:`.sinnu-pay-button`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` display`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`inline-flex`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` align-items`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`center`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` justify-content`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`center`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` min-height`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`44`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#B5CEA8`},children:`px`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` padding`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#B5CEA8`},children:`px`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 22`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#B5CEA8`},children:`px`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` border`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` border-radius`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`999`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#B5CEA8`},children:`px`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` background`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`#C6F211`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` color`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`#0A0B09`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` font`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`inherit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` font-weight`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`600`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` text-decoration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`none`}),_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:`#0550AE`,\"--shiki-dark\":`#D7BA7D`},children:`.sinnu-pay-button:focus-visible`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` outline`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#B5CEA8`},children:`px`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:` solid`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:` currentColor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` outline-offset`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`4`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#B5CEA8`},children:`px`}),_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:`#0550AE`,\"--shiki-dark\":`#D7BA7D`},children:`.sinnu-pay-button:disabled`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` opacity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` cursor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`not-allowed`}),_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`]})})}),`\n`,_jsx(_components.p,{children:`Mantenha uma ação principal por etapa. Se abrir uma nova aba por escolha do seu produto, informe esse comportamento no texto acessível.`})]})}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":"Botão de pagamento","description":"Uma âncora acessível para abrir o checkout a partir de um slug público.","href":"/elements/botao-de-pagamento"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Prévia","slug":"prévia","depth":2,"children":[]},{"title":"Código","slug":"código","depth":2,"children":[]},{"title":"Propriedades","slug":"propriedades","depth":2,"children":[]},{"title":"Estilo sugerido","slug":"estilo-sugerido","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"sinnu","siteName":"sinnu developers","title":"Botão de pagamento - sinnu developers","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"pt-BR":{"href":"/elements/botao-de-pagamento","matchLevel":0}}},"lastModified":"2026-11-13T16:26:38.920Z","originalFileLocation":"elements/botao-de-pagamento.mdx","locale":"pt-BR"},"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=\"dark\"}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=\"Uma âncora acessível para abrir o checkout a partir de um slug público.\">\u003cmeta data-mint-head name=\"application-name\" content=\"sinnu developers\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sinnu/1s9d9O-UUgF97uqF/_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/sinnu/1s9d9O-UUgF97uqF/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sinnu/1s9d9O-UUgF97uqF/_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/sinnu/1s9d9O-UUgF97uqF/_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/sinnu/1s9d9O-UUgF97uqF/_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/sinnu/1s9d9O-UUgF97uqF/_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/sinnu/1s9d9O-UUgF97uqF/_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/sinnu/1s9d9O-UUgF97uqF/_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/sinnu/1s9d9O-UUgF97uqF/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Botão de pagamento - sinnu developers\">\u003cmeta data-mint-head property=\"og:description\" content=\"Uma âncora acessível para abrir o checkout a partir de um slug público.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"sinnu developers\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.sinnu.com.br/elements/botao-de-pagamento\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sinnu.mintlify.site/_mintlify/api/og/v2?division=Componentes+do+seu+site\u0026amp;title=Bot%C3%A3o+de+pagamento\u0026amp;description=Uma+%C3%A2ncora+acess%C3%ADvel+para+abrir+o+checkout+a+partir+de+um+slug+p%C3%BAblico.\u0026amp;theme=2c5c0fba980a3ba486a3b1a0\u0026amp;signature=60cbbce091667dc65adb892b9588e8e272dabc933f4ee04d372bc31302b40d55\">\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=\"Botão de pagamento - sinnu developers\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Uma âncora acessível para abrir o checkout a partir de um slug público.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sinnu.mintlify.site/_mintlify/api/og/v2?division=Componentes+do+seu+site\u0026amp;title=Bot%C3%A3o+de+pagamento\u0026amp;description=Uma+%C3%A2ncora+acess%C3%ADvel+para+abrir+o+checkout+a+partir+de+um+slug+p%C3%BAblico.\u0026amp;theme=2c5c0fba980a3ba486a3b1a0\u0026amp;signature=60cbbce091667dc65adb892b9588e8e272dabc933f4ee04d372bc31302b40d55\">\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/sinnu/1s9d9O-UUgF97uqF/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"sinnu developers\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#465A00\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.sinnu.com.br/elements/botao-de-pagamento\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/elements/botao-de-pagamento.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.sinnu.com.br/#organization\",\"name\":\"sinnu developers\",\"url\":\"https://docs.sinnu.com.br\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sinnu/PQ0UtBEGrFaxApzL/assets/logo-light.svg?fit=max\u0026auto=format\u0026n=PQ0UtBEGrFaxApzL\u0026q=85\u0026s=c6fccb1b5a7c40ccce0d7fb25fb0fdc3\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.sinnu.com.br#website\",\"name\":\"sinnu developers\",\"url\":\"https://docs.sinnu.com.br\",\"publisher\":{\"@id\":\"https://docs.sinnu.com.br/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.sinnu.com.br/elements/botao-de-pagamento#webpage\",\"url\":\"https://docs.sinnu.com.br/elements/botao-de-pagamento\",\"name\":\"Botão de pagamento\",\"description\":\"Uma âncora acessível para abrir o checkout a partir de um slug público.\",\"dateModified\":\"2026-11-13T16:26:38.920Z\",\"isPartOf\":{\"@id\":\"https://docs.sinnu.com.br#website\"},\"breadcrumb\":{\"@id\":\"https://docs.sinnu.com.br/elements/botao-de-pagamento#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.sinnu.com.br/elements/botao-de-pagamento#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"sinnu developers\",\"item\":\"https://docs.sinnu.com.br\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Botão de pagamento\",\"item\":\"https://docs.sinnu.com.br/elements/botao-de-pagamento\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.sinnu.com.br/elements/botao-de-pagamento#article\",\"headline\":\"Botão de pagamento\",\"name\":\"Botão de pagamento\",\"description\":\"Uma âncora acessível para abrir o checkout a partir de um slug público.\",\"url\":\"https://docs.sinnu.com.br/elements/botao-de-pagamento\",\"mainEntityOfPage\":{\"@id\":\"https://docs.sinnu.com.br/elements/botao-de-pagamento#webpage\"},\"dateModified\":\"2026-11-13T16:26:38.920Z\",\"publisher\":{\"@id\":\"https://docs.sinnu.com.br/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.sinnu.com.br#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"sinnu developers\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"sinnu developers\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/elements/botao-de-pagamento.md","siteName":"sinnu developers","nav":{"global":null,"languages":[{"language":"pt-BR","default":true,"tabs":[{"tab":"Comece aqui","icon":"compass","pages":[{"title":"Comece aqui","href":""}]},{"tab":"SDK","icon":"braces","pages":[{"title":"SDK","href":"/sdk/visao-geral"}]},{"tab":"Elements","icon":"app-window","groups":[{"group":"Primeiros passos","pages":[{"title":"Sinnu Elements","sidebarTitle":"Visão geral","href":"/elements/visao-geral"},{"title":"Início rápido","href":"/elements/inicio-rapido"},{"title":"Exemplo completo: propostas pagas pelo WhatsApp","sidebarTitle":"Exemplo completo","href":"/elements/exemplo-propostas"}]},{"group":"Elementos","pages":[{"title":"Elemento checkout","href":"/elements/checkout"},{"title":"Elemento payment","href":"/elements/pagamento"},{"title":"Sinnu Elements em React","description":"Os componentes SinnuCheckout e SinnuPayment, com confirm() pela ref.","href":"/elements/react"}]},{"group":"Componentes do seu site","pages":[{"title":"Botão de pagamento","href":"/elements/botao-de-pagamento"},{"title":"Status de pagamento","description":"Mostre o estado recebido do servidor sem depender apenas de cor.","href":"/elements/status-de-pagamento"}]},{"group":"Personalização","pages":[{"title":"Aparência","href":"/elements/aparencia"},{"title":"Fundamentos visuais","href":"/elements/fundamentos-visuais"},{"title":"Acessibilidade nas interfaces","href":"/elements/acessibilidade"}]},{"group":"Referência","pages":[{"title":"Eventos e erros","href":"/elements/eventos"},{"title":"Segurança do Sinnu Elements","sidebarTitle":"Segurança","href":"/elements/seguranca"}]}]},{"tab":"API","icon":"terminal","pages":[{"title":"API","href":"/api/introducao"}]},{"tab":"Comunidade","icon":"users","pages":[{"title":"Comunidade","href":"/comunidade/visao-geral"}]}]}]},"basePath":"","title":"Botão de pagamento - sinnu developers","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":[],"chunks":[]}