Creates a session for a digital wallet operation. The session ID returned is used by the client-side Payments Library to present the payment UI to the payer.
operation: Must be one of TOKENIZE, CHARGE, CHARGE_AND_TOKENIZE, PREAUTH_AND_TOKENIZE, GATEWAY_TOKENIZE.
mode: Must be TEST or LIVE. Sandbox users are restricted to TEST only.
PaymentGatewayAccountId: Must reference a valid stored credential ID. Required for every operation that sends the payment to a payment provider: CHARGE, CHARGE_AND_TOKENIZE, PREAUTH_AND_TOKENIZE and GATEWAY_TOKENIZE. Not required for TOKENIZE, which only stores the card, or for sessions that offer only PayPal, BankPay or UPI.
AllowedeWalletAccountIds: Array of stored digital wallet credential IDs.
CurrencyCode: Must be a valid ISO 4217 currency code.
CountryCode: Must be a valid ISO 3166-1 alpha-2 country code.
CustomerEmail: Must be a valid email format (when provided for 3DS).
CustomerPhone: Digits only (when provided for 3DS).
StoredCards: Maximum 3 cards. Not allowed with the TOKENIZE operation. Each token must belong to your account, and cards with a past expiration date are rejected. When the payer pays with a stored card in a CHARGE_AND_TOKENIZE or PREAUTH_AND_TOKENIZE session, the card is not tokenized again and the result contains no new token.
Tokenization (TOKENIZE operation) is only available for card pay, Apple Pay, and Google Pay. Other payment methods support charge only.3D Secure behavior varies by method:
Apple Pay: 3DS is always performed by Apple when the cardholder interacts with their device. The card always includes 3DS authentication results.
Google Pay: 3DS depends on cardholder interaction and device. If Google Pay performed two-factor authentication, the card includes the 3DS result.
Card pay: You choose whether to perform 3DS after the cardholder enters their card details. If enabled, PCI Booking performs 3DS and only proceeds if successful. When the payment gateway runs its own authentication (ThreeDsSupportedBy is PaymentProcessor in Get Payment Gateways, for example Paystack or RedDotPayment), the library opens the gateway’s authentication page for the payer instead. The gateway’s page opens in the same popup or iframe that showed the card form, so in iframe mode it appears inside your container element. The payer has five minutes to complete it. When the page finishes, the payment continues and your callback receives the result.
The credentialsId of your payment gateway credentials, stored using Store Gateway Credentials. Required for every operation that sends the payment to a payment provider: CHARGE, CHARGE_AND_TOKENIZE, PREAUTH_AND_TOKENIZE and GATEWAY_TOKENIZE. Not required for TOKENIZE, which only stores the card, or for sessions that offer only PayPal, BankPay or UPI.
Optional payment gateway parameters to pass to the PSP. Key-value pairs, where the key is the parameter name and the value is the parameter value. Some PSPs require specific parameters to be passed in order to process the payment.
Backup payment gateway accounts. If the payment fails at the primary gateway, PCI Booking tries each fallback in order and stops at the first success. Not used after the decline reasons CardExpired, Fraud, LostOrStolenCard or InsufficientFunds. Every account and certificate is checked when the session is created, and the session is refused if one does not exist. See Fallback Payment Gateways.
Optional list of up to 3 previously tokenized cards to offer the payer for card pay. When provided, the card entry page shows one button per card, labelled with the card brand and last 4 digits (for example Pay by VISA ****1234), alongside the option to enter another card. The payer selects a card and enters only its CVV; the charge is made against the real card resolved from the token.Each object contains:
Token (string, required): a card token belonging to your account.
Brand (string): card brand displayed to the payer (e.g. Visa, MasterCard).
LastDigits (string): last 4 digits displayed to the payer.
ExpirationMonth (number), ExpirationYear (number): the card’s expiration.
NameOnCard (string): cardholder name displayed to the payer.
OwnerId (string): cardholder owner ID, where applicable.
The display fields (Brand, LastDigits, NameOnCard, expiration) are shown to the payer exactly as you provide them and are not validated against the card behind the token. Keep them accurate: you can store these non-sensitive details in your own system, or retrieve them just before creating the session using Retrieve Token Metadata (single token) or Query Tokens (batch). The metadata response fields CardType, LastDigits, ExpirationMonth/ExpirationYear, and OwnerName map directly to the stored card fields.
The cardholder’s email address for 3D Secure authentication. Must be a valid email format. Either CustomerEmail or CustomerPhone is required when performing 3DS.
The cardholder’s phone number for 3D Secure authentication. Digits only (e.g. 00353112223344). Either CustomerEmail or CustomerPhone is required when performing 3DS.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"PCI Booking","description":"PCI Booking developer documentation","colors":{"primary":"#333333","light":"#fdb913","dark":"#333333"},"logo":{"light":"https://mintcdn.com/pcibooking/pMOWAlxYaLwyZe8N/logo/light.png?fit=max\u0026auto=format\u0026n=pMOWAlxYaLwyZe8N\u0026q=85\u0026s=05d07ed84fd562e4e5546e37f9891791","dark":"https://mintcdn.com/pcibooking/pMOWAlxYaLwyZe8N/logo/dark.png?fit=max\u0026auto=format\u0026n=pMOWAlxYaLwyZe8N\u0026q=85\u0026s=ff2f5c1a9a50078122add6cfe988e7e6"},"favicon":"https://mintcdn.com/pcibooking/pMOWAlxYaLwyZe8N/favicon.png?fit=max\u0026auto=format\u0026n=pMOWAlxYaLwyZe8N\u0026q=85\u0026s=68a2fe8e8c34b1602641223b67d76982","api":{"mdx":{"auth":{"method":"key","name":"Authorization"},"server":"https://service.pcibooking.net"}},"navbar":{"links":[{"href":"https://pcibooking.net","label":"Home"},{"href":"https://pcibooking.net/pci-booking-support/","label":"Support"},{"href":"/reference/glossary","label":"Glossary"}],"primary":{"type":"button","label":"Get a Sandbox","href":"https://pcibooking.net/sandbox/"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/pci-booking"}},"seo":{"indexing":"navigable"},"contextual":{"options":["copy","view","chatgpt","claude","cursor","vscode","mcp"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Support","icon":"envelope","href":"https://pcibooking.net/contact"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pcibooking","hasAudioNarration":false,"actualSubdomain":"pcibooking","customDomains":["developers.pcibooking.net"],"gitSource":{"type":"github","owner":"pci-booking","repo":"documentation","deployBranch":"migrate-from-readme","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad97c97a2da3c7e08a20d49","collectionId":"1b853082-5d09-4ac3-b1c0-eb679f681f76","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad97c97a2da3c7e08a20d49"},"entitlements":{},"buildId":"6ad97c97a2da3c7e08a20d49","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"Guides","count":95},{"language":"default","tag":"API Reference","count":87},{"language":"default","tag":"Capture Cards","count":35},{"language":"default","tag":"Manage Tokens","count":29},{"language":"default","tag":"Use Tokens","count":27},{"language":"default","tag":"Additional Functions","count":22},{"language":"default","tag":"Account Configuration","count":21},{"language":"default","tag":"Reference","count":12},{"language":"default","tag":"Query \u0026 Update","count":11},{"language":"default","tag":"Use Cases","count":11}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/payments-library/create-session","slug":"/api-reference/payments-library/create-session","pageMetadata":{"title":"Create Payments Library Session","description":"Create a new Payments Library session for tokenization or charge operations using digital wallets.","api":"POST https://service.pcibooking.net/api/eWalletOperation","href":"/api-reference/payments-library/create-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: \"Create a new Payments Library session for tokenization or charge operations using digital wallets.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Card,Expandable,Heading,Info,ParamField,Table}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Card,{title:`Payments Library Setup Guide`,icon:`book`,href:`/payments-library/setup`,children:_jsx(_components.p,{children:`Get started with the Payments Library`})}),`\n`,_jsx(_components.p,{children:`Creates a session for a digital wallet operation. The session ID returned is used by the client-side Payments Library to present the payment UI to the payer.`}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error Responses`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`HTTP Status`}),_jsx(_components.th,{children:`Condition`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`none`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`API key is missing or invalid. The response body is empty.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`-125`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[`A sandbox user attempted a `,_jsx(_components.code,{children:`LIVE`}),` mode operation. Sandbox users can only use `,_jsx(_components.code,{children:`TEST`}),` mode.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`-125`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`Session creation failed due to invalid parameters (e.g. missing required fields, invalid wallet account IDs).`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`parameter-constraints`,children:`Parameter Constraints`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`operation`}),`: Must be one of `,_jsx(_components.code,{children:`TOKENIZE`}),`, `,_jsx(_components.code,{children:`CHARGE`}),`, `,_jsx(_components.code,{children:`CHARGE_AND_TOKENIZE`}),`, `,_jsx(_components.code,{children:`PREAUTH_AND_TOKENIZE`}),`, `,_jsx(_components.code,{children:`GATEWAY_TOKENIZE`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`mode`}),`: Must be `,_jsx(_components.code,{children:`TEST`}),` or `,_jsx(_components.code,{children:`LIVE`}),`. Sandbox users are restricted to `,_jsx(_components.code,{children:`TEST`}),` only.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`PaymentGatewayAccountId`}),`: Must reference a valid stored credential ID. Required for every operation that sends the payment to a payment provider: `,_jsx(_components.code,{children:`CHARGE`}),`, `,_jsx(_components.code,{children:`CHARGE_AND_TOKENIZE`}),`, `,_jsx(_components.code,{children:`PREAUTH_AND_TOKENIZE`}),` and `,_jsx(_components.code,{children:`GATEWAY_TOKENIZE`}),`. Not required for `,_jsx(_components.code,{children:`TOKENIZE`}),`, which only stores the card, or for sessions that offer only PayPal, BankPay or UPI.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`AllowedeWalletAccountIds`}),`: Array of stored digital wallet credential IDs.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CurrencyCode`}),`: Must be a valid ISO 4217 currency code.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CountryCode`}),`: Must be a valid ISO 3166-1 alpha-2 country code.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CustomerEmail`}),`: Must be a valid email format (when provided for 3DS).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CustomerPhone`}),`: Digits only (when provided for 3DS).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`StoredCards`}),`: Maximum 3 cards. Not allowed with the `,_jsx(_components.code,{children:`TOKENIZE`}),` operation. Each token must belong to your account, and cards with a past expiration date are rejected. When the payer pays with a stored card in a `,_jsx(_components.code,{children:`CHARGE_AND_TOKENIZE`}),` or `,_jsx(_components.code,{children:`PREAUTH_AND_TOKENIZE`}),` session, the card is not tokenized again and the result contains no new token.`]}),`\n`]}),`\n`,_jsxs(Info,{title:`Tokenization and 3D Secure support by payment method`,children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Tokenization`}),` (`,_jsx(_components.code,{children:`TOKENIZE`}),` operation) is only available for card pay, Apple Pay, and Google Pay. Other payment methods support charge only.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`3D Secure`}),` behavior varies by method:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Apple Pay:`}),` 3DS is always performed by Apple when the cardholder interacts with their device. The card always includes 3DS authentication results.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Google Pay:`}),` 3DS depends on cardholder interaction and device. If Google Pay performed two-factor authentication, the card includes the 3DS result.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Card pay:`}),` You choose whether to perform 3DS after the cardholder enters their card details. If enabled, PCI Booking performs 3DS and only proceeds if successful. When the payment gateway runs its own authentication (`,_jsx(_components.code,{children:`ThreeDsSupportedBy`}),` is `,_jsx(_components.code,{children:`PaymentProcessor`}),` in `,_jsx(_components.a,{href:`/api-reference/process-cards/get-payment-gateways`,children:`Get Payment Gateways`}),`, for example Paystack or RedDotPayment), the library opens the gateway’s authentication page for the payer instead. The gateway’s page opens in the same popup or iframe that showed the card form, so in iframe mode it appears inside your container element. The payer has five minutes to complete it. When the page finishes, the payment continues and your callback receives the result.`]}),`\n`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsx(Heading,{level:`3`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`API key only.`}),` This endpoint does not accept access tokens or session tokens.`]}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[`Your API key prefixed with `,_jsx(_components.code,{children:`APIKEY`}),`. Example: `,_jsx(_components.code,{children:`APIKEY your-api-key`}),`. The `,_jsx(_components.code,{children:`x-pcibooking-api-key`}),` header is also accepted. See the `,_jsx(_components.a,{href:`/getting-started/authentication`,children:`Authentication guide`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`operation`,children:`Operation`}),`\n`,_jsxs(ParamField,{body:`operation`,type:`string`,required:true,id:`param-operation`,children:[_jsx(_components.p,{children:`The type of operation to perform:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`TOKENIZE`}),`: Retrieve card details from the digital wallet and store them as a token in PCI Booking’s vault. No charge is made.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`CHARGE`}),`: Retrieve card details from the digital wallet and submit a charge to the payment gateway.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`CHARGE_AND_TOKENIZE`}),`: Charge immediately, then store the payment method as a token for future use.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`PREAUTH_AND_TOKENIZE`}),`: Authenticate/pre-authorize the card, then store the payment method as a token for future use.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`GATEWAY_TOKENIZE`}),`: Store the payment method with the payment gateway itself (gateway tokenization).`]}),`\n`]})]}),`\n`,_jsx(Heading,{level:`3`,id:`payment-gateway`,children:`Payment Gateway`}),`\n`,_jsx(ParamField,{body:`PaymentGatewayAccountId`,type:`string`,id:`param-payment-gateway-account-id`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`credentialsId`}),` of your payment gateway credentials, stored using `,_jsx(_components.a,{href:`/api-reference/process-cards/store-credentials`,children:`Store Gateway Credentials`}),`. Required for every operation that sends the payment to a payment provider: `,_jsx(_components.code,{children:`CHARGE`}),`, `,_jsx(_components.code,{children:`CHARGE_AND_TOKENIZE`}),`, `,_jsx(_components.code,{children:`PREAUTH_AND_TOKENIZE`}),` and `,_jsx(_components.code,{children:`GATEWAY_TOKENIZE`}),`. Not required for `,_jsx(_components.code,{children:`TOKENIZE`}),`, which only stores the card, or for sessions that offer only PayPal, BankPay or UPI.`]})}),`\n`,_jsx(ParamField,{body:`AllowedeWalletAccountIds`,type:`array`,required:true,id:`param-allowede-wallet-account-ids`,children:_jsxs(_components.p,{children:[`An array of digital wallet credential IDs stored using the `,_jsx(_components.a,{href:`/api-reference/payments-library-accounts/store-credentials`,children:`Store Digital Wallet Credentials`}),` method.`]})}),`\n`,_jsx(ParamField,{body:`PaymentGatewayParameters`,type:`object`,id:`param-payment-gateway-parameters`,children:_jsx(_components.p,{children:`Optional payment gateway parameters to pass to the PSP. Key-value pairs, where the key is the parameter name and the value is the parameter value. Some PSPs require specific parameters to be passed in order to process the payment.`})}),`\n`,_jsxs(ParamField,{body:`FallbackUpgs`,type:`array`,id:`param-fallback-upgs`,children:[_jsxs(_components.p,{children:[`Backup payment gateway accounts. If the payment fails at the primary gateway, PCI Booking tries each fallback in order and stops at the first success. Not used after the decline reasons `,_jsx(_components.code,{children:`CardExpired`}),`, `,_jsx(_components.code,{children:`Fraud`}),`, `,_jsx(_components.code,{children:`LostOrStolenCard`}),` or `,_jsx(_components.code,{children:`InsufficientFunds`}),`. Every account and certificate is checked when the session is created, and the session is refused if one does not exist. See `,_jsx(_components.a,{href:`/use-tokens/fallback-gateways`,children:`Fallback Payment Gateways`}),`.`]}),_jsxs(Expandable,{title:`Properties`,children:[_jsx(ParamField,{body:`FallbackUpgs[].PaymentGatewayAccountId`,type:`string`,required:true,id:`param-fallback-upgs-payment-gateway-account-id`,children:_jsxs(_components.p,{children:[`The ID of the `,_jsx(_components.a,{href:`/account-setup/gateway-credentials`,children:`stored payment gateway credentials`}),` to use as a fallback.`]})}),_jsx(ParamField,{body:`FallbackUpgs[].PaymentGatewayCertName`,type:`string`,id:`param-fallback-upgs-payment-gateway-cert-name`,children:_jsx(_components.p,{children:`The client certificate for this gateway, if it needs one.`})}),_jsx(ParamField,{body:`FallbackUpgs[].PaymentGatewayParameters`,type:`object`,id:`param-fallback-upgs-payment-gateway-parameters`,children:_jsx(_components.p,{children:`Gateway parameters for this gateway, as key-value pairs.`})}),_jsx(ParamField,{body:`FallbackUpgs[].Pass3DSData`,type:`boolean`,default:`false`,id:`param-fallback-upgs-pass3-ds-data`,children:_jsx(_components.p,{children:`Whether to send the 3D Secure authentication data to this gateway.`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`transaction`,children:`Transaction`}),`\n`,_jsx(ParamField,{body:`mode`,type:`string`,required:true,id:`param-mode`,children:_jsxs(_components.p,{children:[`The environment. Possible values: `,_jsx(_components.code,{children:`TEST`}),`, `,_jsx(_components.code,{children:`LIVE`}),`.`]})}),`\n`,_jsx(ParamField,{body:`CurrencyCode`,type:`string`,required:true,id:`param-currency-code`,children:_jsxs(_components.p,{children:[`ISO 4217 currency code (e.g. `,_jsx(_components.code,{children:`USD`}),`, `,_jsx(_components.code,{children:`EUR`}),`).`]})}),`\n`,_jsx(ParamField,{body:`Amount`,type:`number`,required:true,id:`param-amount`,children:_jsx(_components.p,{children:`The transaction amount.`})}),`\n`,_jsx(ParamField,{body:`CountryCode`,type:`string`,required:true,id:`param-country-code`,children:_jsxs(_components.p,{children:[`ISO 3166-1 alpha-2 country code of the payer (e.g. `,_jsx(_components.code,{children:`US`}),`, `,_jsx(_components.code,{children:`GB`}),`).`]})}),`\n`,_jsx(ParamField,{body:`AllowedBrands`,type:`array`,required:true,id:`param-allowed-brands`,children:_jsxs(_components.p,{children:[`Array of accepted card brands (e.g. `,_jsx(_components.code,{children:`['VISA', 'MASTERCARD', 'AMEX']`}),`). If the payer’s card does not match, they are prompted to enter a different card.`]})}),`\n`,_jsx(ParamField,{body:`PaymentNote`,type:`string`,id:`param-payment-note`,children:_jsx(_components.p,{children:`A note sent to and recorded by the payment processor.`})}),`\n`,_jsx(ParamField,{body:`merchantReference`,type:`string`,id:`param-merchant-reference`,children:_jsx(_components.p,{children:`Your own reference for this transaction (e.g. booking number, order ID).`})}),`\n`,_jsx(Heading,{level:`3`,id:`stored-cards`,children:`Stored Cards`}),`\n`,_jsxs(ParamField,{body:`StoredCards`,type:`array`,id:`param-stored-cards`,children:[_jsxs(_components.p,{children:[`Optional list of up to 3 previously tokenized cards to offer the payer for card pay. When provided, the card entry page shows one button per card, labelled with the card brand and last 4 digits (for example `,_jsx(_components.code,{children:`Pay by VISA ****1234`}),`), alongside the option to enter another card. The payer selects a card and enters only its CVV; the charge is made against the real card resolved from the token.`]}),_jsx(_components.p,{children:`Each object contains:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Token`}),` (string, required): a card token belonging to your account.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Brand`}),` (string): card brand displayed to the payer (e.g. `,_jsx(_components.code,{children:`Visa`}),`, `,_jsx(_components.code,{children:`MasterCard`}),`).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`LastDigits`}),` (string): last 4 digits displayed to the payer.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`ExpirationMonth`}),` (number), `,_jsx(_components.code,{children:`ExpirationYear`}),` (number): the card’s expiration.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`NameOnCard`}),` (string): cardholder name displayed to the payer.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`OwnerId`}),` (string): cardholder owner ID, where applicable.`]}),`\n`]})]}),`\n`,_jsx(Info,{title:`Stored card display data`,children:_jsxs(_components.p,{children:[`The display fields (`,_jsx(_components.code,{children:`Brand`}),`, `,_jsx(_components.code,{children:`LastDigits`}),`, `,_jsx(_components.code,{children:`NameOnCard`}),`, expiration) are shown to the payer exactly as you provide them and are not validated against the card behind the token. Keep them accurate: you can store these non-sensitive details in your own system, or retrieve them just before creating the session using `,_jsx(_components.a,{href:`/api-reference/manage-tokens/retrieve-token-metadata`,children:`Retrieve Token Metadata`}),` (single token) or `,_jsx(_components.a,{href:`/api-reference/manage-tokens/query-tokens`,children:`Query Tokens`}),` (batch). The metadata response fields `,_jsx(_components.code,{children:`CardType`}),`, `,_jsx(_components.code,{children:`LastDigits`}),`, `,_jsx(_components.code,{children:`ExpirationMonth`}),`/`,_jsx(_components.code,{children:`ExpirationYear`}),`, and `,_jsx(_components.code,{children:`OwnerName`}),` map directly to the stored card fields.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`3d-secure`,children:`3D Secure`}),`\n`,_jsx(ParamField,{body:`CustomerEmail`,type:`string`,id:`param-customer-email`,children:_jsxs(_components.p,{children:[`The cardholder’s email address for 3D Secure authentication. Must be a valid email format. Either `,_jsx(_components.code,{children:`CustomerEmail`}),` or `,_jsx(_components.code,{children:`CustomerPhone`}),` is required when performing 3DS.`]})}),`\n`,_jsx(ParamField,{body:`CustomerPhone`,type:`string`,id:`param-customer-phone`,children:_jsxs(_components.p,{children:[`The cardholder’s phone number for 3D Secure authentication. Digits only (e.g. `,_jsx(_components.code,{children:`00353112223344`}),`). Either `,_jsx(_components.code,{children:`CustomerEmail`}),` or `,_jsx(_components.code,{children:`CustomerPhone`}),` is required when performing 3DS.`]})}),`\n`,`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`The response contains the session details needed by the client-side Payments Library.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Payments Library Session","description":"Create a new Payments Library session for tokenization or charge operations using digital wallets.","api":"POST https://service.pcibooking.net/api/eWalletOperation","href":"/api-reference/payments-library/create-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`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Card,CodeBlock,Expandable,Heading,Info,ParamField,RequestExample,ResponseExample,Table}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Card,{title:`Payments Library Setup Guide`,icon:`book`,href:`/payments-library/setup`,children:_jsx(_components.p,{children:`Get started with the Payments Library`})}),`\n`,_jsx(_components.p,{children:`Creates a session for a digital wallet operation. The session ID returned is used by the client-side Payments Library to present the payment UI to the payer.`}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error Responses`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`HTTP Status`}),_jsx(_components.th,{children:`Condition`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`none`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`API key is missing or invalid. The response body is empty.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`-125`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[`A sandbox user attempted a `,_jsx(_components.code,{children:`LIVE`}),` mode operation. Sandbox users can only use `,_jsx(_components.code,{children:`TEST`}),` mode.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`-125`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`Session creation failed due to invalid parameters (e.g. missing required fields, invalid wallet account IDs).`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`parameter-constraints`,children:`Parameter Constraints`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`operation`}),`: Must be one of `,_jsx(_components.code,{children:`TOKENIZE`}),`, `,_jsx(_components.code,{children:`CHARGE`}),`, `,_jsx(_components.code,{children:`CHARGE_AND_TOKENIZE`}),`, `,_jsx(_components.code,{children:`PREAUTH_AND_TOKENIZE`}),`, `,_jsx(_components.code,{children:`GATEWAY_TOKENIZE`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`mode`}),`: Must be `,_jsx(_components.code,{children:`TEST`}),` or `,_jsx(_components.code,{children:`LIVE`}),`. Sandbox users are restricted to `,_jsx(_components.code,{children:`TEST`}),` only.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`PaymentGatewayAccountId`}),`: Must reference a valid stored credential ID. Required for every operation that sends the payment to a payment provider: `,_jsx(_components.code,{children:`CHARGE`}),`, `,_jsx(_components.code,{children:`CHARGE_AND_TOKENIZE`}),`, `,_jsx(_components.code,{children:`PREAUTH_AND_TOKENIZE`}),` and `,_jsx(_components.code,{children:`GATEWAY_TOKENIZE`}),`. Not required for `,_jsx(_components.code,{children:`TOKENIZE`}),`, which only stores the card, or for sessions that offer only PayPal, BankPay or UPI.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`AllowedeWalletAccountIds`}),`: Array of stored digital wallet credential IDs.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CurrencyCode`}),`: Must be a valid ISO 4217 currency code.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CountryCode`}),`: Must be a valid ISO 3166-1 alpha-2 country code.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CustomerEmail`}),`: Must be a valid email format (when provided for 3DS).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CustomerPhone`}),`: Digits only (when provided for 3DS).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`StoredCards`}),`: Maximum 3 cards. Not allowed with the `,_jsx(_components.code,{children:`TOKENIZE`}),` operation. Each token must belong to your account, and cards with a past expiration date are rejected. When the payer pays with a stored card in a `,_jsx(_components.code,{children:`CHARGE_AND_TOKENIZE`}),` or `,_jsx(_components.code,{children:`PREAUTH_AND_TOKENIZE`}),` session, the card is not tokenized again and the result contains no new token.`]}),`\n`]}),`\n`,_jsxs(Info,{title:`Tokenization and 3D Secure support by payment method`,children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Tokenization`}),` (`,_jsx(_components.code,{children:`TOKENIZE`}),` operation) is only available for card pay, Apple Pay, and Google Pay. Other payment methods support charge only.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`3D Secure`}),` behavior varies by method:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Apple Pay:`}),` 3DS is always performed by Apple when the cardholder interacts with their device. The card always includes 3DS authentication results.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Google Pay:`}),` 3DS depends on cardholder interaction and device. If Google Pay performed two-factor authentication, the card includes the 3DS result.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Card pay:`}),` You choose whether to perform 3DS after the cardholder enters their card details. If enabled, PCI Booking performs 3DS and only proceeds if successful. When the payment gateway runs its own authentication (`,_jsx(_components.code,{children:`ThreeDsSupportedBy`}),` is `,_jsx(_components.code,{children:`PaymentProcessor`}),` in `,_jsx(_components.a,{href:`/api-reference/process-cards/get-payment-gateways`,children:`Get Payment Gateways`}),`, for example Paystack or RedDotPayment), the library opens the gateway’s authentication page for the payer instead. The gateway’s page opens in the same popup or iframe that showed the card form, so in iframe mode it appears inside your container element. The payer has five minutes to complete it. When the page finishes, the payment continues and your callback receives the result.`]}),`\n`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsx(Heading,{level:`3`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`API key only.`}),` This endpoint does not accept access tokens or session tokens.`]}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[`Your API key prefixed with `,_jsx(_components.code,{children:`APIKEY`}),`. Example: `,_jsx(_components.code,{children:`APIKEY your-api-key`}),`. The `,_jsx(_components.code,{children:`x-pcibooking-api-key`}),` header is also accepted. See the `,_jsx(_components.a,{href:`/getting-started/authentication`,children:`Authentication guide`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`operation`,children:`Operation`}),`\n`,_jsxs(ParamField,{body:`operation`,type:`string`,required:true,id:`param-operation`,children:[_jsx(_components.p,{children:`The type of operation to perform:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`TOKENIZE`}),`: Retrieve card details from the digital wallet and store them as a token in PCI Booking’s vault. No charge is made.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`CHARGE`}),`: Retrieve card details from the digital wallet and submit a charge to the payment gateway.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`CHARGE_AND_TOKENIZE`}),`: Charge immediately, then store the payment method as a token for future use.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`PREAUTH_AND_TOKENIZE`}),`: Authenticate/pre-authorize the card, then store the payment method as a token for future use.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`GATEWAY_TOKENIZE`}),`: Store the payment method with the payment gateway itself (gateway tokenization).`]}),`\n`]})]}),`\n`,_jsx(Heading,{level:`3`,id:`payment-gateway`,children:`Payment Gateway`}),`\n`,_jsx(ParamField,{body:`PaymentGatewayAccountId`,type:`string`,id:`param-payment-gateway-account-id`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`credentialsId`}),` of your payment gateway credentials, stored using `,_jsx(_components.a,{href:`/api-reference/process-cards/store-credentials`,children:`Store Gateway Credentials`}),`. Required for every operation that sends the payment to a payment provider: `,_jsx(_components.code,{children:`CHARGE`}),`, `,_jsx(_components.code,{children:`CHARGE_AND_TOKENIZE`}),`, `,_jsx(_components.code,{children:`PREAUTH_AND_TOKENIZE`}),` and `,_jsx(_components.code,{children:`GATEWAY_TOKENIZE`}),`. Not required for `,_jsx(_components.code,{children:`TOKENIZE`}),`, which only stores the card, or for sessions that offer only PayPal, BankPay or UPI.`]})}),`\n`,_jsx(ParamField,{body:`AllowedeWalletAccountIds`,type:`array`,required:true,id:`param-allowede-wallet-account-ids`,children:_jsxs(_components.p,{children:[`An array of digital wallet credential IDs stored using the `,_jsx(_components.a,{href:`/api-reference/payments-library-accounts/store-credentials`,children:`Store Digital Wallet Credentials`}),` method.`]})}),`\n`,_jsx(ParamField,{body:`PaymentGatewayParameters`,type:`object`,id:`param-payment-gateway-parameters`,children:_jsx(_components.p,{children:`Optional payment gateway parameters to pass to the PSP. Key-value pairs, where the key is the parameter name and the value is the parameter value. Some PSPs require specific parameters to be passed in order to process the payment.`})}),`\n`,_jsxs(ParamField,{body:`FallbackUpgs`,type:`array`,id:`param-fallback-upgs`,children:[_jsxs(_components.p,{children:[`Backup payment gateway accounts. If the payment fails at the primary gateway, PCI Booking tries each fallback in order and stops at the first success. Not used after the decline reasons `,_jsx(_components.code,{children:`CardExpired`}),`, `,_jsx(_components.code,{children:`Fraud`}),`, `,_jsx(_components.code,{children:`LostOrStolenCard`}),` or `,_jsx(_components.code,{children:`InsufficientFunds`}),`. Every account and certificate is checked when the session is created, and the session is refused if one does not exist. See `,_jsx(_components.a,{href:`/use-tokens/fallback-gateways`,children:`Fallback Payment Gateways`}),`.`]}),_jsxs(Expandable,{title:`Properties`,children:[_jsx(ParamField,{body:`FallbackUpgs[].PaymentGatewayAccountId`,type:`string`,required:true,id:`param-fallback-upgs-payment-gateway-account-id`,children:_jsxs(_components.p,{children:[`The ID of the `,_jsx(_components.a,{href:`/account-setup/gateway-credentials`,children:`stored payment gateway credentials`}),` to use as a fallback.`]})}),_jsx(ParamField,{body:`FallbackUpgs[].PaymentGatewayCertName`,type:`string`,id:`param-fallback-upgs-payment-gateway-cert-name`,children:_jsx(_components.p,{children:`The client certificate for this gateway, if it needs one.`})}),_jsx(ParamField,{body:`FallbackUpgs[].PaymentGatewayParameters`,type:`object`,id:`param-fallback-upgs-payment-gateway-parameters`,children:_jsx(_components.p,{children:`Gateway parameters for this gateway, as key-value pairs.`})}),_jsx(ParamField,{body:`FallbackUpgs[].Pass3DSData`,type:`boolean`,default:`false`,id:`param-fallback-upgs-pass3-ds-data`,children:_jsx(_components.p,{children:`Whether to send the 3D Secure authentication data to this gateway.`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`transaction`,children:`Transaction`}),`\n`,_jsx(ParamField,{body:`mode`,type:`string`,required:true,id:`param-mode`,children:_jsxs(_components.p,{children:[`The environment. Possible values: `,_jsx(_components.code,{children:`TEST`}),`, `,_jsx(_components.code,{children:`LIVE`}),`.`]})}),`\n`,_jsx(ParamField,{body:`CurrencyCode`,type:`string`,required:true,id:`param-currency-code`,children:_jsxs(_components.p,{children:[`ISO 4217 currency code (e.g. `,_jsx(_components.code,{children:`USD`}),`, `,_jsx(_components.code,{children:`EUR`}),`).`]})}),`\n`,_jsx(ParamField,{body:`Amount`,type:`number`,required:true,id:`param-amount`,children:_jsx(_components.p,{children:`The transaction amount.`})}),`\n`,_jsx(ParamField,{body:`CountryCode`,type:`string`,required:true,id:`param-country-code`,children:_jsxs(_components.p,{children:[`ISO 3166-1 alpha-2 country code of the payer (e.g. `,_jsx(_components.code,{children:`US`}),`, `,_jsx(_components.code,{children:`GB`}),`).`]})}),`\n`,_jsx(ParamField,{body:`AllowedBrands`,type:`array`,required:true,id:`param-allowed-brands`,children:_jsxs(_components.p,{children:[`Array of accepted card brands (e.g. `,_jsx(_components.code,{children:`['VISA', 'MASTERCARD', 'AMEX']`}),`). If the payer’s card does not match, they are prompted to enter a different card.`]})}),`\n`,_jsx(ParamField,{body:`PaymentNote`,type:`string`,id:`param-payment-note`,children:_jsx(_components.p,{children:`A note sent to and recorded by the payment processor.`})}),`\n`,_jsx(ParamField,{body:`merchantReference`,type:`string`,id:`param-merchant-reference`,children:_jsx(_components.p,{children:`Your own reference for this transaction (e.g. booking number, order ID).`})}),`\n`,_jsx(Heading,{level:`3`,id:`stored-cards`,children:`Stored Cards`}),`\n`,_jsxs(ParamField,{body:`StoredCards`,type:`array`,id:`param-stored-cards`,children:[_jsxs(_components.p,{children:[`Optional list of up to 3 previously tokenized cards to offer the payer for card pay. When provided, the card entry page shows one button per card, labelled with the card brand and last 4 digits (for example `,_jsx(_components.code,{children:`Pay by VISA ****1234`}),`), alongside the option to enter another card. The payer selects a card and enters only its CVV; the charge is made against the real card resolved from the token.`]}),_jsx(_components.p,{children:`Each object contains:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Token`}),` (string, required): a card token belonging to your account.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Brand`}),` (string): card brand displayed to the payer (e.g. `,_jsx(_components.code,{children:`Visa`}),`, `,_jsx(_components.code,{children:`MasterCard`}),`).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`LastDigits`}),` (string): last 4 digits displayed to the payer.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`ExpirationMonth`}),` (number), `,_jsx(_components.code,{children:`ExpirationYear`}),` (number): the card’s expiration.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`NameOnCard`}),` (string): cardholder name displayed to the payer.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`OwnerId`}),` (string): cardholder owner ID, where applicable.`]}),`\n`]})]}),`\n`,_jsx(Info,{title:`Stored card display data`,children:_jsxs(_components.p,{children:[`The display fields (`,_jsx(_components.code,{children:`Brand`}),`, `,_jsx(_components.code,{children:`LastDigits`}),`, `,_jsx(_components.code,{children:`NameOnCard`}),`, expiration) are shown to the payer exactly as you provide them and are not validated against the card behind the token. Keep them accurate: you can store these non-sensitive details in your own system, or retrieve them just before creating the session using `,_jsx(_components.a,{href:`/api-reference/manage-tokens/retrieve-token-metadata`,children:`Retrieve Token Metadata`}),` (single token) or `,_jsx(_components.a,{href:`/api-reference/manage-tokens/query-tokens`,children:`Query Tokens`}),` (batch). The metadata response fields `,_jsx(_components.code,{children:`CardType`}),`, `,_jsx(_components.code,{children:`LastDigits`}),`, `,_jsx(_components.code,{children:`ExpirationMonth`}),`/`,_jsx(_components.code,{children:`ExpirationYear`}),`, and `,_jsx(_components.code,{children:`OwnerName`}),` map directly to the stored card fields.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`3d-secure`,children:`3D Secure`}),`\n`,_jsx(ParamField,{body:`CustomerEmail`,type:`string`,id:`param-customer-email`,children:_jsxs(_components.p,{children:[`The cardholder’s email address for 3D Secure authentication. Must be a valid email format. Either `,_jsx(_components.code,{children:`CustomerEmail`}),` or `,_jsx(_components.code,{children:`CustomerPhone`}),` is required when performing 3DS.`]})}),`\n`,_jsx(ParamField,{body:`CustomerPhone`,type:`string`,id:`param-customer-phone`,children:_jsxs(_components.p,{children:[`The cardholder’s phone number for 3D Secure authentication. Digits only (e.g. `,_jsx(_components.code,{children:`00353112223344`}),`). Either `,_jsx(_components.code,{children:`CustomerEmail`}),` or `,_jsx(_components.code,{children:`CustomerPhone`}),` is required when performing 3DS.`]})}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`31`,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:`31`,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://service.pcibooking.net/api/eWalletOperation'`}),_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:` 'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'APIKEY 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:` mode:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'LIVE'`}),_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:` 'my-gateway-credentials'`}),_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:` PaymentGatewayParameters:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'SomePspParameterName'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'SomeValue'`}),_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:`'my-applepay'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'my-googlepay'`}),_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:` Amount:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 99.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:` 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:` 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:` CustomerEmail:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'customer@example.com'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` merchantReference:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'ORDER-12345'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Optional: offer previously tokenized cards for CVV-only payment (max 3)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` StoredCards:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Token:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'a21af1bb711d4daf89ee095d22a51f47'`}),_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:` Brand:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'MasterCard'`}),_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:` LastDigits:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '1234'`}),_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:` ExpirationMonth:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 12`}),_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:` ExpirationYear:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2030`}),_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:` NameOnCard:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'John Doe'`})]}),`\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`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Pass token to your frontend`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`33`,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:`33`,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://service.pcibooking.net/api/eWalletOperation'`}),_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:` 'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'APIKEY 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:` 'mode'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'LIVE'`}),_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:`'my-gateway-credentials'`}),_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:` 'PaymentGatewayParameters'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'SomePspParameterName'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'SomeValue'`}),_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:`'my-applepay'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'my-googlepay'`}),_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:` 'Amount'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`99.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:` '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:` '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:` 'CustomerEmail'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'customer@example.com'`}),_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:` 'merchantReference'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'ORDER-12345'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Optional: offer previously tokenized cards for CVV-only payment (max 3)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'StoredCards'`}),_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:` 'Token'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'a21af1bb711d4daf89ee095d22a51f47'`}),_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:` 'Brand'`}),_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:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'LastDigits'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'1234'`}),_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:` 'ExpirationMonth'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'ExpirationYear'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2030`}),_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:` 'NameOnCard'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'John Doe'`})]}),`\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`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`token `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.json()[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'token'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Pass token to your frontend`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`The response contains the session details needed by the client-side Payments Library.`}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200`,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"abc123def456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Created\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400`,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`-125`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bad input data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"moreInfo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"errorList\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Payments Library Session","description":"Create a new Payments Library session for tokenization or charge operations using digital wallets.","api":"POST https://service.pcibooking.net/api/eWalletOperation","href":"/api-reference/payments-library/create-session"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Error Responses","slug":"error-responses","depth":2,"children":[]},{"title":"Parameter Constraints","slug":"parameter-constraints","depth":2,"children":[]},{"title":"Parameters","slug":"parameters","depth":2,"children":[{"title":"Authentication","slug":"authentication","depth":3,"children":[]},{"title":"Operation","slug":"operation","depth":3,"children":[]},{"title":"Payment Gateway","slug":"payment-gateway","depth":3,"children":[]},{"title":"Transaction","slug":"transaction","depth":3,"children":[]},{"title":"Stored Cards","slug":"stored-cards","depth":3,"children":[]},{"title":"3D Secure","slug":"3d-secure","depth":3,"children":[]}]},{"title":"Response","slug":"response","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=\"31\">\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://service.pcibooking.net/api/eWalletOperation'\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\"> 'Authorization'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'APIKEY 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\"> mode:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'LIVE'\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\"> 'my-gateway-credentials'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> PaymentGatewayParameters:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'SomePspParameterName'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'SomeValue'\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\">'my-applepay'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'my-googlepay'\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\"> Amount:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 99.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\"> 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\"> 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\"> CustomerEmail:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'customer@example.com'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> merchantReference:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'ORDER-12345'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"> // Optional: offer previously tokenized cards for CVV-only payment (max 3)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> StoredCards:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> Token:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'a21af1bb711d4daf89ee095d22a51f47'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> Brand:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'MasterCard'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> LastDigits:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '1234'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> ExpirationMonth:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 12\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> ExpirationYear:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 2030\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> NameOnCard:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'John Doe'\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\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\">token\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> } \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:#6E7781;--shiki-dark:#6A9955\">// Pass token to your frontend\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=\"33\">\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://service.pcibooking.net/api/eWalletOperation'\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\"> 'Authorization'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'APIKEY 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\"> 'mode'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'LIVE'\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\">'my-gateway-credentials'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'PaymentGatewayParameters'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'SomePspParameterName'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'SomeValue'\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\">'my-applepay'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'my-googlepay'\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\"> 'Amount'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">99.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\"> '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\"> '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\"> 'CustomerEmail'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'customer@example.com'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'merchantReference'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'ORDER-12345'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"> # Optional: offer previously tokenized cards for CVV-only payment (max 3)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'StoredCards'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Token'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'a21af1bb711d4daf89ee095d22a51f47'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Brand'\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>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'LastDigits'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'1234'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'ExpirationMonth'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">12\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'ExpirationYear'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">2030\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'NameOnCard'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'John Doe'\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\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">token \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> response.json()[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'token'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"># Pass token to your frontend\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"4\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"token\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"abc123def456\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Created\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">-125\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bad input data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"moreInfo\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"errorList\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Create Payments Library Session","path":"/api/eWalletOperation","servers":[{"url":"https://service.pcibooking.net"}],"method":"post","request":{"security":[{"title":"API Key Auth","parameters":{"header":{"Authorization":{"type":"apiKey"}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{"Authorization":{"schema":[{"type":"string","description":"Your API key prefixed with `APIKEY` . Example: `APIKEY your-api-key` . The `x-pcibooking-api-key` header is also accepted. See the Authentication guide .","required":true}]}},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"operation":[{"type":"string","description":"The type of operation to perform: `TOKENIZE` : Retrieve card details from the digital wallet and store them as a token in PCI Booking’s vault. No charge is made. `CHARGE` : Retrieve card details from the digital wallet and submit a charge to the payment gateway. `CHARGE_AND_TOKENIZE` : Charge immediately, then store the payment method as a token for future use. `PREAUTH_AND_TOKENIZE` : Authenticate/pre-authorize the card, then store the payment method as a token for future use. `GATEWAY_TOKENIZE` : Store the payment method with the payment gateway itself (gateway tokenization).","required":true}],"PaymentGatewayAccountId":[{"type":"string","description":"The `credentialsId` of your payment gateway credentials, stored using Store Gateway Credentials . Required for every operation that sends the payment to a payment provider: `CHARGE` , `CHARGE_AND_TOKENIZE` , `PREAUTH_AND_TOKENIZE` and `GATEWAY_TOKENIZE` . Not required for `TOKENIZE` , which only stores the card, or for sessions that offer only PayPal, BankPay or UPI."}],"AllowedeWalletAccountIds":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"An array of digital wallet credential IDs stored using the Store Digital Wallet Credentials method.","required":true}],"PaymentGatewayParameters":[{"type":"object","properties":{},"description":"Optional payment gateway parameters to pass to the PSP. Key-value pairs, where the key is the parameter name and the value is the parameter value. Some PSPs require specific parameters to be passed in order to process the payment."}],"FallbackUpgs":[{"type":"array","items":[{"type":"object","properties":{"FallbackUpgs[].PaymentGatewayAccountId":[{"type":"string","description":"The ID of the stored payment gateway credentials to use as a fallback.","required":true}],"FallbackUpgs[].PaymentGatewayCertName":[{"type":"string","description":"The client certificate for this gateway, if it needs one."}],"FallbackUpgs[].PaymentGatewayParameters":[{"type":"object","properties":{},"description":"Gateway parameters for this gateway, as key-value pairs."}],"FallbackUpgs[].Pass3DSData":[{"type":"boolean","description":"Whether to send the 3D Secure authentication data to this gateway."}]}}],"description":"Backup payment gateway accounts. If the payment fails at the primary gateway, PCI Booking tries each fallback in order and stops at the first success. Not used after the decline reasons `CardExpired` , `Fraud` , `LostOrStolenCard` or `InsufficientFunds` . Every account and certificate is checked when the session is created, and the session is refused if one does not exist. See Fallback Payment Gateways ."}],"mode":[{"type":"string","description":"The environment. Possible values: `TEST` , `LIVE` .","required":true}],"CurrencyCode":[{"type":"string","description":"ISO 4217 currency code (e.g. `USD` , `EUR` ).","required":true}],"Amount":[{"type":"number","description":"The transaction amount.","required":true}],"CountryCode":[{"type":"string","description":"ISO 3166-1 alpha-2 country code of the payer (e.g. `US` , `GB` ).","required":true}],"AllowedBrands":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Array of accepted card brands (e.g. `['VISA', 'MASTERCARD', 'AMEX']` ). If the payer’s card does not match, they are prompted to enter a different card.","required":true}],"PaymentNote":[{"type":"string","description":"A note sent to and recorded by the payment processor."}],"merchantReference":[{"type":"string","description":"Your own reference for this transaction (e.g. booking number, order ID)."}],"StoredCards":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Optional list of up to 3 previously tokenized cards to offer the payer for card pay. When provided, the card entry page shows one button per card, labelled with the card brand and last 4 digits (for example `Pay by VISA ****1234` ), alongside the option to enter another card. The payer selects a card and enters only its CVV; the charge is made against the real card resolved from the token. Each object contains: `Token` (string, required): a card token belonging to your account. `Brand` (string): card brand displayed to the payer (e.g. `Visa` , `MasterCard` ). `LastDigits` (string): last 4 digits displayed to the payer. `ExpirationMonth` (number), `ExpirationYear` (number): the card’s expiration. `NameOnCard` (string): cardholder name displayed to the payer. `OwnerId` (string): cardholder owner ID, where applicable."}],"CustomerEmail":[{"type":"string","description":"The cardholder’s email address for 3D Secure authentication. Must be a valid email format. Either `CustomerEmail` or `CustomerPhone` is required when performing 3DS."}],"CustomerPhone":[{"type":"string","description":"The cardholder’s phone number for 3D Secure authentication. Digits only (e.g. `00353112223344` ). Either `CustomerEmail` or `CustomerPhone` is required when performing 3DS."}]}}],"examples":{"example":{"value":{"operation":"\u003cstring>","PaymentGatewayAccountId":"\u003cstring>","AllowedeWalletAccountIds":[{}],"PaymentGatewayParameters":{},"FallbackUpgs":[{"FallbackUpgs[].PaymentGatewayAccountId":"\u003cstring>","FallbackUpgs[].PaymentGatewayCertName":"\u003cstring>","FallbackUpgs[].PaymentGatewayParameters":{},"FallbackUpgs[].Pass3DSData":true}],"mode":"\u003cstring>","CurrencyCode":"\u003cstring>","Amount":123,"CountryCode":"\u003cstring>","AllowedBrands":[{}],"PaymentNote":"\u003cstring>","merchantReference":"\u003cstring>","StoredCards":[{}],"CustomerEmail":"\u003cstring>","CustomerPhone":"\u003cstring>"}}}}}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"pcibooking","siteName":"PCI Booking","title":"Create Payments Library Session - PCI Booking","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-22T01:47:06.764Z","originalFileLocation":"api-reference/payments-library/create-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=\"Create a new Payments Library session for tokenization or charge operations using digital wallets.\">\u003cmeta data-mint-head name=\"application-name\" content=\"PCI Booking\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pcibooking/Vkc1dlug5ZWqlaAq/_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/pcibooking/Vkc1dlug5ZWqlaAq/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pcibooking/Vkc1dlug5ZWqlaAq/_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/pcibooking/Vkc1dlug5ZWqlaAq/_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/pcibooking/Vkc1dlug5ZWqlaAq/_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/pcibooking/Vkc1dlug5ZWqlaAq/_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/pcibooking/Vkc1dlug5ZWqlaAq/_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/pcibooking/Vkc1dlug5ZWqlaAq/_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/pcibooking/Vkc1dlug5ZWqlaAq/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Payments Library Session - PCI Booking\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new Payments Library session for tokenization or charge operations using digital wallets.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"PCI Booking\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.pcibooking.net/api-reference/payments-library/create-session\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pcibooking.mintlify.app/_mintlify/api/og/v2?division=Library+Setup+%26+Use\u0026amp;title=Create+Payments+Library+Session\u0026amp;description=Create+a+new+Payments+Library+session+for+tokenization+or+charge+operations+using+digital+wallets.\u0026amp;theme=e6d7a314e297f3571cc8537d\u0026amp;signature=85fea52be468ab6ade8baab0ca867818f341d0fa8ee647acce3f3f18f6e69d93\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Payments Library Session - PCI Booking\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new Payments Library session for tokenization or charge operations using digital wallets.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pcibooking.mintlify.app/_mintlify/api/og/v2?division=Library+Setup+%26+Use\u0026amp;title=Create+Payments+Library+Session\u0026amp;description=Create+a+new+Payments+Library+session+for+tokenization+or+charge+operations+using+digital+wallets.\u0026amp;theme=e6d7a314e297f3571cc8537d\u0026amp;signature=85fea52be468ab6ade8baab0ca867818f341d0fa8ee647acce3f3f18f6e69d93\">\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/pcibooking/Vkc1dlug5ZWqlaAq/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"PCI Booking\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#333333\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.pcibooking.net/api-reference/payments-library/create-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/payments-library/create-session.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.pcibooking.net/#organization\",\"name\":\"PCI Booking\",\"url\":\"https://developers.pcibooking.net\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pcibooking/pMOWAlxYaLwyZe8N/logo/light.png?fit=max\u0026auto=format\u0026n=pMOWAlxYaLwyZe8N\u0026q=85\u0026s=05d07ed84fd562e4e5546e37f9891791\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.pcibooking.net#website\",\"name\":\"PCI Booking\",\"url\":\"https://developers.pcibooking.net\",\"publisher\":{\"@id\":\"https://developers.pcibooking.net/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.pcibooking.net/api-reference/payments-library/create-session#webpage\",\"url\":\"https://developers.pcibooking.net/api-reference/payments-library/create-session\",\"name\":\"Create Payments Library Session\",\"description\":\"Create a new Payments Library session for tokenization or charge operations using digital wallets.\",\"dateModified\":\"2026-10-22T01:47:06.764Z\",\"isPartOf\":{\"@id\":\"https://developers.pcibooking.net#website\"},\"breadcrumb\":{\"@id\":\"https://developers.pcibooking.net/api-reference/payments-library/create-session#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.pcibooking.net/api-reference/payments-library/create-session#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"PCI Booking\",\"item\":\"https://developers.pcibooking.net\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Payments Library Session\",\"item\":\"https://developers.pcibooking.net/api-reference/payments-library/create-session\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.pcibooking.net/api-reference/payments-library/create-session#apireference\",\"headline\":\"Create Payments Library Session\",\"name\":\"Create Payments Library Session\",\"description\":\"Create a new Payments Library session for tokenization or charge operations using digital wallets.\",\"url\":\"https://developers.pcibooking.net/api-reference/payments-library/create-session\",\"mainEntityOfPage\":{\"@id\":\"https://developers.pcibooking.net/api-reference/payments-library/create-session#webpage\"},\"dateModified\":\"2026-10-22T01:47:06.764Z\",\"publisher\":{\"@id\":\"https://developers.pcibooking.net/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.pcibooking.net#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"PCI Booking\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"PCI Booking","nav":{"global":{"anchors":[{"anchor":"Support","icon":"envelope","href":"https://pcibooking.net/contact"}]},"tabs":[{"tab":"Guides","icon":"book","pages":[{"title":"Guides","href":"/start-here/introduction"}]},{"tab":"Use Cases","icon":"route","pages":[{"title":"Use Cases","href":"/use-cases/how-do-i"}]},{"tab":"API Reference","icon":"code","groups":[{"group":"Start Here","pages":[{"title":"API Reference Overview","sidebarTitle":"Overview","href":"/api-reference/overview"}]},{"group":"Authentication \u0026 General","pages":[{"group":"Authentication","pages":[{"title":"Authenticate API Key","api":"POST https://service.pcibooking.net/api/accounts/authenticate/","href":"/api-reference/general/authenticate"},{"title":"Start a Temporary Session","api":"POST https://service.pcibooking.net/api/payments/paycard/tempsession","href":"/api-reference/general/start-temporary-session"}]},{"title":"Get Supported Credit Cards","api":"GET https://service.pcibooking.net/api/payments/paycard/supportedCards","href":"/api-reference/general/get-supported-cards"},{"group":"CSS Stylesheets","pages":[{"title":"Add or update CSS","api":"PUT https://service.pcibooking.net/api/resources/stylesheet/{ResourceName}","href":"/api-reference/general/add-update-css"},{"title":"List All CSS Records","api":"GET https://service.pcibooking.net/api/resources/stylesheet","href":"/api-reference/general/list-css-records"},{"title":"Retrieve CSS Record","api":"GET https://service.pcibooking.net/api/resources/stylesheet/{ResourceName}","href":"/api-reference/general/retrieve-css-record"},{"title":"Delete CSS Record","api":"DELETE https://service.pcibooking.net/api/resources/stylesheet/{ResourceName}","href":"/api-reference/general/delete-css-record"}]}]},{"group":"Capture Cards","pages":[{"title":"Capture Cards API Reference","href":"/api-reference/tokenize-cards/overview"},{"title":"Request a Card Entry Form","api":"GET https://service.pcibooking.net/api/payments/capturecard","href":"/api-reference/tokenize-cards/request-card-entry-form"},{"group":"Session-Based Card Entry Form","pages":[{"title":"Create Card Entry Form Session","api":"POST https://service.pcibooking.net/api/capturecard","href":"/api-reference/tokenize-cards/create-card-entry-form-session"},{"title":"Retrieve Card Entry Session Details","api":"GET https://service.pcibooking.net/api/capturecard/{RequestID}","href":"/api-reference/tokenize-cards/retrieve-card-entry-session"},{"title":"Delete Card Entry Form","api":"DELETE https://service.pcibooking.net/api/capturecard/{RequestID}","href":"/api-reference/tokenize-cards/delete-card-entry-form"},{"title":"Card Entry Form Webhook","sidebarTitle":"Webhook","href":"/api-reference/tokenize-cards/card-entry-form-callback"}]},{"group":"Card By Link","pages":[{"title":"Send Card Capture Link","sidebarTitle":"Send Card Capture Link","api":"POST https://service.pcibooking.net/api/cardrequest","href":"/api-reference/tokenize-cards/cotp-send-card-form"},{"title":"Send CVV Capture Link","sidebarTitle":"Send CVV Capture Link","api":"POST https://service.pcibooking.net/api/cardrequest/duplicate","href":"/api-reference/tokenize-cards/cotp-send-cvv-form"},{"title":"Retrieve Card By Link Request","sidebarTitle":"Retrieve Request","api":"GET https://service.pcibooking.net/api/cardrequest/{requestID}","href":"/api-reference/tokenize-cards/cotp-retrieve-request"},{"title":"Card By Link Webhook","sidebarTitle":"Webhook","href":"/api-reference/tokenize-cards/cotp-callback"},{"title":"Delete Card By Link Request","sidebarTitle":"Delete Request","api":"DELETE https://service.pcibooking.net/api/cardrequest/{requestID}","href":"/api-reference/tokenize-cards/cotp-delete-request"}]},{"group":"Server-Side Tokenization","pages":[{"title":"Tokenization in Response","api":"POST https://service.pcibooking.net/api/payments/paycard/capture","href":"/api-reference/tokenize-cards/tokenization-in-response"},{"title":"Tokenize on Response Using Preset Profiles","api":"POST https://service.pcibooking.net/api/booker/{ProfileName}/reservation","href":"/api-reference/tokenize-cards/tokenize-on-response-using-preset-profiles"},{"title":"Get Tokenization Profiles","api":"GET https://service.pcibooking.net/api/booker","href":"/api-reference/tokenize-cards/get-tokenization-profiles"},{"title":"Tokenize from sFTP","api":"GET https://service.pcibooking.net/api/sftp/{serverAddress}/{folderPath}/{fileName}","href":"/api-reference/tokenize-cards/tokenize-from-sftp"}]},{"title":"Store Paycard (Card Migration)","api":"POST https://service.pcibooking.net/api/payments/paycard","href":"/api-reference/tokenize-cards/store-paycard"},{"title":"Request a Card Security Code Entry Form","sidebarTitle":"CVV Entry Form","api":"GET https://service.pcibooking.net/api/payments/cvvcapturecard","href":"/api-reference/manage-tokens/request-cvv-entry-form"},{"group":"Virtual Card Issuance","pages":[{"title":"List Virtual Card Providers","api":"GET https://service.pcibooking.net/api/VirtualCard","href":"/api-reference/tokenize-cards/list-virtual-card-providers"},{"title":"Get Virtual Card Provider","api":"GET https://service.pcibooking.net/api/VirtualCard/{name}","href":"/api-reference/tokenize-cards/get-virtual-card-provider"},{"title":"Retrieve VCP Credential Structure","sidebarTitle":"Retrieve Credential Structure","api":"GET https://service.pcibooking.net/api/credentials/virtualCardProvider/{name}","href":"/api-reference/tokenize-cards/retrieve-vcp-credential-structure"},{"title":"Issue Virtual Card","api":"POST https://service.pcibooking.net/api/VirtualCard","href":"/api-reference/tokenize-cards/issue-virtual-card"}]}]},{"group":"Manage Tokens","pages":[{"title":"Manage Tokens API Reference","href":"/api-reference/manage-tokens/overview"},{"group":"Query \u0026 Update","pages":[{"title":"Query Tokens","api":"GET https://service.pcibooking.net/api/payments/paycard/meta","href":"/api-reference/manage-tokens/query-tokens"},{"title":"Retrieve Token Metadata","sidebarTitle":"Retrieve Metadata","api":"GET https://service.pcibooking.net/api/payments/paycard/{cardtoken}/meta","href":"/api-reference/manage-tokens/retrieve-token-metadata"},{"title":"Update Card Expiration Date","sidebarTitle":"Update Expiration","api":"PUT https://service.pcibooking.net/api/payments/paycard/{cardToken}/UpdateExpiration","href":"/api-reference/manage-tokens/update-expiration"},{"title":"Update Creator Reference","api":"PUT https://service.pcibooking.net/api/payments/paycard/{token}/creatorReference/{creatorReference}","href":"/api-reference/manage-tokens/update-creator-reference"},{"title":"Delete Creator Reference","api":"DELETE https://service.pcibooking.net/api/payments/paycard/{token}/creatorReference","href":"/api-reference/manage-tokens/delete-creator-reference"},{"title":"Transfer Ownership","api":"PUT https://service.pcibooking.net/api/payments/paycard/{cardToken}/externalUser/{AltCustomer}","href":"/api-reference/manage-tokens/transfer-ownership"},{"title":"Duplicate Token","api":"POST https://service.pcibooking.net/api/payments/paycard/duplicate","href":"/api-reference/manage-tokens/duplicate-token"},{"title":"Delete Token","api":"DELETE https://service.pcibooking.net/api/payments/paycard/{cardToken}","href":"/api-reference/manage-tokens/delete-token"}]},{"group":"CVV Management","pages":[{"title":"Clear CVV","api":"POST https://service.pcibooking.net/api/payments/paycard/{cardToken}/op/clearcvv","href":"/api-reference/manage-tokens/clear-cvv"},{"title":"Set CVV Retention Policy","api":"PUT https://service.pcibooking.net/api/payments/paycard/{cardToken}/cvv/Restriction","href":"/api-reference/manage-tokens/set-cvv-retention-policy"},{"title":"Get CVV Retention Policy","api":"GET https://service.pcibooking.net/api/payments/paycard/{cardToken}/cvv/Restriction","href":"/api-reference/manage-tokens/get-cvv-retention-policy"},{"title":"Get CVV Retention Policy for Specific Destination","sidebarTitle":"Get Policy (Specific)","api":"GET https://service.pcibooking.net/api/payments/paycard/{cardToken}/cvv/Restriction/{DestinationType}/{DestinationData}","href":"/api-reference/manage-tokens/get-cvv-retention-policy-specific"},{"title":"Delete CVV Retention Policy","api":"DELETE https://service.pcibooking.net/api/payments/paycard/{cardToken}/cvv/Restriction","href":"/api-reference/manage-tokens/delete-cvv-retention-policy"},{"title":"Delete CVV Retention Policy by Destination Type","sidebarTitle":"Delete Policy (Type)","api":"DELETE https://service.pcibooking.net/api/payments/paycard/{cardToken}/cvv/Restriction/{DestinationType}","href":"/api-reference/manage-tokens/delete-cvv-retention-policy-type"},{"title":"Delete CVV Retention Policy by Destination","sidebarTitle":"Delete Policy (Destination)","api":"DELETE https://service.pcibooking.net/api/payments/paycard/{cardToken}/cvv/Restriction/{DestinationType}/{DestinationData}","href":"/api-reference/manage-tokens/delete-cvv-retention-policy-type-data"}]},{"group":"3D Secure","pages":[{"title":"Store 3D Secure Data","api":"PUT https://service.pcibooking.net/api/payments/paycard/{cardToken}/3dToken","href":"/api-reference/manage-tokens/store-3d-token"},{"title":"Retrieve 3D Secure Data","api":"GET https://service.pcibooking.net/api/payments/paycard/{cardToken}/3dToken","href":"/api-reference/manage-tokens/retrieve-3d-token"},{"title":"Delete 3D Secure Data","api":"DELETE https://service.pcibooking.net/api/payments/paycard/{cardToken}/3dToken","href":"/api-reference/manage-tokens/delete-3d-token"}]},{"group":"Third-Party Permissions","pages":[{"title":"Associate with Customer","sidebarTitle":"Associate with Customer","api":"PUT https://service.pcibooking.net/api/payments/paycard/{cardToken}/user/{userID}","href":"/api-reference/manage-tokens/associate-with-customer"},{"title":"Disassociate from Customer","sidebarTitle":"Disassociate from Customer","api":"DELETE https://service.pcibooking.net/api/payments/paycard/{cardToken}/user/{userID}","href":"/api-reference/manage-tokens/disassociate-from-customer"},{"title":"List Customer Associations","sidebarTitle":"List Customer Associations","api":"GET https://service.pcibooking.net/api/payments/paycard/{cardToken}/users","href":"/api-reference/manage-tokens/list-customer-associations"}]}]},{"group":"Use Tokens","pages":[{"title":"Use Tokens API Reference","href":"/api-reference/process-cards/overview"},{"group":"Token Replacement","pages":[{"title":"Token Replacement in Request API","sidebarTitle":"Token Replacement","api":"POST https://service.pcibooking.net/api/payments/paycard/relay","href":"/api-reference/process-cards/token-replacement"},{"title":"Token Replacement to sFTP","api":"PUT https://service.pcibooking.net/api/sftp/{serverAddress}/{folderPath}/{fileName}","href":"/api-reference/process-cards/token-replacement-sftp"},{"title":"Token Replacement to FTPS","api":"PUT https://service.pcibooking.net/api/ftps/{serverAddress}/{folderPath}/{fileName}","href":"/api-reference/process-cards/token-replacement-ftps"},{"title":"Delete File from sFTP or FTPS","sidebarTitle":"Delete File (sFTP/FTPS)","api":"DELETE https://service.pcibooking.net/api/sftp/{serverAddress}/{filePath}","href":"/api-reference/process-cards/delete-file-sftp"}]},{"group":"Payment Gateway","pages":[{"title":"Process Transaction","api":"POST https://service.pcibooking.net/api/paymentGateway","href":"/api-reference/process-cards/process-transaction"},{"title":"Additional Guidance for Specific Payment Gateways","href":"/api-reference/process-cards/gateway-guidance"}]},{"group":"Card Display","pages":[{"title":"Request a Card Display Form","api":"GET https://service.pcibooking.net/api/payments/paycard/{cardtoken}/display","href":"/api-reference/process-cards/request-card-display-form"},{"title":"Initiate Card Display with OTP","sidebarTitle":"Card Display with OTP","api":"POST https://service.pcibooking.net/api/card-view-request/initView","href":"/api-reference/process-cards/card-display-otp"}]},{"title":"Retrieve Card Details","api":"GET https://service.pcibooking.net/api/payments/paycard/{cardToken}","href":"/api-reference/manage-tokens/retrieve-card-details"},{"title":"Risk Assessment API","api":"POST https://service.pcibooking.net/api/payments/paycard/{cardToken}/op/validate","href":"/api-reference/manage-tokens/risk-assessment"}]},{"group":"Additional Functions","pages":[{"title":"Get Payment Gateways","api":"GET https://service.pcibooking.net/api/paymentGateway","href":"/api-reference/process-cards/get-payment-gateways"},{"group":"Gateway Credentials","pages":[{"title":"Retrieve Payment Gateway Credential Structure","api":"GET https://service.pcibooking.net/api/credentials/paymentGateway/{name}","href":"/api-reference/process-cards/retrieve-credential-structure"},{"title":"Store Payment Gateway Credentials","api":"PUT https://service.pcibooking.net/api/credentials/{credentialsId}","href":"/api-reference/process-cards/store-credentials"},{"title":"List Payment Gateway Credentials","api":"GET https://service.pcibooking.net/api/credentials","href":"/api-reference/process-cards/list-credentials"},{"title":"Delete Payment Gateway Credentials","api":"DELETE https://service.pcibooking.net/api/credentials/{credentialsId}","href":"/api-reference/process-cards/delete-credentials"}]},{"group":"Data Blocks","pages":[{"title":"Create Data Block","api":"POST https://service.pcibooking.net/api/dataBlock","href":"/api-reference/additional/create-data-block"},{"title":"Get Data Block Details","api":"GET https://service.pcibooking.net/api/dataBlock/{id}","href":"/api-reference/additional/get-data-block-details"},{"title":"Update Data Block Details","api":"PUT https://service.pcibooking.net/api/dataBlock/{id}","href":"/api-reference/additional/update-data-block-details"},{"title":"Delete Data Block","api":"DELETE https://service.pcibooking.net/api/dataBlock/{id}","href":"/api-reference/additional/delete-data-block"},{"title":"Search Data Blocks","api":"GET https://service.pcibooking.net/api/dataBlock","href":"/api-reference/additional/search-data-blocks"},{"title":"Upload Data Block Content","api":"PUT https://service.pcibooking.net/api/datablock/{id}/data","href":"/api-reference/additional/upload-data-block-content"},{"title":"Download Data Block Content","api":"GET https://service.pcibooking.net/api/datablock/{id}/data","href":"/api-reference/additional/download-data-block-content"}]},{"group":"Contact Verification","pages":[{"title":"Create a Verification","api":"POST https://service.pcibooking.net/api/verify","href":"/api-reference/additional/create-verification"},{"title":"Get Verification Status","api":"GET https://service.pcibooking.net/api/verify/{verificationId}","href":"/api-reference/additional/get-verification-status"},{"title":"Get Verification Results","api":"GET https://service.pcibooking.net/api/verify/{verificationId}/results","href":"/api-reference/additional/get-verification-results"},{"title":"Receive Result Notification","href":"/api-reference/additional/receive-result-notification"}]},{"group":"Network Tokenization","pages":[{"title":"Network Tokenize a Card","api":"POST https://service.pcibooking.net/api/networkToken","href":"/api-reference/additional/network-tokenize-card"},{"title":"Network Tokenize from Existing Token","sidebarTitle":"Network Tokenize from Token","api":"POST https://service.pcibooking.net/api/networkToken/token","href":"/api-reference/additional/network-tokenize-from-token"},{"title":"Delete Network Token","description":"Delete a network token from both the card network and PCI Booking storage.","api":"DELETE https://service.pcibooking.net/api/networkToken","href":"/api-reference/additional/delete-network-token"}]}]},{"group":"Payments Library","pages":[{"group":"Library Setup \u0026 Use","pages":[{"title":"Create Payments Library Session","api":"POST https://service.pcibooking.net/api/eWalletOperation","href":"/api-reference/payments-library/create-session"},{"title":"Validate Operation Result","sidebarTitle":"Validate Operation","description":"Validate the data returned to the client after a Payments Library operation to ensure it was not altered.","api":"POST https://service.pcibooking.net/api/eWalletOperation/validateResults","href":"/api-reference/payments-library/validate-operation"}]},{"group":"Library Account Management","pages":[{"title":"Retrieve Digital Wallet Credential Structure","sidebarTitle":"Retrieve Credential Structure","api":"GET https://service.pcibooking.net/api/eWalletOperation","href":"/api-reference/payments-library-accounts/retrieve-credential-structure"},{"title":"Store Digital Wallet Credentials","api":"PUT https://service.pcibooking.net/api/eWalletAccounts/{credentialsId}","href":"/api-reference/payments-library-accounts/store-credentials"},{"title":"List Digital Wallet Credentials","sidebarTitle":"List Credentials","api":"GET https://service.pcibooking.net/api/eWalletAccounts","href":"/api-reference/payments-library-accounts/list-credentials"},{"title":"Delete Digital Wallet Credentials","api":"DELETE https://service.pcibooking.net/api/eWalletAccounts/{credentialsId}","href":"/api-reference/payments-library-accounts/delete-credentials"}]}]}]}]},"title":"Create Payments Library Session - PCI Booking","buildId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","deploymentId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-rfhihCWU.js","utils-BmH1XFxk.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BcNsxPKB.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BAES3tkd.js","snippetPresets-DCMQBKLP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D6l_bzE9.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BOktbnNh.js","shallow-BCs8SgM7.js","getApiPlaygroundDisplay-DEmW5bJB.js","CodeSnippet-CpZOpB9C.js","CodeSnippets-BOBDqibl.js","Page-D5fEM6aW.js","getPastedJson-DH2JBvmr.js","icon-BBJH-kKh.js","MethodPill-D2Sd5NLC.js","DuplicateIcon-CGgfL2qN.js","createIcon-BKudBBzi.js","DynamicMarkdown-85clUA0i.js","SectionHeading-D0JiMgDx.js","axios-vUo_bRtp.js"]}