Creates a session token for the Orchestra Payments Library. The session token is a JWT that authorizes the client-side library to display payment buttons and process payments. The token is valid for 30 minutes. Your server creates the session with the desired operation type, amount, and allowed payment methods, then passes the token to the client-side library.
For returning customers, the request can include storedCards: up to 3 previously tokenized cards, each with its token and display details (brand, lastDigits, expirationMonth, expirationYear, nameOnCard). The card entry page then shows a “Pay by {brand} ****{last 4}” button per card, and the payer only enters the CVV; the charge runs against the real card resolved from the token.
Stored cards are not allowed with the TOKENIZE operation. Each token must belong to your account, and expired cards are rejected. The display details are shown to the payer exactly as provided - persist them from the tokenAndMaskedCardModel.bankCard returned at tokenization time, as they cannot be retrieved later. A stored-card payment in a CHARGE_AND_TOKENIZE or PREAUTH_AND_TOKENIZE session is not tokenized again. See CardPay: Stored Cards for the full guide.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Orchestra Solutions","description":"Payment orchestration platform documentation","colors":{"primary":"#262261","light":"#00ADEE","dark":"#262261"},"logo":{"light":"https://mintcdn.com/orchestrasolutions/JxGWfuqQpaY3_0EL/logo/light.svg?fit=max\u0026auto=format\u0026n=JxGWfuqQpaY3_0EL\u0026q=85\u0026s=f1ba1d9bcabe35d42362da8843632659","dark":"https://mintcdn.com/orchestrasolutions/JxGWfuqQpaY3_0EL/logo/dark.svg?fit=max\u0026auto=format\u0026n=JxGWfuqQpaY3_0EL\u0026q=85\u0026s=5d077d626ed19d1198aaa2f063807260"},"favicon":"https://mintcdn.com/orchestrasolutions/nLJB-634gzBtYuQB/favicon.svg?fit=max\u0026auto=format\u0026n=nLJB-634gzBtYuQB\u0026q=85\u0026s=2c7a783e8f8b28940f3dc9d487383592","api":{"openapi":"orchsol.json"},"navbar":{"links":[{"href":"https://orchestrasolutions.com/","label":"Home"},{"href":"https://orchestrasolutions.com/contact/","label":"Support"}],"primary":{"type":"button","label":"Get Started","href":"https://portal.orchestrasolutions.com"}},"footer":{"socials":{"github":"https://github.com/orchestra-solutions/p18n","linkedin":"https://www.linkedin.com/company/orchestrasolutionsio"}},"seo":{"metatags":{"google-site-verification":"PfycdPf5O4kK93tYHlWazLbV7tOBrE2Gf-g5wGciZek"},"indexing":"navigable"},"integrations":{"ga4":{"measurementId":"G-9WC5XGJ31N"}},"contextual":{"options":["copy","view","chatgpt","claude","cursor","vscode","mcp"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/orchestra-solutions/p18n"},{"anchor":"Support Forum","icon":"comments","href":"https://github.com/orchestra-solutions/p18n/discussions"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"orchestrasolutions","hasAudioNarration":false,"actualSubdomain":"orchestrasolutions","customDomains":["developers.orchestrasolutions.com"],"gitSource":{"type":"github","owner":"orchestra-solutions","repo":"mintlify","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad6cd730ea5d4223fa9eab9","collectionId":"9a566c6b-c3cd-412d-889d-9e4ba496d400","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad6cd730ea5d4223fa9eab9"},"entitlements":{},"buildId":"6ad6cd730ea5d4223fa9eab9","clientVersion":"0.0.4074","searchFilterCounts":[{"language":"default","tag":"Payments Library and REST API Guides","count":59},{"language":"default","tag":"REST API Reference","count":38},{"language":"default","tag":"Orchestra Payments Library Guides","count":13},{"language":"default","tag":"Card Tools","count":12},{"language":"default","tag":"Orchestra REST API Guides","count":12},{"language":"default","tag":"Utilities","count":11},{"language":"default","tag":"Payment Operations","count":9},{"language":"default","tag":"Payment Contracts","count":8},{"language":"default","tag":"Merchant Account Setup","count":7},{"language":"default","tag":"Payment Methods","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/ewalletoperations/start-an-ewallet-session","slug":"/api-reference/ewalletoperations/start-an-ewallet-session","pageMetadata":{"openapi":"post /EWalletOperations","title":"Start an eWallet session","description":"Creates a session token for the Orchestra Payments Library. The session token is a JWT that authorizes the client-side library to display payment buttons and process payments. The token is valid for 30 minutes. Your server creates the session with the desired operation type, amount, and allowed payment methods, then passes the token to the client-side library.","href":"/api-reference/ewalletoperations/start-an-ewallet-session"},"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: \"Creates a session token for the Orchestra Payments Library. The session token is a JWT that authorizes the client-side library to display payment buttons and process payments. The token is valid for 30 minutes. Your server creates the session with the desired operation type, amount, and allowed payment methods, then passes the token to the client-side library.\"\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},{Card,CardGroup,Heading,Note}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Store eWallet Account`,icon:`wallet`,href:`/guides/library/store-merchant-account`,children:_jsx(_components.p,{children:`Configure credentials for Apple Pay, Google Pay, PayPal, etc.`})}),_jsx(Card,{title:`PSP Setup`,icon:`building-columns`,href:`/guides/library/psp-setup`,children:_jsx(_components.p,{children:`Configure your Payment Gateway Account for processing.`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`stored-cards`,children:`Stored Cards`}),`\n`,_jsxs(_components.p,{children:[`For returning customers, the request can include `,_jsx(_components.code,{children:`storedCards`}),`: up to 3 previously tokenized cards, each with its `,_jsx(_components.code,{children:`token`}),` and display details (`,_jsx(_components.code,{children:`brand`}),`, `,_jsx(_components.code,{children:`lastDigits`}),`, `,_jsx(_components.code,{children:`expirationMonth`}),`, `,_jsx(_components.code,{children:`expirationYear`}),`, `,_jsx(_components.code,{children:`nameOnCard`}),`). The card entry page then shows a “Pay by {brand} ****{last 4}” button per card, and the payer only enters the CVV; the charge runs against the real card resolved from the token.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Stored cards are not allowed with the `,_jsx(_components.code,{children:`TOKENIZE`}),` operation. Each token must belong to your account, and expired cards are rejected. The display details are shown to the payer exactly as provided - persist them from the `,_jsx(_components.code,{children:`tokenAndMaskedCardModel.bankCard`}),` returned at tokenization time, as they cannot be retrieved later. A stored-card payment in a `,_jsx(_components.code,{children:`CHARGE_AND_TOKENIZE`}),` or `,_jsx(_components.code,{children:`PREAUTH_AND_TOKENIZE`}),` session is not tokenized again. See `,_jsx(_components.a,{href:`/guides/library/supported-payment-methods/card-pay#stored-cards-returning-customers`,children:`CardPay: Stored Cards`}),` for the full guide.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsx(Card,{title:`Payments Library Setup Guide`,icon:`book`,href:`/guides/library/setup`,children:_jsx(_components.p,{children:`Complete guide with session configuration and payment button setup`})})]})}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":{"openapi":"post /EWalletOperations","title":"Start an eWallet session","description":"Creates a session token for the Orchestra Payments Library. The session token is a JWT that authorizes the client-side library to display payment buttons and process payments. The token is valid for 30 minutes. Your server creates the session with the desired operation type, amount, and allowed payment methods, then passes the token to the client-side library.","href":"/api-reference/ewalletoperations/start-an-ewallet-session"}}},"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},{Card,CardGroup,CodeBlock,Heading,Note,RequestExample}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);return _jsxs(_Fragment,{children:[_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`20`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`20`,children:[_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:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://api.orchestrasolutions.com/EWalletOperations'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'X-Api-Key'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` operation:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'CHARGE'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` paymentGatewayAccountId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'yourPspAccount'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` allowedeWalletAccountIds:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'card-payments'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'google-pay-prod'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` allowedBrands:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Visa'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'MasterCard'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'AMEX'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` currencyCode:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'USD'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` countryCode:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'US'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` amount:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 49.99`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mode:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'TEST'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Session token:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`22`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`22`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.orchestrasolutions.com/EWalletOperations'`}),_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:` headers`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'X-Api-Key'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'application/json'`})]}),`\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:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'operation'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'CHARGE'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'paymentGatewayAccountId'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'yourPspAccount'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'allowedeWalletAccountIds'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'card-payments'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'google-pay-prod'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'allowedBrands'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Visa'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'MasterCard'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'AMEX'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'currencyCode'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'USD'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'countryCode'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'US'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'amount'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`49.99`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'mode'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'TEST'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`data `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.json()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Session token:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, data[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'token'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Store eWallet Account`,icon:`wallet`,href:`/guides/library/store-merchant-account`,children:_jsx(_components.p,{children:`Configure credentials for Apple Pay, Google Pay, PayPal, etc.`})}),_jsx(Card,{title:`PSP Setup`,icon:`building-columns`,href:`/guides/library/psp-setup`,children:_jsx(_components.p,{children:`Configure your Payment Gateway Account for processing.`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`stored-cards`,children:`Stored Cards`}),`\n`,_jsxs(_components.p,{children:[`For returning customers, the request can include `,_jsx(_components.code,{children:`storedCards`}),`: up to 3 previously tokenized cards, each with its `,_jsx(_components.code,{children:`token`}),` and display details (`,_jsx(_components.code,{children:`brand`}),`, `,_jsx(_components.code,{children:`lastDigits`}),`, `,_jsx(_components.code,{children:`expirationMonth`}),`, `,_jsx(_components.code,{children:`expirationYear`}),`, `,_jsx(_components.code,{children:`nameOnCard`}),`). The card entry page then shows a “Pay by {brand} ****{last 4}” button per card, and the payer only enters the CVV; the charge runs against the real card resolved from the token.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Stored cards are not allowed with the `,_jsx(_components.code,{children:`TOKENIZE`}),` operation. Each token must belong to your account, and expired cards are rejected. The display details are shown to the payer exactly as provided - persist them from the `,_jsx(_components.code,{children:`tokenAndMaskedCardModel.bankCard`}),` returned at tokenization time, as they cannot be retrieved later. A stored-card payment in a `,_jsx(_components.code,{children:`CHARGE_AND_TOKENIZE`}),` or `,_jsx(_components.code,{children:`PREAUTH_AND_TOKENIZE`}),` session is not tokenized again. See `,_jsx(_components.a,{href:`/guides/library/supported-payment-methods/card-pay#stored-cards-returning-customers`,children:`CardPay: Stored Cards`}),` for the full guide.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsx(Card,{title:`Payments Library Setup Guide`,icon:`book`,href:`/guides/library/setup`,children:_jsx(_components.p,{children:`Complete guide with session configuration and payment button setup`})})]})}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":{"openapi":"post /EWalletOperations","title":"Start an eWallet session","description":"Creates a session token for the Orchestra Payments Library. The session token is a JWT that authorizes the client-side library to display payment buttons and process payments. The token is valid for 30 minutes. Your server creates the session with the desired operation type, amount, and allowed payment methods, then passes the token to the client-side library.","href":"/api-reference/ewalletoperations/start-an-ewallet-session"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"Stored Cards","slug":"stored-cards","depth":2,"children":[]},{"title":"Related","slug":"related","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Node.js","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=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"20\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'https://api.orchestrasolutions.com/EWalletOperations'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> method:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'POST'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'X-Api-Key'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'YOUR_API_KEY'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'application/json'\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:#9CDCFE\"> body:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> JSON\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">stringify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> operation:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'CHARGE'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> paymentGatewayAccountId:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'yourPspAccount'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> allowedeWalletAccountIds:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'card-payments'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'google-pay-prod'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> allowedBrands:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Visa'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'MasterCard'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'AMEX'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> currencyCode:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'USD'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> countryCode:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'US'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> amount:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 49.99\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> mode:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'TEST'\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\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> data\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Session token:'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">data\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">token\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","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=\"python\">\u003ccode language=\"python\" numberOfLines=\"22\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">response \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.post(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://api.orchestrasolutions.com/EWalletOperations'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'X-Api-Key'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'YOUR_API_KEY'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'application/json'\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:#953800;--shiki-dark:#9CDCFE\"> json\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'operation'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'CHARGE'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'paymentGatewayAccountId'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'yourPspAccount'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'allowedeWalletAccountIds'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'card-payments'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'google-pay-prod'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'allowedBrands'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Visa'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'MasterCard'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'AMEX'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'currencyCode'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'USD'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'countryCode'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'US'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'amount'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">49.99\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'mode'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'TEST'\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\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">data \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> response.json()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Session token:'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, data[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'token'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">])\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":["/_mintlify/custom/orchestrasolutions/df40a8fad539b938/demo/rest-api-demo.js"],"openApiReferenceData":{"operation":{"tags":["EWalletOperations"],"summary":"Start an eWallet session","description":"Creates a session token for the Orchestra Payments Library. The session token is a JWT that authorizes the client-side library to display payment buttons and process payments. The token is valid for 30 minutes. Your server creates the session with the desired operation type, amount, and allowed payment methods, then passes the token to the client-side library.","operationId":"StartSession","requestBody":"be931856-f7eb-4190-bff6-c3fc3084a54b","responses":{"200":"44de6c2d-d59a-4abf-a176-decf7ee467df","400":"dcb9f1b0-54bd-4768-a21d-7036ffa4cffc","401":"34767a18-6436-4933-91b1-f15598ce8cad"},"security":["dca64d33-ddcd-4a85-8467-d9399ad6e926"],"method":"post","type":"path","servers":["6125ab0c-6caf-4204-b695-022ab9637bdc"],"path":"/EWalletOperations","baseUrlOptions":["https://api.orchestrasolutions.com"],"title":"Start an eWallet session","codeSamples":[],"requiredOnlyExamples":false,"requestExamples":[{"dropdown":false,"language":"javascript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"javascript","children":{"type":"code","key":null,"ref":null,"props":{"language":"javascript","numberOfLines":"20","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" response"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" await"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" fetch"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'https://api.orchestrasolutions.com/EWalletOperations'"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", {"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" method:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'POST'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" headers:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'X-Api-Key'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":":"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'YOUR_API_KEY'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'Content-Type'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":":"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'application/json'"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" body:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" JSON"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"stringify"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"({"}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" operation:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'CHARGE'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" paymentGatewayAccountId:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'yourPspAccount'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" allowedeWalletAccountIds:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ["}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'card-payments'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'google-pay-prod'"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"],"}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" allowedBrands:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ["}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'Visa'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'MasterCard'"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'AMEX'"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"],"}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" currencyCode:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'USD'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" countryCode:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'US'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" amount:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":" 49.99"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" mode:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'TEST'"}}]}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" })"}}}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"});"}}}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" data"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" await"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" response"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"json"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"();"}}]}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"console"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"log"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'Session token:'"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"data"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"token"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n"]}}}},"filename":"Node.js"},{"dropdown":false,"language":"python","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"python","children":{"type":"code","key":null,"ref":null,"props":{"language":"python","numberOfLines":"22","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"import"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" requests"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"response "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" requests.post("}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'https://api.orchestrasolutions.com/EWalletOperations'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" headers"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'X-Api-Key'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'YOUR_API_KEY'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'Content-Type'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'application/json'"}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" json"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'operation'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'CHARGE'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'paymentGatewayAccountId'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'yourPspAccount'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'allowedeWalletAccountIds'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": ["}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'card-payments'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'google-pay-prod'"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"],"}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'allowedBrands'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": ["}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'Visa'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'MasterCard'"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'AMEX'"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"],"}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'currencyCode'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'USD'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'countryCode'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'US'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'amount'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"49.99"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'mode'"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'TEST'"}}]}},"\n",{"type":"span","key":"34","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"36","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")"}}}},"\n",{"type":"span","key":"38","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"40","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"data "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" response.json()"}}]}},"\n",{"type":"span","key":"42","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#DCDCAA"},"children":"print"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'Session token:'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", data["}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'token'"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"])"}}]}},"\n"]}}}},"filename":"Python"}],"requestExampleType":"mdx","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"description":"Start Session Request","content":{"application/json":{"schema":{"required":["allowedBrands"],"type":"object","properties":{"allowedBrands":{"type":"array","items":{"enum":["Unspecified","AMEX","BC","CartaSi","Dankort","Delta","DinersClub","Discover","Electron","Elo","enRoute","Hipercard","JCB","Maestro","MasterCard","MC_Alaska","MC_Canada","Switch","Troy","UATP","UnionPay","Visa"],"type":"string","uniqueKey":"allowedBrands.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"allowedBrands","typeLabel":"enum\u003cstring>[]"},"operation":{"enum":["CHARGE","TOKENIZE","GATEWAY_TOKENIZE","CHARGE_AND_TOKENIZE","PREAUTH_AND_TOKENIZE"],"type":"string","uniqueKey":"operation","typeLabel":"enum\u003cstring>"},"paymentGatewayAccountId":{"oneOf":[{"type":"string","uniqueKey":"paymentGatewayAccountId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"paymentGatewayAccountId.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentGatewayAccountId","typeLabel":"string | null"},"paymentGatewayParameters":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"paymentGatewayParameters.oneOf.0.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"paymentGatewayParameters.oneOf.0.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentGatewayParameters.oneOf.0.additionalProperties","typeLabel":"string | null"},"uniqueKey":"paymentGatewayParameters.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"paymentGatewayParameters.oneOf.1.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"paymentGatewayParameters.oneOf.1.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentGatewayParameters.oneOf.1.additionalProperties","typeLabel":"string | null"},"uniqueKey":"paymentGatewayParameters.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentGatewayParameters","typeLabel":"object | null"},"paymentGatewayCertName":{"oneOf":[{"type":"string","uniqueKey":"paymentGatewayCertName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"paymentGatewayCertName.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentGatewayCertName","typeLabel":"string | null"},"allowedeWalletAccountIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"allowedeWalletAccountIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"allowedeWalletAccountIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"allowedeWalletAccountIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"allowedeWalletAccountIds","typeLabel":"string[] | null"},"customerName":{"oneOf":[{"type":"string","uniqueKey":"customerName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"customerName.oneOf.1","typeLabel":"null"}],"uniqueKey":"customerName","typeLabel":"string | null"},"billingAddress":{"type":"object","properties":{"address1":{"oneOf":[{"type":"string","uniqueKey":"billingAddress.address1.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"billingAddress.address1.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingAddress.address1","typeLabel":"string | null"},"address2":{"oneOf":[{"type":"string","uniqueKey":"billingAddress.address2.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"billingAddress.address2.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingAddress.address2","typeLabel":"string | null"},"address3":{"oneOf":[{"type":"string","uniqueKey":"billingAddress.address3.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"billingAddress.address3.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingAddress.address3","typeLabel":"string | null"},"locality":{"oneOf":[{"type":"string","uniqueKey":"billingAddress.locality.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"billingAddress.locality.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingAddress.locality","typeLabel":"string | null"},"administrativeArea":{"oneOf":[{"type":"string","uniqueKey":"billingAddress.administrativeArea.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"billingAddress.administrativeArea.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingAddress.administrativeArea","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","uniqueKey":"billingAddress.country.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"billingAddress.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingAddress.country","typeLabel":"string | null"},"postalCode":{"oneOf":[{"type":"string","uniqueKey":"billingAddress.postalCode.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"billingAddress.postalCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"billingAddress.postalCode","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"billingAddress","typeLabel":"object"},"shippingAddress":{"type":"object","properties":{"address1":{"oneOf":[{"type":"string","uniqueKey":"shippingAddress.address1.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"shippingAddress.address1.oneOf.1","typeLabel":"null"}],"uniqueKey":"shippingAddress.address1","typeLabel":"string | null"},"address2":{"oneOf":[{"type":"string","uniqueKey":"shippingAddress.address2.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"shippingAddress.address2.oneOf.1","typeLabel":"null"}],"uniqueKey":"shippingAddress.address2","typeLabel":"string | null"},"address3":{"oneOf":[{"type":"string","uniqueKey":"shippingAddress.address3.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"shippingAddress.address3.oneOf.1","typeLabel":"null"}],"uniqueKey":"shippingAddress.address3","typeLabel":"string | null"},"locality":{"oneOf":[{"type":"string","uniqueKey":"shippingAddress.locality.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"shippingAddress.locality.oneOf.1","typeLabel":"null"}],"uniqueKey":"shippingAddress.locality","typeLabel":"string | null"},"administrativeArea":{"oneOf":[{"type":"string","uniqueKey":"shippingAddress.administrativeArea.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"shippingAddress.administrativeArea.oneOf.1","typeLabel":"null"}],"uniqueKey":"shippingAddress.administrativeArea","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","uniqueKey":"shippingAddress.country.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"shippingAddress.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"shippingAddress.country","typeLabel":"string | null"},"postalCode":{"oneOf":[{"type":"string","uniqueKey":"shippingAddress.postalCode.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"shippingAddress.postalCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"shippingAddress.postalCode","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"shippingAddress","typeLabel":"object"},"customerPhone":{"oneOf":[{"type":"string","uniqueKey":"customerPhone.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"customerPhone.oneOf.1","typeLabel":"null"}],"uniqueKey":"customerPhone","typeLabel":"string | null"},"customerEmail":{"oneOf":[{"type":"string","uniqueKey":"customerEmail.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"customerEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"customerEmail","typeLabel":"string | null"},"storedCards":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"token":{"oneOf":[{"type":"string","uniqueKey":"storedCards.oneOf.0.items.[INDEX].token.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"storedCards.oneOf.0.items.[INDEX].token.oneOf.1","typeLabel":"null"}],"uniqueKey":"storedCards.oneOf.0.items.[INDEX].token","typeLabel":"string | null"},"expirationYear":{"type":"integer","format":"int32","uniqueKey":"storedCards.oneOf.0.items.[INDEX].expirationYear","typeLabel":"integer\u003cint32>"},"expirationMonth":{"type":"integer","format":"int32","uniqueKey":"storedCards.oneOf.0.items.[INDEX].expirationMonth","typeLabel":"integer\u003cint32>"},"nameOnCard":{"oneOf":[{"type":"string","uniqueKey":"storedCards.oneOf.0.items.[INDEX].nameOnCard.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"storedCards.oneOf.0.items.[INDEX].nameOnCard.oneOf.1","typeLabel":"null"}],"uniqueKey":"storedCards.oneOf.0.items.[INDEX].nameOnCard","typeLabel":"string | null"},"lastDigits":{"oneOf":[{"pattern":"\\d{4}","type":"string","uniqueKey":"storedCards.oneOf.0.items.[INDEX].lastDigits.oneOf.0","typeLabel":"string"},{"pattern":"\\d{4}","type":"null","uniqueKey":"storedCards.oneOf.0.items.[INDEX].lastDigits.oneOf.1","typeLabel":"null"}],"uniqueKey":"storedCards.oneOf.0.items.[INDEX].lastDigits","typeLabel":"string | null"},"brand":{"enum":["Unspecified","AMEX","BC","CartaSi","Dankort","Delta","DinersClub","Discover","Electron","Elo","enRoute","Hipercard","JCB","Maestro","MasterCard","MC_Alaska","MC_Canada","Switch","Troy","UATP","UnionPay","Visa"],"type":"string","uniqueKey":"storedCards.oneOf.0.items.[INDEX].brand","typeLabel":"enum\u003cstring>"},"ownerId":{"oneOf":[{"type":"string","uniqueKey":"storedCards.oneOf.0.items.[INDEX].ownerId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"storedCards.oneOf.0.items.[INDEX].ownerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"storedCards.oneOf.0.items.[INDEX].ownerId","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"storedCards.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"storedCards.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"token":{"oneOf":[{"type":"string"},{"type":"null"}]},"expirationYear":{"type":"integer","format":"int32"},"expirationMonth":{"type":"integer","format":"int32"},"nameOnCard":{"oneOf":[{"type":"string"},{"type":"null"}]},"lastDigits":{"oneOf":[{"pattern":"\\d{4}","type":"string"},{"pattern":"\\d{4}","type":"null"}]},"brand":{"enum":["Unspecified","AMEX","BC","CartaSi","Dankort","Delta","DinersClub","Discover","Electron","Elo","enRoute","Hipercard","JCB","Maestro","MasterCard","MC_Alaska","MC_Canada","Switch","Troy","UATP","UnionPay","Visa"],"type":"string"},"ownerId":{"oneOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},"uniqueKey":"storedCards.oneOf.1","typeLabel":"null"}],"uniqueKey":"storedCards","typeLabel":"object[] | null"},"mode":{"enum":["TEST","LIVE"],"type":"string","uniqueKey":"mode","typeLabel":"enum\u003cstring>"},"currencyCode":{"enum":["AFN","EUR","ALL","DZD","USD","AOA","XCD","ARS","AMD","AWG","AUD","AZN","BSD","BHD","BDT","BBD","BYR","BZD","XOF","BMD","BTN","INR","BOB","BOV","BAM","BWP","NOK","BRL","BND","BGN","BIF","KHR","XAF","CAD","CVE","KYD","CLF","CLP","CNY","COP","COU","KMF","CDF","NZD","CRC","HRK","CUC","CUP","ANG","CZK","DKK","DJF","DOP","EGP","SVC","ERN","ETB","FKP","FJD","XPF","GMD","GEL","GHS","GIP","GTQ","GBP","GNF","GYD","HTG","HNL","HKD","HUF","ISK","IDR","XDR","IRR","IQD","ILS","JMD","JPY","JOD","KZT","KES","KPW","KRW","KWD","KGS","LAK","LBP","LSL","ZAR","LRD","LYD","CHF","LTL","MOP","MKD","MGA","MWK","MYR","MVR","MRO","MUR","XUA","MXN","MXV","MDL","MNT","MAD","MZN","MMK","NAD","NPR","NIO","NGN","OMR","PKR","PAB","PGK","PYG","PEN","PHP","PLN","QAR","RON","RUB","RWF","SHP","WST","STD","SAR","RSD","SCR","SLL","SGD","XSU","SBD","SOS","SSP","LKR","SDG","SRD","SZL","SEK","CHE","CHW","SYP","TWD","TJS","TZS","THB","TOP","TTD","TND","TRY","TMT","UGX","UAH","AED","USN","UYI","UYU","UZS","VUV","VEF","VND","YER","ZMW","ZWL","XBA","XBB","XBC","XBD","XTS","XXX","XAU","XPD","XPT","XAG"],"type":"string","uniqueKey":"currencyCode","typeLabel":"enum\u003cstring>"},"countryCode":{"oneOf":[{"type":"string","uniqueKey":"countryCode.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"countryCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"countryCode","typeLabel":"string | null"},"amount":{"type":"number","format":"double","uniqueKey":"amount","typeLabel":"number\u003cdouble>"},"paymentNote":{"oneOf":[{"type":"string","uniqueKey":"paymentNote.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"paymentNote.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentNote","typeLabel":"string | null"},"merchantReference":{"oneOf":[{"type":"string","uniqueKey":"merchantReference.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"merchantReference.oneOf.1","typeLabel":"null"}],"uniqueKey":"merchantReference","typeLabel":"string | null"},"threeDsBrands":{"oneOf":[{"type":"array","items":{"enum":["Unspecified","AMEX","BC","CartaSi","Dankort","Delta","DinersClub","Discover","Electron","Elo","enRoute","Hipercard","JCB","Maestro","MasterCard","MC_Alaska","MC_Canada","Switch","Troy","UATP","UnionPay","Visa"],"type":"string","uniqueKey":"threeDsBrands.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"threeDsBrands.oneOf.0","typeLabel":"enum\u003cstring>[]"},{"type":"null","items":{"enum":["Unspecified","AMEX","BC","CartaSi","Dankort","Delta","DinersClub","Discover","Electron","Elo","enRoute","Hipercard","JCB","Maestro","MasterCard","MC_Alaska","MC_Canada","Switch","Troy","UATP","UnionPay","Visa"],"type":"string"},"uniqueKey":"threeDsBrands.oneOf.1","typeLabel":"null"}],"uniqueKey":"threeDsBrands","typeLabel":"enum\u003cstring>[] | null"},"fallbackUpgs":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"paymentGatewayAccountId":{"oneOf":[{"type":"string","uniqueKey":"fallbackUpgs.oneOf.0.items.[INDEX].paymentGatewayAccountId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"fallbackUpgs.oneOf.0.items.[INDEX].paymentGatewayAccountId.oneOf.1","typeLabel":"null"}],"uniqueKey":"fallbackUpgs.oneOf.0.items.[INDEX].paymentGatewayAccountId","typeLabel":"string | null"},"paymentGatewayParameters":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"fallbackUpgs.oneOf.0.items.[INDEX].paymentGatewayParameters.oneOf.0.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"fallbackUpgs.oneOf.0.items.[INDEX].paymentGatewayParameters.oneOf.0.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"fallbackUpgs.oneOf.0.items.[INDEX].paymentGatewayParameters.oneOf.0.additionalProperties","typeLabel":"string | null"},"uniqueKey":"fallbackUpgs.oneOf.0.items.[INDEX].paymentGatewayParameters.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"fallbackUpgs.oneOf.0.items.[INDEX].paymentGatewayParameters.oneOf.1.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"fallbackUpgs.oneOf.0.items.[INDEX].paymentGatewayParameters.oneOf.1.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"fallbackUpgs.oneOf.0.items.[INDEX].paymentGatewayParameters.oneOf.1.additionalProperties","typeLabel":"string | null"},"uniqueKey":"fallbackUpgs.oneOf.0.items.[INDEX].paymentGatewayParameters.oneOf.1","typeLabel":"null"}],"uniqueKey":"fallbackUpgs.oneOf.0.items.[INDEX].paymentGatewayParameters","typeLabel":"object | null"},"paymentGatewayCertName":{"oneOf":[{"type":"string","uniqueKey":"fallbackUpgs.oneOf.0.items.[INDEX].paymentGatewayCertName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"fallbackUpgs.oneOf.0.items.[INDEX].paymentGatewayCertName.oneOf.1","typeLabel":"null"}],"uniqueKey":"fallbackUpgs.oneOf.0.items.[INDEX].paymentGatewayCertName","typeLabel":"string | null"},"pass3DSData":{"type":"boolean","uniqueKey":"fallbackUpgs.oneOf.0.items.[INDEX].pass3DSData","typeLabel":"boolean"}},"additionalProperties":false,"uniqueKey":"fallbackUpgs.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"fallbackUpgs.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"paymentGatewayAccountId":{"oneOf":[{"type":"string"},{"type":"null"}]},"paymentGatewayParameters":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{"type":"string"},{"type":"null"}]}},{"type":"null","additionalProperties":{"oneOf":[{"type":"string"},{"type":"null"}]}}]},"paymentGatewayCertName":{"oneOf":[{"type":"string"},{"type":"null"}]},"pass3DSData":{"type":"boolean"}},"additionalProperties":false},"uniqueKey":"fallbackUpgs.oneOf.1","typeLabel":"null"}],"uniqueKey":"fallbackUpgs","typeLabel":"object[] | null"},"publicKey":{"oneOf":[{"type":"string","uniqueKey":"publicKey.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"publicKey.oneOf.1","typeLabel":"null"}],"uniqueKey":"publicKey","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"allowedBrands":[],"paymentGatewayAccountId":"\u003cstring>","paymentGatewayParameters":{},"paymentGatewayCertName":"\u003cstring>","allowedeWalletAccountIds":["\u003cstring>"],"customerName":"\u003cstring>","billingAddress":{"address1":"\u003cstring>","address2":"\u003cstring>","address3":"\u003cstring>","locality":"\u003cstring>","administrativeArea":"\u003cstring>","country":"\u003cstring>","postalCode":"\u003cstring>"},"shippingAddress":{"address1":"\u003cstring>","address2":"\u003cstring>","address3":"\u003cstring>","locality":"\u003cstring>","administrativeArea":"\u003cstring>","country":"\u003cstring>","postalCode":"\u003cstring>"},"customerPhone":"\u003cstring>","customerEmail":"\u003cstring>","storedCards":[{"token":"\u003cstring>","expirationYear":123,"expirationMonth":123,"nameOnCard":"\u003cstring>","lastDigits":"\u003cstring>","ownerId":"\u003cstring>"}],"countryCode":"\u003cstring>","amount":123,"paymentNote":"\u003cstring>","merchantReference":"\u003cstring>","threeDsBrands":[],"fallbackUpgs":[{"paymentGatewayAccountId":"\u003cstring>","paymentGatewayParameters":{},"paymentGatewayCertName":"\u003cstring>","pass3DSData":true}],"publicKey":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"44de6c2d-d59a-4abf-a176-decf7ee467df":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"oneOf":[{"type":"string","uniqueKey":"token.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"token.oneOf.1","typeLabel":"null"}],"uniqueKey":"token","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"token":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"dcb9f1b0-54bd-4768-a21d-7036ffa4cffc":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"fieldName":{"oneOf":[{"type":"string","description":"Field name the error(s) are referring to","uniqueKey":"items.[INDEX].fieldName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Field name the error(s) are referring to","uniqueKey":"items.[INDEX].fieldName.oneOf.1","typeLabel":"null"}],"uniqueKey":"items.[INDEX].fieldName","typeLabel":"string | null"},"errors":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"items.[INDEX].errors.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"List of errors","uniqueKey":"items.[INDEX].errors.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"List of errors","uniqueKey":"items.[INDEX].errors.oneOf.1","typeLabel":"null"}],"uniqueKey":"items.[INDEX].errors","typeLabel":"string[] | null"}},"additionalProperties":false,"description":"Model for display validation error messages","uniqueKey":"items.[INDEX]","typeLabel":"object"},"uniqueKey":"","typeLabel":"object[]"},"examples":{"Example":{"title":"Example","value":[{"fieldName":"\u003cstring>","errors":["\u003cstring>"]}]}},"exampleType":"generated"}},"exampleType":"generated"},"34767a18-6436-4933-91b1-f15598ce8cad":{"description":"Not authenticated","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"dca64d33-ddcd-4a85-8467-d9399ad6e926":{}},"servers":{"6125ab0c-6caf-4204-b695-022ab9637bdc":{"url":"https://api.orchestrasolutions.com"}}},"originalFileLocation":"orchsol.json"},"subdomain":"orchestrasolutions","siteName":"Orchestra Solutions","title":"Start an eWallet session - Orchestra Solutions","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-18T06:38:29.927Z","originalFileLocation":"api-reference/ewalletoperations/start-an-ewallet-session.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=\"Creates a session token for the Orchestra Payments Library. The session token is a JWT that authorizes the client-side library to display payment buttons and process payments. The token is valid for 30 minutes. Your server creates the session with the desired operation type, amount, and allowed payment methods, then passes the token to the client-side library.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Orchestra Solutions\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/orchestrasolutions/3HMTXBbfxx0U032c/_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/orchestrasolutions/3HMTXBbfxx0U032c/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/orchestrasolutions/3HMTXBbfxx0U032c/_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/orchestrasolutions/3HMTXBbfxx0U032c/_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/orchestrasolutions/3HMTXBbfxx0U032c/_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/orchestrasolutions/3HMTXBbfxx0U032c/_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/orchestrasolutions/3HMTXBbfxx0U032c/_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/orchestrasolutions/3HMTXBbfxx0U032c/_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/orchestrasolutions/3HMTXBbfxx0U032c/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Start an eWallet session - Orchestra Solutions\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a session token for the Orchestra Payments Library. The session token is a JWT that authorizes the client-side library to display payment buttons and process payments. The token is valid for 30 minutes. Your server creates the session with the desired operation type, amount, and allowed payment methods, then passes the token to the client-side library.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Orchestra Solutions\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.orchestrasolutions.com/api-reference/ewalletoperations/start-an-ewallet-session\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://orchestrasolutions.mintlify.site/_mintlify/api/og/v2?division=Payments+Library\u0026amp;title=Start+an+eWallet+session\u0026amp;description=Creates+a+session+token+for+the+Orchestra+Payments+Library.+The+session+token+is+a+JWT+that+authorizes+the+client-side+library+to+display+payment+buttons+and+pr\u0026amp;theme=5a0f3da762007afb42f1886d\u0026amp;signature=09e748689f0fe1a0d3742e603009606fa6a83939e31d5337c8b67b0cfec85740\">\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=\"Start an eWallet session - Orchestra Solutions\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a session token for the Orchestra Payments Library. The session token is a JWT that authorizes the client-side library to display payment buttons and process payments. The token is valid for 30 minutes. Your server creates the session with the desired operation type, amount, and allowed payment methods, then passes the token to the client-side library.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://orchestrasolutions.mintlify.site/_mintlify/api/og/v2?division=Payments+Library\u0026amp;title=Start+an+eWallet+session\u0026amp;description=Creates+a+session+token+for+the+Orchestra+Payments+Library.+The+session+token+is+a+JWT+that+authorizes+the+client-side+library+to+display+payment+buttons+and+pr\u0026amp;theme=5a0f3da762007afb42f1886d\u0026amp;signature=09e748689f0fe1a0d3742e603009606fa6a83939e31d5337c8b67b0cfec85740\">\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/orchestrasolutions/3HMTXBbfxx0U032c/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Orchestra Solutions\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#262261\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"PfycdPf5O4kK93tYHlWazLbV7tOBrE2Gf-g5wGciZek\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.orchestrasolutions.com/api-reference/ewalletoperations/start-an-ewallet-session\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/ewalletoperations/start-an-ewallet-session.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.orchestrasolutions.com/#organization\",\"name\":\"Orchestra Solutions\",\"url\":\"https://developers.orchestrasolutions.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/orchestrasolutions/JxGWfuqQpaY3_0EL/logo/light.svg?fit=max\u0026auto=format\u0026n=JxGWfuqQpaY3_0EL\u0026q=85\u0026s=f1ba1d9bcabe35d42362da8843632659\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.orchestrasolutions.com#website\",\"name\":\"Orchestra Solutions\",\"url\":\"https://developers.orchestrasolutions.com\",\"publisher\":{\"@id\":\"https://developers.orchestrasolutions.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.orchestrasolutions.com/api-reference/ewalletoperations/start-an-ewallet-session#webpage\",\"url\":\"https://developers.orchestrasolutions.com/api-reference/ewalletoperations/start-an-ewallet-session\",\"name\":\"Start an eWallet session\",\"description\":\"Creates a session token for the Orchestra Payments Library. The session token is a JWT that authorizes the client-side library to display payment buttons and process payments. The token is valid for 30 minutes. Your server creates the session with the desired operation type, amount, and allowed payment methods, then passes the token to the client-side library.\",\"dateModified\":\"2026-09-18T06:38:29.927Z\",\"isPartOf\":{\"@id\":\"https://developers.orchestrasolutions.com#website\"},\"breadcrumb\":{\"@id\":\"https://developers.orchestrasolutions.com/api-reference/ewalletoperations/start-an-ewallet-session#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.orchestrasolutions.com/api-reference/ewalletoperations/start-an-ewallet-session#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Payments Library\",\"item\":\"https://developers.orchestrasolutions.com/api-reference/ewalletoperations/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Start an eWallet session\",\"item\":\"https://developers.orchestrasolutions.com/api-reference/ewalletoperations/start-an-ewallet-session\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.orchestrasolutions.com/api-reference/ewalletoperations/start-an-ewallet-session#apireference\",\"headline\":\"Start an eWallet session\",\"name\":\"Start an eWallet session\",\"description\":\"Creates a session token for the Orchestra Payments Library. The session token is a JWT that authorizes the client-side library to display payment buttons and process payments. The token is valid for 30 minutes. Your server creates the session with the desired operation type, amount, and allowed payment methods, then passes the token to the client-side library.\",\"url\":\"https://developers.orchestrasolutions.com/api-reference/ewalletoperations/start-an-ewallet-session\",\"mainEntityOfPage\":{\"@id\":\"https://developers.orchestrasolutions.com/api-reference/ewalletoperations/start-an-ewallet-session#webpage\"},\"dateModified\":\"2026-09-18T06:38:29.927Z\",\"publisher\":{\"@id\":\"https://developers.orchestrasolutions.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.orchestrasolutions.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Orchestra Solutions\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Orchestra Solutions","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/orchestra-solutions/p18n"},{"anchor":"Support Forum","icon":"comments","href":"https://github.com/orchestra-solutions/p18n/discussions"}]},"tabs":[{"tab":"Payments Library and REST API Guides","icon":"book","pages":[{"title":"Payments Library and REST API Guides","href":""}]},{"tab":"REST API Reference","icon":"code","groups":[{"group":"Overview","pages":[{"title":"API Reference","href":"/api-reference/overview"}]},{"group":"Payment Operations","pages":[{"title":"Payment Operations API Overview","href":"/api-reference/paymentgateway/overview"},{"openapi":"get /PaymentGateway","title":"List all payment gateways","href":"/api-reference/paymentgateway/list-all-payment-gateways"},{"openapi":"post /PaymentGateway/charge","title":"Perform a payment gateway charge operation","href":"/api-reference/paymentgateway/perform-a-payment-gateway-charge-operation"},{"openapi":"post /PaymentGateway/authorize","title":"Perform a payment gateway authorize operation","href":"/api-reference/paymentgateway/perform-a-payment-gateway-authorize-operation"},{"openapi":"put /PaymentGateway/capture","title":"Perform a payment gateway capture operation","href":"/api-reference/paymentgateway/perform-a-payment-gateway-capture-operation"},{"openapi":"post /PaymentGateway/tokenize","title":"Perform a payment gateway tokenize operation","href":"/api-reference/paymentgateway/perform-a-payment-gateway-tokenize-operation"},{"openapi":"put /PaymentGateway/refund","title":"Perform a payment gateway refund operation","href":"/api-reference/paymentgateway/perform-a-payment-gateway-refund-operation"},{"openapi":"delete /PaymentGateway/void","title":"Perform a payment gateway Void operation","href":"/api-reference/paymentgateway/perform-a-payment-gateway-void-operation"},{"openapi":"post /PaymentGateway/status","title":"Perform a payment gateway status operation","href":"/api-reference/paymentgateway/perform-a-payment-gateway-status-operation"}]},{"group":"String Tokens","pages":[{"title":"String Tokens API Overview","href":"/api-reference/stringtokens/overview"},{"openapi":"post /StringTokens","title":"Store and tokenize a string","href":"/api-reference/stringtokens/store-and-tokenize-a-string"},{"openapi":"get /StringTokens/{token}","title":"Retrieve content of StringToken","href":"/api-reference/stringtokens/retrieve-content-of-stringtoken"},{"openapi":"delete /StringTokens/{token}","title":"Delete an existing string by token","href":"/api-reference/stringtokens/delete-an-existing-string-by-token"},{"openapi":"get /StringTokens/{token}/meta","title":"Retrieve meta data of a StringToken","href":"/api-reference/stringtokens/retrieve-meta-data-of-a-stringtoken"}]},{"group":"Payment Contracts","pages":[{"title":"Payment Contracts API Overview","href":"/api-reference/paymentcontract/overview"},{"openapi":"get /PaymentContract","title":"List Payment Contracts","href":"/api-reference/paymentcontract/list-payment-contracts"},{"openapi":"post /PaymentContract","title":"Create a new Payment Contract","href":"/api-reference/paymentcontract/create-a-new-payment-contract"},{"openapi":"get /PaymentContract/{id}","title":"Retrieve Payment Contract","href":"/api-reference/paymentcontract/retrieve-payment-contract"},{"openapi":"put /PaymentContract/{id}","title":"Update a Payment Contract","href":"/api-reference/paymentcontract/update-a-payment-contract"},{"openapi":"post /PaymentContract/{id}/pause","title":"Pause a Payment Contract","href":"/api-reference/paymentcontract/pause-a-payment-contract"},{"openapi":"post /PaymentContract/{id}/resume","title":"Resume a Payment Contract","href":"/api-reference/paymentcontract/resume-a-payment-contract"},{"openapi":"post /PaymentContract/{id}/cancel","title":"Cancel a Payment Contract","href":"/api-reference/paymentcontract/cancel-a-payment-contract"}]},{"group":"Payment Gateway Accounts","pages":[{"title":"Payment Gateway Accounts API Overview","href":"/api-reference/paymentgatewayaccounts/overview"},{"openapi":"get /PaymentGatewayAccounts","title":"List Payment Gateway Accounts","href":"/api-reference/paymentgatewayaccounts/list-payment-gateway-accounts"},{"openapi":"get /PaymentGatewayAccounts/{name}","title":"Retrieve Payment Gateway Account","href":"/api-reference/paymentgatewayaccounts/retrieve-payment-gateway-account"},{"openapi":"put /PaymentGatewayAccounts/{name}","title":"Add or Replace a Payment Gateway Account","href":"/api-reference/paymentgatewayaccounts/add-or-replace-a-payment-gateway-account"},{"openapi":"delete /PaymentGatewayAccounts/{name}","title":"Delete a Payment Gateway Account","href":"/api-reference/paymentgatewayaccounts/delete-a-payment-gateway-account"}]},{"group":"Card Tools","pages":[{"title":"Card Tools API","href":"/api-reference/tools/overview"},{"openapi":"get /Tools/brand","title":"Brand Lookup","href":"/api-reference/tools/brand-lookup"},{"openapi":"get /Tools/iin","title":"Metadata Lookup","href":"/api-reference/tools/metadata-lookup"},{"openapi":"get /Tools/country","title":"Country Lookup","href":"/api-reference/tools/country-lookup"},{"openapi":"get /Tools/luhn","title":"Luhn Algorithm Validation","href":"/api-reference/tools/luhn-validation"},{"openapi":"post /Tools/validate","title":"Card Validation","href":"/api-reference/tools/card-validation"}]},{"group":"Utilities","pages":[{"openapi":"get /Utils/apiKey","title":"Validate Apikey","href":"/api-reference/utils/validate-apikey"}]},{"group":"Payments Library","pages":[{"title":"Payments Library API Overview","description":"Backend endpoints for the Orchestra Payments Library.","href":"/api-reference/ewalletoperations/overview"},{"openapi":"post /EWalletOperations","title":"Start an eWallet session","href":"/api-reference/ewalletoperations/start-an-ewallet-session"},{"openapi":"post /EWalletOperations/validateResults","title":"Validate payment results","description":"Validates and decrypts the result token returned by the Payments Library after a payment completes. Always call this endpoint from your server before fulfilling orders to confirm the payment was successful and the amount matches your records. The response contains the full transaction details including PSP references, authorization codes, and any tokenized card data.","href":"/api-reference/ewalletoperations/validate-operation-results"}]}]}]},"basePath":"","title":"Start an eWallet session - Orchestra Solutions","buildId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","deploymentId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Myd8dsju.js","utils-C2HkQgW0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-8rSppmTv.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B6MjiCFm.js","snippetPresets-DwrSAONL.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-1-a5UQKQ.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C541m7wZ.js","shallow-CWELCZ77.js","getApiPlaygroundDisplay-CTo5Zn03.js","CodeSnippet-D--dzvnl.js","CodeSnippets-DM3cXEDh.js","Page-CxAy5y67.js","getPastedJson-C-VECgcL.js","icon-BPq2-Mg3.js","MethodPill-D9J5cUHd.js","DuplicateIcon-BqHaxUnD.js","createIcon-CIbcZHp9.js","DynamicMarkdown-BKiHAm_d.js","SectionHeading-DstQXt3H.js","axios-vUo_bRtp.js","Markdown-CpxgzsKA.js","clsx-C5EfhVm0.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CJ9Oly2E.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Mk6P3qvh.js"]}