{ "error": { "type": "invalid_request_error", "message": "payout_address must be a 0x EVM address" }}
Confirm the final outcome server-side, via webhooks or
GET /checkout/:id, rather than trusting the
browser redirect.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Pesarc","description":"Send, hold, earn and settle money across borders in your own currency. Guides, integrations and the Pesarc API.","colors":{"primary":"#3AA0FF","light":"#8AC4FF","dark":"#041a33"},"logo":{"light":"https://mintcdn.com/pesarc/BLNsUzKKq3O3a5WR/logo/light.svg?fit=max\u0026auto=format\u0026n=BLNsUzKKq3O3a5WR\u0026q=85\u0026s=df06bad08da0ce10c3adca5f24ee506d","dark":"https://mintcdn.com/pesarc/BLNsUzKKq3O3a5WR/logo/dark.svg?fit=max\u0026auto=format\u0026n=BLNsUzKKq3O3a5WR\u0026q=85\u0026s=660594bc7d39db5359b1872b7848749d","href":"https://pesarc.xyz"},"favicon":"https://mintcdn.com/pesarc/BLNsUzKKq3O3a5WR/favicon.svg?fit=max\u0026auto=format\u0026n=BLNsUzKKq3O3a5WR\u0026q=85\u0026s=6ba3d2701d467469a1932a15be99154c","navbar":{"links":[{"href":"mailto:support@pesarc.xyz","label":"Support"}],"primary":{"type":"button","label":"Open app","href":"https://pesarc.xyz"}},"footer":{"socials":{"x":"https://x.com/pesarc","github":"https://github.com/pesarc"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pesarc","hasAudioNarration":false,"actualSubdomain":"pesarc","customDomains":["docs.pesarc.xyz"],"gitSource":{"type":"github","owner":"pesarc","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6abea32d254a31730630b7a1","clientVersion":"0.0.4142","searchFilterCounts":[{"language":"default","tag":"Guides","count":15},{"language":"default","tag":"API reference","count":7},{"language":"default","tag":"Using the app","count":6},{"language":"default","tag":"Endpoints","count":5},{"language":"default","tag":"Integrations","count":4},{"language":"default","tag":"API","count":2},{"language":"default","tag":"Get started","count":2},{"language":"default","tag":"Liquidity","count":2},{"language":"default","tag":"Network","count":1}]},"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":false},"customCss":[],"page":{"pagePath":"api-reference/create-payment","slug":"/api-reference/create-payment","pageMetadata":{"title":"Create a payment","api":"POST https://pesarc.xyz/api/v1/payments","description":"Create a hosted checkout session and get a checkout_url to send the customer to.","href":"/api-reference/create-payment"},"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: \"Create a hosted checkout session and get a checkout_url to send the customer to.\"\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`,p:`p`,..._provideComponents(),...props.components},{Heading,Note,ParamField,ResponseField}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Creates a payment session. Redirect the customer to the returned `,_jsx(_components.code,{children:`checkout_url`}),`;\nPesarc hosts the payment page, settles on-chain and sponsors gas.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsx(_components.p,{children:_jsx(_components.code,{children:`Bearer sk_live_…`})})}),`\n`,_jsx(ParamField,{body:`amount`,type:`number`,required:true,id:`param-amount`,children:_jsxs(_components.p,{children:[`Amount to charge, in `,_jsx(_components.code,{children:`currency`}),`. Positive, up to 1,000,000,000.`]})}),`\n`,_jsx(ParamField,{body:`currency`,type:`string`,required:true,id:`param-currency`,children:_jsxs(_components.p,{children:[`Currency code, 2–8 characters (e.g. `,_jsx(_components.code,{children:`NGN`}),`, `,_jsx(_components.code,{children:`GHS`}),`, `,_jsx(_components.code,{children:`KES`}),`).`]})}),`\n`,_jsx(ParamField,{body:`redirect_url`,type:`string`,required:true,id:`param-redirect-url`,children:_jsx(_components.p,{children:`Where to send the customer when they finish. Must be a valid URL.`})}),`\n`,_jsx(ParamField,{body:`reference`,type:`string`,id:`param-reference`,children:_jsx(_components.p,{children:`Your own id for this payment (max 64 chars). Use it to reconcile and dedupe.`})}),`\n`,_jsx(ParamField,{body:`merchant_name`,type:`string`,id:`param-merchant-name`,children:_jsx(_components.p,{children:`Name shown to the customer on the checkout page (max 80 chars).`})}),`\n`,_jsx(ParamField,{body:`description`,type:`string`,id:`param-description`,children:_jsx(_components.p,{children:`Short description of what’s being paid for (max 300 chars).`})}),`\n`,_jsx(ParamField,{body:`webhook_url`,type:`string`,id:`param-webhook-url`,children:_jsxs(_components.p,{children:[`URL Pesarc POSTs settlement events to. See `,_jsx(_components.a,{href:`/integrations/webhooks`,children:`Webhooks`}),`.`]})}),`\n`,_jsx(ParamField,{body:`payout_address`,type:`string`,id:`param-payout-address`,children:_jsxs(_components.p,{children:[`Optional `,_jsx(_components.code,{children:`0x`}),` EVM address to settle this payment to.`]})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`object`,id:`param-metadata`,children:_jsx(_components.p,{children:`Arbitrary key/value data echoed back to you on reads and webhooks.`})}),`\n`,_jsx(ParamField,{body:`ttl_minutes`,type:`integer`,id:`param-ttl-minutes`,children:_jsx(_components.p,{children:`How long the session stays open, 1–1440 minutes.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`checkout_url`,type:`string`,id:`param-checkout-url`,children:_jsx(_components.p,{children:`The hosted page to redirect the customer to.`})}),`\n`,_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:`The payment id.`}),`\n`,_jsxs(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:[`Initial status (e.g. `,_jsx(_components.code,{children:`pending`}),`).`]}),`\n`,`\n`,`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Confirm the final outcome server-side, via `,_jsx(_components.a,{href:`/integrations/webhooks`,children:`webhooks`}),` or\n`,_jsx(_components.a,{href:`/api-reference/get-checkout`,children:_jsx(_components.code,{children:`GET /checkout/:id`})}),`, rather than trusting the\nbrowser redirect.`]})})]})}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":"Create a payment","api":"POST https://pesarc.xyz/api/v1/payments","description":"Create a hosted checkout session and get a checkout_url to send the customer to.","href":"/api-reference/create-payment"}}},"mdxSourceWithNoJs":{"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`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Creates a payment session. Redirect the customer to the returned `,_jsx(_components.code,{children:`checkout_url`}),`;\nPesarc hosts the payment page, settles on-chain and sponsors gas.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsx(_components.p,{children:_jsx(_components.code,{children:`Bearer sk_live_…`})})}),`\n`,_jsx(ParamField,{body:`amount`,type:`number`,required:true,id:`param-amount`,children:_jsxs(_components.p,{children:[`Amount to charge, in `,_jsx(_components.code,{children:`currency`}),`. Positive, up to 1,000,000,000.`]})}),`\n`,_jsx(ParamField,{body:`currency`,type:`string`,required:true,id:`param-currency`,children:_jsxs(_components.p,{children:[`Currency code, 2–8 characters (e.g. `,_jsx(_components.code,{children:`NGN`}),`, `,_jsx(_components.code,{children:`GHS`}),`, `,_jsx(_components.code,{children:`KES`}),`).`]})}),`\n`,_jsx(ParamField,{body:`redirect_url`,type:`string`,required:true,id:`param-redirect-url`,children:_jsx(_components.p,{children:`Where to send the customer when they finish. Must be a valid URL.`})}),`\n`,_jsx(ParamField,{body:`reference`,type:`string`,id:`param-reference`,children:_jsx(_components.p,{children:`Your own id for this payment (max 64 chars). Use it to reconcile and dedupe.`})}),`\n`,_jsx(ParamField,{body:`merchant_name`,type:`string`,id:`param-merchant-name`,children:_jsx(_components.p,{children:`Name shown to the customer on the checkout page (max 80 chars).`})}),`\n`,_jsx(ParamField,{body:`description`,type:`string`,id:`param-description`,children:_jsx(_components.p,{children:`Short description of what’s being paid for (max 300 chars).`})}),`\n`,_jsx(ParamField,{body:`webhook_url`,type:`string`,id:`param-webhook-url`,children:_jsxs(_components.p,{children:[`URL Pesarc POSTs settlement events to. See `,_jsx(_components.a,{href:`/integrations/webhooks`,children:`Webhooks`}),`.`]})}),`\n`,_jsx(ParamField,{body:`payout_address`,type:`string`,id:`param-payout-address`,children:_jsxs(_components.p,{children:[`Optional `,_jsx(_components.code,{children:`0x`}),` EVM address to settle this payment to.`]})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`object`,id:`param-metadata`,children:_jsx(_components.p,{children:`Arbitrary key/value data echoed back to you on reads and webhooks.`})}),`\n`,_jsx(ParamField,{body:`ttl_minutes`,type:`integer`,id:`param-ttl-minutes`,children:_jsx(_components.p,{children:`How long the session stays open, 1–1440 minutes.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`checkout_url`,type:`string`,id:`param-checkout-url`,children:_jsx(_components.p,{children:`The hosted page to redirect the customer to.`})}),`\n`,_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:`The payment id.`}),`\n`,_jsxs(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:[`Initial status (e.g. `,_jsx(_components.code,{children:`pending`}),`).`]}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`11`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://pesarc.xyz/api/v1/payments`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sk_live_xxx\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"amount\": 50000,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"currency\": \"NGN\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"reference\": \"order_1042\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"merchant_name\": \"Ada Fabrics\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"redirect_url\": \"https://ada-fabrics.com/thanks\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"webhook_url\": \"https://ada-fabrics.com/api/pesarc/webhook\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200`,numberOfLines:`5`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pay_7Q2m\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"checkout_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://pesarc.xyz/checkout/pay_7Q2m\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pending\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400`,numberOfLines:`6`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"invalid_request_error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"payout_address must be a 0x EVM address\"`})]}),`\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`]})})})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Confirm the final outcome server-side, via `,_jsx(_components.a,{href:`/integrations/webhooks`,children:`webhooks`}),` or\n`,_jsx(_components.a,{href:`/api-reference/get-checkout`,children:_jsx(_components.code,{children:`GET /checkout/:id`})}),`, rather than trusting the\nbrowser redirect.`]})})]})}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":"Create a payment","api":"POST https://pesarc.xyz/api/v1/payments","description":"Create a hosted checkout session and get a checkout_url to send the customer to.","href":"/api-reference/create-payment"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Request","slug":"request","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"11\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://pesarc.xyz/api/v1/payments\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer sk_live_xxx\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"amount\": 50000,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"currency\": \"NGN\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"reference\": \"order_1042\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"merchant_name\": \"Ada Fabrics\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"redirect_url\": \"https://ada-fabrics.com/thanks\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"webhook_url\": \"https://ada-fabrics.com/api/pesarc/webhook\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"pay_7Q2m\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"checkout_url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://pesarc.xyz/checkout/pay_7Q2m\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"pending\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"invalid_request_error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"payout_address must be a 0x EVM address\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Create a payment","path":"/api/v1/payments","servers":[{"url":"https://pesarc.xyz"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{"Authorization":{"schema":[{"type":"string","description":"`Bearer sk_live_…`","required":true}]}},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"amount":[{"type":"number","description":"Amount to charge, in `currency` . Positive, up to 1,000,000,000.","required":true}],"currency":[{"type":"string","description":"Currency code, 2–8 characters (e.g. `NGN` , `GHS` , `KES` ).","required":true}],"redirect_url":[{"type":"string","description":"Where to send the customer when they finish. Must be a valid URL.","required":true}],"reference":[{"type":"string","description":"Your own id for this payment (max 64 chars). Use it to reconcile and dedupe."}],"merchant_name":[{"type":"string","description":"Name shown to the customer on the checkout page (max 80 chars)."}],"description":[{"type":"string","description":"Short description of what’s being paid for (max 300 chars)."}],"webhook_url":[{"type":"string","description":"URL Pesarc POSTs settlement events to. See Webhooks ."}],"payout_address":[{"type":"string","description":"Optional `0x` EVM address to settle this payment to."}],"metadata":[{"type":"object","properties":{},"description":"Arbitrary key/value data echoed back to you on reads and webhooks."}],"ttl_minutes":[{"type":"integer","description":"How long the session stays open, 1–1440 minutes."}]}}],"examples":{"example":{"value":{"amount":123,"currency":"\u003cstring>","redirect_url":"\u003cstring>","reference":"\u003cstring>","merchant_name":"\u003cstring>","description":"\u003cstring>","webhook_url":"\u003cstring>","payout_address":"\u003cstring>","metadata":{},"ttl_minutes":123}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"checkout_url":[{"type":"string","description":"The hosted page to redirect the customer to."}],"id":[{"type":"string","description":"The payment id."}],"status":[{"type":"string","description":"Initial status (e.g. `pending` )."}]}}],"examples":{"example":{"value":{"checkout_url":"\u003cstring>","id":"\u003cstring>","status":"\u003cstring>"}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"pesarc","siteName":"Pesarc","title":"Create a payment - Pesarc","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-29T13:19:22.282Z","originalFileLocation":"api-reference/create-payment.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=\"Create a hosted checkout session and get a checkout_url to send the customer to.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Pesarc\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pesarc/FNnYTh-RHIYB0xa7/_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/pesarc/FNnYTh-RHIYB0xa7/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pesarc/FNnYTh-RHIYB0xa7/_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/pesarc/FNnYTh-RHIYB0xa7/_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/pesarc/FNnYTh-RHIYB0xa7/_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/pesarc/FNnYTh-RHIYB0xa7/_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/pesarc/FNnYTh-RHIYB0xa7/_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/pesarc/FNnYTh-RHIYB0xa7/_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/pesarc/FNnYTh-RHIYB0xa7/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a payment - Pesarc\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a hosted checkout session and get a checkout_url to send the customer to.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Pesarc\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.pesarc.xyz/api-reference/create-payment\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pesarc.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Create+a+payment\u0026amp;description=Create+a+hosted+checkout+session+and+get+a+checkout_url+to+send+the+customer+to.\u0026amp;theme=4e68795f36df7050c5c8b7ed\u0026amp;signature=3a86b6e0e3e8f97417ad6cb821197b4a2ccf9c58bdc01a5dfb67c8afddb27467\">\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=\"Create a payment - Pesarc\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a hosted checkout session and get a checkout_url to send the customer to.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pesarc.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Create+a+payment\u0026amp;description=Create+a+hosted+checkout+session+and+get+a+checkout_url+to+send+the+customer+to.\u0026amp;theme=4e68795f36df7050c5c8b7ed\u0026amp;signature=3a86b6e0e3e8f97417ad6cb821197b4a2ccf9c58bdc01a5dfb67c8afddb27467\">\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/pesarc/FNnYTh-RHIYB0xa7/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Pesarc\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3AA0FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.pesarc.xyz/api-reference/create-payment\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/create-payment.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.pesarc.xyz/#organization\",\"name\":\"Pesarc\",\"url\":\"https://docs.pesarc.xyz\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pesarc/BLNsUzKKq3O3a5WR/logo/light.svg?fit=max\u0026auto=format\u0026n=BLNsUzKKq3O3a5WR\u0026q=85\u0026s=df06bad08da0ce10c3adca5f24ee506d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.pesarc.xyz#website\",\"name\":\"Pesarc\",\"url\":\"https://docs.pesarc.xyz\",\"publisher\":{\"@id\":\"https://docs.pesarc.xyz/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.pesarc.xyz/api-reference/create-payment#webpage\",\"url\":\"https://docs.pesarc.xyz/api-reference/create-payment\",\"name\":\"Create a payment\",\"description\":\"Create a hosted checkout session and get a checkout_url to send the customer to.\",\"dateModified\":\"2026-09-29T13:19:22.282Z\",\"isPartOf\":{\"@id\":\"https://docs.pesarc.xyz#website\"},\"breadcrumb\":{\"@id\":\"https://docs.pesarc.xyz/api-reference/create-payment#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.pesarc.xyz/api-reference/create-payment#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.pesarc.xyz/api-reference/ping\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a payment\",\"item\":\"https://docs.pesarc.xyz/api-reference/create-payment\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.pesarc.xyz/api-reference/create-payment#apireference\",\"headline\":\"Create a payment\",\"name\":\"Create a payment\",\"description\":\"Create a hosted checkout session and get a checkout_url to send the customer to.\",\"url\":\"https://docs.pesarc.xyz/api-reference/create-payment\",\"mainEntityOfPage\":{\"@id\":\"https://docs.pesarc.xyz/api-reference/create-payment#webpage\"},\"dateModified\":\"2026-09-29T13:19:22.282Z\",\"publisher\":{\"@id\":\"https://docs.pesarc.xyz/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.pesarc.xyz#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Pesarc\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Pesarc\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/create-payment.md","siteName":"Pesarc","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"API reference","groups":[{"group":"API","root":{"title":"API reference","sidebarTitle":"Introduction","href":"/api-reference/introduction"},"pages":[{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Errors \u0026 rate limits","href":"/api-reference/errors"}]},{"group":"Endpoints","pages":[{"title":"Ping","api":"GET https://pesarc.xyz/api/v1/ping","description":"Confirm an API key works and see which account it is scoped to.","href":"/api-reference/ping"},{"title":"Create a payment","api":"POST https://pesarc.xyz/api/v1/payments","href":"/api-reference/create-payment"},{"title":"Get checkout status","api":"GET https://pesarc.xyz/api/checkout/{id}","description":"Read a payment's public, display-only status.","href":"/api-reference/get-checkout"},{"title":"Agent turn","api":"POST https://pesarc.xyz/api/agent/settle","href":"/api-reference/agent-settle"},{"title":"API keys","api":"GET/POST https://pesarc.xyz/api/keys","href":"/api-reference/keys"}]}]}]},"basePath":"","title":"Create a payment - Pesarc","buildId":"dpl_G2Qd45vZZ7MkBiGF9yYx8ZsbbKXX","deploymentId":"dpl_G2Qd45vZZ7MkBiGF9yYx8ZsbbKXX","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-NXj-Rqjv.js","utils-m0thOP-_.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D13EKcfm.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema--XTdfsEb.js","snippetPresets-D3s4lmAH.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-ChURybxL.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DL8CiXq2.js","shallow-DI2-YB2E.js","getApiPlaygroundDisplay-DxbW7b_y.js","CodeSnippet-CiNYS0pP.js","CodeSnippets-BT87bThu.js","Page-DSpdRuhM.js","getPastedJson-F_g_IrFQ.js","icon-CCIG5BAs.js","MethodPill-DY3E0jwx.js","DuplicateIcon-BN88xnEg.js","createIcon-VCCc5HO5.js","DynamicMarkdown-CaSwclgK.js","SectionHeading-DXV8nWhc.js","axios-vUo_bRtp.js"]}